TaxVoucherService Class [AX 2012]
The TaxVoucherService class contains the journal-specific logic, which determines the account that the offset of the total tax amount is allocated.
Syntax
class TaxVoucherService
Run On
Called
Methods
Method | Description | |
---|---|---|
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
checkForDocumentChange | Determines whether the tax document that is being posted has changed. | |
checkIfVendCustExistsForDocument | Determines whether the voucher that is being posted contains a vendor or customer type. | |
checkIfVendCustExistsInOrigJournal | Gets a value which indiates whether the voucher from the originating journal contains a customer or vendor type. | |
doesTaxAmountExist | Determines whether a tax amount exists in the TaxUncommitted table for the given primary account or offset account of a LedgerJournalTrans record. | |
doesTaxExistForIntercompany | Determines whether a tax amount exists in the TaxUncommitted table for the given primary account or offset account of an intercompany LedgerJournalTrans record. | |
doesTaxOnPaymentFeeExist | Determines whether the tax on payment fees exist for the specified voucher. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getNonRecoverableTaxAmountCurList | Gets the ledgerposting type and non-recoverable tax amount list for ledger line. | |
getNonRecoverableVATForDestinationCo | ||
getNonRecTaxAmtCurForDocAndVoList | Gets the list whose items contain posting type and non recoverable tax amount for the transaction line. | |
getNonRecTaxAmtCurForDocAndVoList_IN | Gets the list whose items contain posting type and nont recoverable tax amount for the invoice. | |
getNonRecTaxAmtCurForLineList | Gets the list whose items contain posting type and non recoverable tax amount for the transaction line. | |
getNonRecTaxAmtCurForLineList_IN | Gets the list whose items contain posting type and non recoverable tax amount for the transaction line. | |
getNonRecTaxAmtCurIntecoLineList | Gets the list whose items contain posting type and non recoverable tax amount for an intercompany line. | |
getNonRecTaxAmtCurIntercoDocList | Gets the list whose items contain posting type and non recoverable tax amount for the original company for an intercompany document. | |
getOriginatingLJTFromIntercompanyLJT | Gets the originating LedgerJournalTrans record for the given intercompany LedgerJournalTrans record. | |
getTaxAmountForAssetType | ||
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
getTransactionalTaxAmountForDocument | Gets the tax amount for the voucher. | |
getTransactionalTaxAmountForLine | Gets the tax amount for the given LedgerJournalTrans record. | |
getTransactionalTaxAmountForPaymentFees | Gets the total tax amount for the voucher for payment fees. | |
getTransactionalTaxAmountForPrepayment | Gets the tax amount for the prepayment. | |
getTransactionalTaxInCostPriceForLine | Gets the total tax in cost price for the LedgerJournalTrans record. | |
getTransactionalTaxIntercompanyDocument | Gets the tax amount for the original company for an intercompany document. | |
getTransactionalTaxIntercompanyLine | Gets the tax amount for an intercompany line. | |
getTransTaxAmountForDocLessPaymFees | Gets the tax amount for the voucher minus any taxes on payment fees. | |
getTrxNonRecoverableVATAmountForDoc | Gets the total tax in cost price for the LedgerJournalTrans record. | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
isBankVendor_IN | ||
isOriginatingJournalTaxOnly | ||
isTaxable | Gets a value that indicates whether the provided line is taxable. | |
moveTaxForeignKeyToTaxTrans | Updates all TaxTransGeneralJournalAccountEntry records with a foreign key to the table TaxTransremoving the foreign key to the table TaxUncommitted. | |
new | Sets variables to the specified parameters. | |
notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) | |
notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) | |
objectOnServer | Determines whether the object is on a server. (Inherited from Object.) | |
operationAccount | Gets the LedgerDimensionAccount operation for the LedgerJournalTrans record. | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
parmInterCompanyTaxBase_IN | Gets or sets the InterCompanyTaxBase_IN parameter. | |
parmIsformulaDefined_IN | Gets or sets the IsformulaDefined_IN parameter. | |
parmIsInclusiveTax_IN | Gets or sets the IsInclusiveTax_IN parameter. | |
parmIsInterCompanyTrans_IN | Gets or sets the IsInterCompanyTrans_IN parameter. | |
parmIsLedgerLedger_IN | Gets or sets the IsLedgerLedger_IN parameter. | |
parmLoggedInCompany_IN | Gets or sets the LoggedInCompany_IN parameter. | |
parmTaxObligationCompany | Gets or sets the TaxObligationCompany parameter. | |
post | This method will post all of the tax amounts for the journal. | |
postIntercompany | This method will post all of the tax amounts for the intercompany journal. | |
postTaxAmountForLedgerType_BR | Defines specifics parameters for Localizarion BR. It is a subscriber to event postTaxAmountForLedgerTypeHandler_BR in taxAmountForLedgerType method. | |
postTaxOnErrorAccount | Posts the offset for the total tax amount for the voucher to the error account. | |
postWithholdIntercompany_IN | This method will post tax amounts for both ledger entires and taxwithholdtrans for the intercompany journal. | |
postWithholdTax_IN | This method will post all of the withhold tax amounts for the journal. | |
priceInclTaxAmount_IN | Gets the price incl tax amount. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
taxAmountCurForLine_IN | This function returns the tax amount for the given line. | |
taxAmountForAssetType | Gets the tax amount for the LedgerJournalTrans record of type fixed assets that is being posted to. | |
taxAmountForAssetTypeInterCompanyAccount | Gets the tax amount for the LedgerJournalTrans record of type fixed assets that is being posted to intercompany. | |
taxAmountForBankType | Gets tax amount for the LedgerJournalTrans record of type bank that is being posted to. | |
taxAmountForDueToDueFromLine | Retrieves the tax amount for the LedgerJournalTrans record, which represents the intercompany due to and due from values. | |
taxAmountForLedgerType | Gets the tax amount for an account type of a ledger line. | |
taxAmountForProjectType | Gets the tax amount for the LedgerJournalTrans record of type project that is being posted to. | |
taxAmountForVendCustType | Gets the tax amount for the LedgerJournalTrans record of type customer or vendor that is being posted to. | |
taxWithholdAmountForBankType_IN | Retrieves the withhold tax amount for the LedgerJournalTrans record of type bank that is being posted to. | |
taxWithholdAmountForCustType_IN | Retrieves the withhold tax amount for the LedgerJournalTrans record of type cust that is being posted to. | |
taxWithholdAmountForVendType_IN | Retrieves the withhold tax amount for the LedgerJournalTrans record of type vend that is being posted to. | |
toString | Returns a string that represents the current object. (Inherited from Object.) | |
updateLedgerJournalTransIntercompanyMap | Updates the interCompanyMap, which links an intercompany LedgerJournalTrans record to an originating LedgerJournalTrans record. | |
usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::calculateTaxForJournal | Calculates the taxes for all unique tax documents for the journal. | |
::calculateTaxForVoucher | Calculates taxes for all unique tax documents for the journal and voucher. | |
::calculateWithholdTaxForJournal_IN | Calculates the withhold taxes for all unique tax documents for the journal. | |
::construct | Creates an instance of the TaxVoucherService class. | |
::getTaxPostingType_IN | Gets tax posting type. | |
::ledgerAccountIsVATAccount | Indicates whether the specified account type and dynamics account refers to a tax account. | |
::postTaxAmountForLedgerTypeHandler_BR | Observes the event that fires after calling the taxAmountForLedgerType method. | |
::priceInclTaxAmountCalculated_IN | Gets calculated price incl tax amount. |
Top
Remarks
This class calculates the sales tax to post on individual lines and determines the amount to add to the customer or vendor ledger account.
It determines the account to which to add the sales tax. This account can be a customer, a vendor, or a bank account; and if one of those exists, this account will be chosen.
Inheritance Hierarchy
Object Class
TaxVoucherService Class