Method AbstractEinvoice():validateScenario() Professional

Validates the scenario-specific rules.

Syntax
:validateScenario( <oCtx> ) --> self
Parameters
<oCtx>
The validation context. This is a DataObject with the members :Error and :Warn, which contain code blocks for reporting errors and warnings, and the member :Model, which contains the invoice model returned by :toModel().
Return

This method returns self.

Description

Checks the invoice against the rules of the scenario implemented by the invoice class. 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 :validate() as the last step of the rule catalog. Refer to the documentation of the scenario subclasses for a description of their rules.

Feedback

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.