FUNCTION GetInvoiceTotalForCustomer(div$, cust$) |
Retrieve the Customer Invoice Total
|
Parameter | Description |
div$ |
[input, string] AR Division Number |
cust$ |
[input, string] AR Customer Number |
|
Returns |
[boolean] True = success, False = failure |
|
Value | Description |
retFAILURE(0) |
If recalc failed |
retSUCCESS(1) |
If recalc completed successfully |
|
FUNCTION RecalcPaymentsToday(tmpARDivisionNo$, tmpCustomerNo$, tmpInvoiceNo$, tmpInvoiceType$, oDtl, tmpHdrKey$, tmpPmtsToday) |
Recalculate AR Open Invoice PaymentsToday amount for a customer / invoice
|
Parameter | Description |
tmpARDivisionNo$ |
[input, string] AR Division Number |
tmpCustomerNo$ |
[input, string] AR Customer Number |
tmpInvoiceNo$ |
[input, string] Invoice Number |
tmpInvoiceType$ |
[input, string] Invoice Type |
oDtl |
[input, objhandle] object handle to source detail (Lines) class |
tmpHdrKey$ |
[input, string] key of current source header record |
tmpPmtsToday |
[output, number] calculated payments today amount |
|
Returns |
[boolean] True = success, False = failure |
|
Value | Description |
retFAILURE(0) |
If recalc failed |
retSUCCESS(1) |
If recalc completed successfully |
|
FUNCTION UpdatePaymentsToday(tmpARDivisionNo$, tmpCustomerNo$, tmpInvoiceNo$, tmpInvoiceType$, tmpPostingAdjustment) |
Update AR Open Invoice PaymentsToday amount for a specific cash receipts or AR_AP clearing detail entry
|
Parameter | Description |
tmpDivisionNo$ |
[input, string] AR Division Number |
tmpCustomerNo$ |
[input, string] AR Customer Number |
tmpInvoiceNo$ |
[input, string] Invoice Number |
tmpInvoiceType$ |
[input, string] Invoice Type |
tmpPostingAdjustment |
[input, number] Net Invoice Amount (inlcuding discount) to add to payments today total |
|
Returns |
[boolean] True = success, False = failure |
|
Value | Description |
retFAILURE(0) |
If recalc failed |
retSUCCESS(1) |
If recalc completed successfully |
|