Share via


InventModelType_StdCost::calcFinancialTransDate Method [AX 2012]

Calculates the transaction date for a settlement.

Syntax

client server public static TransDate calcFinancialTransDate(
    LedgerVoucher _ledgerVoucher, 
    InventTrans _inventTrans, 
    InventSettlement _inventSettlement)

Run On

Called

Parameters

  • _ledgerVoucher
    Type: LedgerVoucher Class
    The ledger voucher that holds the current posting date.
  • _inventSettlement
    Type: InventSettlement Table
    The inventSettlement that holds the settlement for the given transaction.

Return Value

Type: TransDate Extended Data Type
The current posting date, if the settlement transaction date and the date physical are equal; otherwise, the maximum of either the current posting date or the settlement transaction date.

See Also

Reference

InventModelType_StdCost Class