Perform Bill Cycle Run

Primary Actors

  • Operation.

  • Time.

Basic Flow

Create OCS Invoice Flow
Perform Bill Cycle Run
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.

This notification is sent only when regular Bill Cycle Run is performed.

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

  1. validate

    1. BillCycle

    2. BillCycleRun

    3. DocumentType

    4. DocumentSource

    5. DocumentPreferences (roundingCompensationCostGlCode, roundingCompensationRevenueGlCode)

    6. InvoiceLayout

  2. set defaults

    1. default DeliveryMethod

    2. default PaymentMethod

  3. start BC Run (BillCycleStatus = IN_PROGRESS)

  4. for each account in billcycle

    1. validate already in progress (AccountBillCycleRun)

    2. validate payment responsible

    3. validate activation date (activatedValidFrom < bc.endDate)

    4. validate registered payer

    5. store AccountBillCycleRun (AccountSemaphore = WAITING)

    6. start async CreateOcsBillRunInvoiceAsyncProcess Perform Bill Cycle Run