Method EinvoiceCountryProfile():isKnownRate() Professional

Checks whether a VAT rate is known for the country.

Syntax
:isKnownRate( <oRate> ) --> lKnown
Parameters
<oRate>
An EinvoiceDecimal() object with the VAT rate in percent to check.
Return

.T. (true) if the rate is one of the known rates or if no known rates have been configured, .F. (false) otherwise.

Description

Determines whether the given VAT rate is one of the rates which are considered normal for the country. The rates are compared with two decimal places. If no known rates have been configured for the profile, every rate is accepted.

The method is used by AbstractEinvoice():validate() to report a warning for an unusual VAT rate on a standard-rated invoice line.

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.