Method AbstractEinvoice():acceptsBuyerCountry() Professional

Checks whether a buyer country is valid for the scenario.

Syntax
:acceptsBuyerCountry( <cCountry> ) --> lAccepted
Parameters
<cCountry>
The ISO 3166-1 alpha-2 code of the buyer country to test.
Return

.T. (true) if the country is accepted, .F. (false) otherwise. The default implementation always returns .T. (true).

Description

Determines whether a buyer located in the given country is permitted in the scenario implemented by the invoice class. The method is called by :addRecipient() to reject a buyer which does not fit the scenario.

The default implementation in the AbstractEinvoice class accepts every country. The subclasses DomesticEinvoice(), IntraEuEinvoice() and ExportEinvoice() override this method to restrict the accepted countries. Only ManualEinvoice() relies on the default implementation.

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.