The Creation and Disposition of Provisional Disbursements

Provisional disbursements are client expense records created at billing time in anticipation of an invoice for a charge that has occurred against a client file that is about to be final billed. 

expense 
expense_id              = e1 (a new expense record is created)

expense_type          = ‘P’

bil_billing_id             = b1 (id of the associated bill)

available                  = ‘N’ (this makes it invisible to WIP
     expense_detail_wip
expense_detail_wip_id = edw1.1 (a new expense_detail_wip                                      record is created)

amount                       = 100 (for example)

thdr_tran_header_id     = the tran_header_id from the BIDR                                               tran_header record

exp_expense_id          = e1
expense
expense_id              = e2 (a new expense record is created)

expense_type          = ‘P’

bil_billing_id             = null

available                  = ‘Y’ (this makes it visible to WIP)

exp_expense_id       = e1 (this enables the system to find the                                   source of the expense)

expense_detail_wip
(for the new expense record)
expense_detail_wip_id = edw2.1 (a new expense_detail_wip                                      record is created)

amount                       = -100 (for example)

thdr_tran_header_id     = the tran_header_id from the DSB                                                tran_header record

exp_expense_id          = e2
expense_detail_wip
(for the old expense record)
expense_detail_wip_id = edw1.2 (a new expense_detail_wip                                      record is created)

amount                       = -100 (for example)

thdr_tran_header_id     = the tran_header_id from the original                                     BIDR tran_header record

exp_expense_id          = e1
expense
expense_id              = e2 (the old expense record is updated)

available_yn            = ‘N’ (this makes it visible to WIP)
expense_detail_wip
(a reversing entry is created)

expense_detail_wip_id = edw2.2 (a new expense_detail_wip                                      record is created)

amount                       = 100 (for example)

thdr_tran_header_id     = the tran_header_id from the BLX                                               tran_header record

exp_expense_id          = e2