SpecTransManager::updateSettleBalanceAndDisc_server Method [AX 2012]
Updates the referenced SpecTrans record with the specified balance and discount amount.
Syntax
server private static SpecTrans updateSettleBalanceAndDisc_server(
CompanyId _refCompany,
TableId _refTableId,
RefRecId _refRecId,
Amount _updateBalanceAmount,
Amount _updateDiscAmount,
CompanyId _specCompany,
TableId _specTableId,
RefRecId _specRecId,
[TransDate _selectedDateUsedToCalcCashDisc])
Run On
Server
Parameters
- _refCompany
Type: CompanyId Extended Data Type
The reference company of the SpecTrans record to update.
- _refTableId
Type: TableId Extended Data Type
The reference table ID of the SpecTrans record to update.
- _refRecId
Type: RefRecId Extended Data Type
The reference record ID of the SpecTrans record to update.
- _updateBalanceAmount
Type: Amount Extended Data Type
The settlement amount of the marked transaction to settle.
- _updateDiscAmount
Type: Amount Extended Data Type
The cash discount amount of the marked transaction to settle.
- _specCompany
Type: CompanyId Extended Data Type
The spec company of the SpecTrans record to update.
- _specTableId
Type: TableId Extended Data Type
The spec table ID of the SpecTrans record to update.
- _specRecId
Type: RefRecId Extended Data Type
The spec record ID of the SpecTrans record to update.
- _selectedDateUsedToCalcCashDisc
Type: TransDate Extended Data Type
The payment date for the calculation of cash discount to settle.
Return Value
Type: SpecTrans Table
Returns the updated SpecTrans record.