Method EinvoiceAddress():setCountryCode() Professional
Sets the country code (BT-40/BT-55/BT-80).
:setCountryCode( <cValue> ) --> self
This method returns self.
Assigns the country code (BT-40 for the seller, BT-55 for the buyer and BT-80 for the deliver-to address). A non-empty value is converted to upper case.
The country code is required. EinvFactory():createInvoice() raises a runtime error if the country code of the seller or buyer address is missing, because the countries determine the tax scenario. AbstractEinvoice:validate() reports an error for rule BR-09 or BR-11 if the country code of the seller or buyer is missing, and for rule BR-57 if a deliver-to address has no country code.
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.