@getpeppr/cli 0.17.2 rebundles @getpeppr/sdk 6.8.2, released earlier today.
The CLI embeds the SDK in its published file, so getpeppr validate and
getpeppr convert --validate only pick up a new SDK rule when the CLI is
republished.
What changes
validate and convert --validate now apply PEPPOL-EN16931-P0112 as Peppol
BIS Billing 3.0.22 does (RFC-607):
- A
384(corrected) invoice is no longer reported under P0112 when both companies resolve to Slovakia. For this Slovak exception, a company's country is its VAT number prefix first, then, for the seller only, its tax representative's VAT prefix, then its postal country. If P0112 was the invoice's only error,validatenow exits0instead of1, andconvert --validategoes on to generate the XML, which can still fail for another reason. - A
389(self-billed) invoice outside Germany is now reported under P0112 as well asPEPPOL-EN16931-P0100. It still exits1. - The German case reads the postal addresses.
326and389stay allowed only when bothfrom.countryandto.countryareDE, and384between two German postal addresses passes as before, whatever the VAT prefixes say.
getpeppr send is unaffected: its preflight ignores these invoice type code
rules, because invoiceTypeCode is not sent with POST /v1/invoices.
For the 389 case, validate now prints:
✗ invoiceTypeCode — Invoice type code is not allowed by the Peppol billing profile used by the local UBL builder. (PEPPOL-EN16931-P0100)
✗ invoiceTypeCode — Invoice type code 389 is only allowed when both buyer and seller are German organizations. (PEPPOL-EN16931-P0112)
No command or option changes. Requests are unchanged except the default
User-Agent, which now names the bundled SDK: getpeppr-sdk/6.8.2.
npm install -g @getpeppr/cli@0.17.2