Method DomesticEinvoice():validateScenario() Professional
Validates the rules of the domestic scenario.
:validateScenario( <oCtx> ) --> self
This method returns self.
Checks the invoice against the rules of the domestic scenario. The method is called by :validate() as the last step of the rule catalog. The following rules are checked:
The seller must be located in the EU. This is checked via :requireEuSeller().
The buyer must be located in the same country as the seller. This check is skipped if no buyer has been set or the country of the seller is not known.
No invoice line may be resolved to the category K (intra-community supply) or G (export), since these categories are not possible for a domestic supply.
Every violation is reported as a "SCENARIO" error via the code block in the member :Error of <oCtx>. The method does not raise a runtime error, so :validate() can report all problems at once.
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.