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