Method AbstractEinvoice():resolveVatCategory() Professional
Resolves the VAT category and rate of an invoice line.
:resolveVatCategory( <oLine> ) --> oTaxResult
A DataObject with the members :Category, :Rate, :ExemptionReason and :ExemptionReasonCode.
Determines the VAT category and the VAT rate which apply to an invoice line. This is a template method which must be implemented by every scenario subclass. Calling it on the AbstractEinvoice class raises a runtime error.
The method is called by :toModel() and :validate() for each invoice line. Refer to the documentation of the scenario subclasses for a description of their resolution rules.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.