Databuild Accounts Receivable Integration - Reference
Return to Databuild Accounts Receivable Integration
Article Index
Integrated Fields
The integration of Databuild Accounts Receivable to Framework is fixed in the content that is exchanged between the systems. There are no user-configurable integrated fields available to this type of integration.
Database Models
The following database model(s) displays the manner in which data is integrated between the third party application and Framework Integration.
Integration Process
The following information is a low level account of the integration process including criteria, decisions, and outcomes. This information is technical in nature and is provided "as-is" for a detailed analysis of the integration process for system administrators.
Read profile keys to determine which actions to process.
ActionCreateInvoices
Get eligible Framework jobs using v_sched_tlClaims where
csg_claim.d_invoice is not null
Cst_claim.s_link_accts <> ‘N/A’
Cst_claim.f_link_exported = 0
Job.s_link_accts <> ‘N/A’
Job. l_job_status_gl_id = -7(Active) or -10(On Hold) or l_job_status_gl_id = -946 (Pending Cancellation)
and apply Criteria Method criteria where CriteriaMethod is
Single Region Division • job.l_context_id = ‘CriteriaMethodID’
Single Job • job.s_job_num = ‘CriteriaMethodID’
Single Team • job.l_team_id = ‘CriteriaMethodID’
All Jobs • job.l_job_id <> 0
Accounts Entity • job.l_accounts_e_id = ‘CriteriaMethodID’ b.
If an eligible job claim has an empty invoice Number, it is not included in the output file.
The Databuild table jobs is checked for a matching Job Number where jobs.job_no = ‘job.s_link_boq’, or if the s_link_boq field is empty then the match is done on jobs.job_no = ‘job.s_job_num’,
If the job is found then a new record is added to the transactions table holding details of the framework claim.
The Framework cst_claim is updated so that…
cstClaim.f_link_exported is set to true
cstClaim.s_link_accts is set to transactions.tranNo
ActionProcessReceipts
First, we get unlinked payment records from Framework and see if they’re now linked in Databuild to a claim. We get all records from cont_pay where
Cont_pay.l_cst_claim_id = 0
Cont_pay.s_link_accts is not empty
For each payment that is unlinked we look for a matching record from the databuild transactions table where
transactions.tranNo = cont_pay.s_link_accts
transactions.closingTran > 0
Next we find the Framework Claim where
cst_claim.s_link_accts = transactions.closingTran
If the claim is found the cont_pay record is linked to the claim and the claim has it’s paid amount field updated.
Now we process Databuild Receipts. Eligible receipts are read from Databuild table Transactions where
transactions.tType = 2 if profile key DepositRunEndDate is empty then
transactions.date > = ‘DepositRunStartDate’ and <= now else if DepositRunEndDate has a date entered then
transactions.date > = ‘DepositRunStartDate’ and <= ‘DepositRunEndDate’
If the transactions.closingTran is > 0 we
Make sure the receipt does not exist in the cont_pay table where cont_pay.s_link_accts = the transactions.tranNo
if the payment does not exist then we can create it. First get the Framework job where job.s_job_num = transactions.jobNo
Then Insert the new cont_pay receipt record and update the cont payments.
Else if the transactions.closingTran = 0 then
Make sure the receipt does not exist in the cont_pay table where cont_pay.s_link_accts = the transactions.tranNo
If the payment does not exist, get the framework claim where cst_claim.s_link_accts = transactions.closingTran
Then insert the new cont_pay receipt record and update the cont payments.
After processing receipts the profile key depositRunStartDate is updated.
ActionCheckingConsistency
Eligible Framework jobs for checking are retrieved from v_sched_tlCstClaim where
Check Consistency Level claim by claim
Job.l_wfl_stgMajor_id = -3(Administration) or -4 (Construction)
Job. l_job_status_gl_id = -7(Active) or -10(On Hold)
Cst_claim.s_invoice_num is not empty
Cst_claim.s_link_accts <> ‘N/A’
job.s_link_accts <> ‘N/A’
Check Consistency Level is job by Job
Job.l_wfl_stgMajor_id = -3(Administration) or -4 (Construction)
Job. l_job_status_gl_id = -7(Active) or -10(On Hold)
job.s_link_accts <> ‘N/A’
and apply Criteria Method criteria where CriteriaMethod is
Single Region Division • job.l_context_id = ‘CriteriaMethodID’
Single Job • job.s_job_num = ‘CriteriaMethodID’
Single Team • job.l_team_id = ‘CriteriaMethodID’
All Jobs • job.l_job_id <> 0 5 – Accounts Entity • job.l_accounts_e_id =‘CriteriaMethodID’
Invoice Totals are compared between Databuild and Framework
Check Consistency Level is Claim by Claim
Cst_claims with the same invoice numbers have their cst_claim.c_total field values summed together
The matching invoice is retrieved from transactions where transactions.tranNo = cst_claim.s_link_accts and transactions.tType = 1
If the invoice record is found the transactions.amount is compared with the total of the cst_claim.c_total fields, we calculated previously, to determine if the invoice totals match.
Check Consistency Level is Job by Job
All eligible claims for the job are read and the sum of cst_claim.c_total is determined where
- cst_claim.s_invoice_num is not empty
- cst_claim.s_link_accts <> ‘N/A’
- f_link_exported = -1
-d_invoice is not empty
The sum is compared to Databuild where the Amount is read from the transactions table where JobNo = (job.s_link_boq or if empty job.s_job_num) and ttype = 1
Receipt Totals for each invoice are compared between Databuild and Framework
Check Consistency Level is Claim by Claim
Cst_claims with the same invoice numbers have their cst_claim.c_paid_amt field values summed together
The matching receipts are retrieved from transactions where transactions.closingTran = cst_claim.s_link_accts and transactions.tType = 2
If there are receipts then the sum of transactions.amount is calculated and compared with the total of the cst_claim.c_paid_amt fields, we calculated previously, to determine if the receipts match.
Check Consistency Level is Job by Job
The Framework Payments are summed together, the sum of c_pay from cont_pay is added up.Then because some cst_claims can indicate a refund we have to sum any cst_claims for the job where the c_paid_amt < 0 and remove this amount from the total payments.
The matching receipts are retrieved from transactions where transactions.jobNo = (job.s_link_boq or if empty job.s_job_num)and transactions.tType = 2
If there are receipts then the sum of transactions.amount is calculated and compared with the total of the Framework payments, to determine if the receipts match.