LedgerJournalTrans::getTaxInstance Method
Gets an instance of TaxCalculation with the tax lines loaded into TmpTaxWorkTrans.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
server public static TaxCalculation getTaxInstance(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans,
boolean _forceTaxable_RU,
TransDate _transDate,
TransDate _taxRateDateOverride])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static TaxCalculation getTaxInstance(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans,
boolean _forceTaxable_RU,
TransDate _transDate,
TransDate _taxRateDateOverride])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static TaxCalculation getTaxInstance(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans])
Microsoft Dynamics AX 2012 (FPK)
server public static TaxCalculation getTaxInstance(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans])
Microsoft Dynamics AX 2012 (SYS)
server public static TaxCalculation getTaxInstance(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans])
Run On
Server
Parameters
- _journalNum
Type: LedgerJournalId Extended Data Type
The journal number.
- _voucher
Type: Voucher Extended Data Type
The voucher.
- _invoiceId
Type: InvoiceId Extended Data Type
The invoice ID.
- _persistToTaxUncommitted
Type: boolean
true if calculated taxes should be persisted to the TaxUncommitted table; otherwise, false.
- _unsavedLedgerJournalTrans
Type: LedgerJournalTrans Table
If a LedgerJournalTrans record is unsaved then it needs to be passed into so that the new values may be considered for tax calculations.
- _forceTaxable_RU
Type: boolean
true if taxes should be calculated for purpose text building; otherwise, false.
- _transDate
Type: TransDate Extended Data Type
The transaction date.
- _taxRateDateOverride
Type: TransDate Extended Data Type
The date to be used in overriding the default date when retrieving the tax rate for tax calculation.
Return Value
Type: TaxCalculation Class
An instance of the TaxCalculation class.
Remarks
If a LedgerJournalTrans record is unsaved then it must be passed into so that the new values may be considered for tax calculations.