Class AR_OpenInvoice_Svc

Properties

LOCAL cMainTable$="AR_OpenInvoice"  
LOCAL cIsSysDB=isFALSE  

Methods

FUNCTION GetInvoiceTotalForCustomer(div$, cust$)  

Retrieve the Customer Invoice Total

ParameterDescription
div$ [input, string] AR Division Number
cust$ [input, string] AR Customer Number
Returns [boolean] True = success, False = failure
ValueDescription
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

ParameterDescription
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
ValueDescription
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

ParameterDescription
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
ValueDescription
retFAILURE(0) If recalc failed
retSUCCESS(1) If recalc completed successfully