Share via


LedgerJournalTrans::findTaxSource Method

Determines which LedgerJournalTrans record in an intercompany document is the tax obligation source company.

Syntax

client server public static LedgerJournalTrans findTaxSource(
    LedgerJournalId _journalBatchNumber, 
    Voucher _voucher, 
   [boolean _isIntercompanyJournal, 
    Voucher _primaryJournalVoucher])

Run On

Called

Parameters

  • _isIntercompanyJournal
    Type: boolean
    true if this is an intercompany journal; otherwise, false.
  • _primaryJournalVoucher
    Type: Voucher Extended Data Type
    The voucher for the primary journal. Used in intercompany scenarios to ensure we get the original journal and voucher when invoked on an intercompany journal.

Return Value

Type: LedgerJournalTrans Table
The source company.

Remarks

The source company is the company where the payable to the vendor or receivable to the customer, vendor, or bank is recorded. If multiple sources are used on the document then the order of priority is Vendor, Customer, and then Bank.

See Also

Reference

LedgerJournalTrans Table