Method DomesticEinvoice():acceptsBuyerCountry() Professional

Checks whether the buyer country matches the seller country.

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 equal to the country of the seller or if the country of the seller is not known yet, .F. (false) otherwise.

Description

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

A buyer country is accepted if it is equal to the country of the seller. If no seller has been set yet, or if the seller has no country code, every country is accepted.

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.