LedgerJournalTrans::getTaxWithholdInstance_IN Method
Gets an instance of TaxWithholdCalculation_IN with the withhold tax lines loaded into TmpTaxWithholdWorkTrans_IN.
Syntax
server public static TaxWithholdCalculation_IN getTaxWithholdInstance_IN(
LedgerJournalId _journalNum,
Voucher _voucher,
InvoiceId _invoiceId,
boolean _persistToTaxWithholdUncommitted,
[LedgerJournalTrans _unsavedLedgerJournalTrans])
Run On
Server
Parameters
- _journalNum
Type: LedgerJournalId Extended Data Type
The journal number of the journal.
- _voucher
Type: Voucher Extended Data Type
The voucher of the journal.
- _invoiceId
Type: InvoiceId Extended Data Type
The invoice ID of the journal.
- _persistToTaxWithholdUncommitted
Type: boolean
true if calculated withhold taxes should be persisted to the TaxWithholdUncommitted_IN 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 withhold tax calculations.
Return Value
Type: TaxWithholdCalculation_IN Class
An instance of the TaxWithholdCalculation_IN class.