GetBuiltInInvoiceRuleCatalogA
Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns 0, an empty string or False and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)
E-invoicing
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetBuiltInInvoiceRuleCatalog and string arguments are interpreted using the current SetAnsiMode code page
Returns the rules that ValidateInvoiceBusinessRulesBuiltIn checks natively and the rule areas it does not check, so an application can show what a built-in result covers
Syntax
Delphi
Function DLGetBuiltInInvoiceRuleCatalogA(InstanceID: Integer): PAnsiChar;
DLL
const char* DLGetBuiltInInvoiceRuleCatalogA(int InstanceID);
Return values
A JSON object with reference (the EN 16931 validation artefacts version the rules follow), coverage (subset), scope, tolerances, a rules array and a notCovered array
Each rule entry has ids (the rule IDs that appear in reports), en16931 (the EN 16931 rule when the ID is a library rule ID, same when the IDs are EN 16931 IDs, or empty for checks without an EN 16931 counterpart), category, syntaxes (CII, UBL) and description
Remarks
Library rule IDs such as CII.Currency are kept for compatibility; the catalog maps them to their EN 16931 rule. The catalog does not depend on a document and returns the same result for every instance
Example
Writeln(PDF.GetBuiltInInvoiceRuleCatalog);
See also
ValidateInvoiceBusinessRulesBuiltIn, ValidateInvoiceBusinessRulesWithTools