SpecTransManager::equalProration_server Method [AX 2012]
Inserts all invoice lines on the basis of amount to settle.
Syntax
server private static AmountCur equalProration_server(
RefRecId _refCustTransOpenRecId,
AmountCur _settleAmount,
RefRecId _refSpecTransRecId,
CashDiscAmount _discAmountToTake,
[int _totalMarkedTransaction,
AmountCur _invoiceAmount,
AmountCur _ttlAmount])
Run On
Server
Parameters
- _refCustTransOpenRecId
Type: RefRecId Extended Data Type
The reference record ID of the CustTransOpen record to be inserted.
- _settleAmount
Type: AmountCur Extended Data Type
The amount to be distributed among the lines.
- _refSpecTransRecId
Type: RefRecId Extended Data Type
The reference record ID of the SpecTrans record to be inserted.
- _discAmountToTake
Type: CashDiscAmount Extended Data Type
The cash discount amount to be distributed among the lines.
- _totalMarkedTransaction
Type: int
The number of transaction lines which have been fully marked.
- _invoiceAmount
Type: AmountCur Extended Data Type
The total invoice amount.
- _ttlAmount
Type: AmountCur Extended Data Type
The total amount available for settlement.
Return Value
Type: AmountCur Extended Data Type
Returns the available amount to settle.