Perform Bill Cycle Run
Basic Flow
Step | Actor | Action | Description | ||
---|---|---|---|---|---|
1. |
Billing Server |
Validate |
Ensures the input data or conditions required for the process are valid. |
||
2. |
Billing Server |
Notify Bill Cycle Started |
Sends notification that the bill cycle has started.
|
||
3. |
Billing Server |
Start Calculate Payment Responsible Account |
Starts the "Calculate Payment Responsible Account" async process for each payment responsible account associated with the billing cycle. |
init
-
validate
-
BillCycle
-
BillCycleRun
-
DocumentType
-
DocumentSource
-
DocumentPreferences (roundingCompensationCostGlCode, roundingCompensationRevenueGlCode)
-
InvoiceLayout
-
-
set defaults
-
default DeliveryMethod
-
default PaymentMethod
-
-
start BC Run (BillCycleStatus = IN_PROGRESS)
-
for each account in billcycle
-
validate already in progress (AccountBillCycleRun)
-
validate payment responsible
-
validate activation date (activatedValidFrom < bc.endDate)
-
validate registered payer
-
store AccountBillCycleRun (AccountSemaphore = WAITING)
-
start async CreateOcsBillRunInvoiceAsyncProcess Perform Bill Cycle Run
-