ComponentTransactions_IN::insertComponentTrans Method
Inserts TaxTrans_IN records into the TaxComponentTable_IN records for settlement.
Syntax
server public static container insertComponentTrans(
TaxTrans_IN _taxTrans,
RefRecId _taxComponentTable,
RefRecId _taxRegistrationNumberTable,
RefRecId _refTaxRegistrationNumberTable,
TransDate _fromDate,
TaxDirection _taxDirection)
Run On
Server
Parameters
- _taxTrans
Type: TaxTrans_IN Table
The buffer of the TaxTrans_IN table.
- _taxComponentTable
Type: RefRecId Extended Data Type
The record ID of the TaxComponentTable_IN record.
- _taxRegistrationNumberTable
Type: RefRecId Extended Data Type
The record ID of the TaxRegistrationNumberTable_IN record.
- _refTaxRegistrationNumberTable
Type: RefRecId Extended Data Type
The record ID of the TaxRegistrationNumberTable_IN record.
- _fromDate
Type: TransDate Extended Data Type
The from date of the settlement.
- _taxDirection
Type: TaxDirection Enumeration
The tax direction of the transaction.
Return Value
Type: container
The total amount of incoming and outgoing tax.
Remarks
This method is executed from the determineSettlementAmount() or getCorrectionAmount() method of the TaxAdjustmentTable_IN table. The TaxTrans_IN table is used to insert the required value into the TaxComponentTable_IN table for settlement, and the _taxTrans.PostedTaxAmout field will hold the value of the posted tax amount, excluding the deferred amount.