getpeppr convert builds the UBL XML on your machine with the SDK bundled
inside the CLI. 0.17.3 bundles @getpeppr/sdk 6.8.3, which rounds each line
net amount to the cent once and adds up the rounded lines for every total
(SDK 6.8.3).
Measured by running getpeppr convert on the same files:
| Lines | 0.17.2 | 0.17.3 |
|---|---|---|
two lines of 0.5 × 2.99 at 21 % |
lines 1.50 + 1.50, line total 2.99, payable 3.62 |
lines 1.50 + 1.50, line total 3.00, payable 3.63 |
one line of 3 × 9.99 / 2 at 21 % |
line 14.98, line total 14.98, tax-exclusive 14.99 |
line 14.99, line total 14.99, tax-exclusive 14.99 |
The Peppol rules refuse both 0.17.2 files (BR-CO-10, BR-CO-13); neither
0.17.3 file breaks a fatal rule. convert --validate accepted the 0.17.2
files because its offline checks do not run these two rules.
getpeppr send posts JSON to the API, which applies the same rounding since
today, and getpeppr validate does not build the XML: both are unchanged. No
command or option changes. The default User-Agent now says
getpeppr-sdk/6.8.3.
npm install -g @getpeppr/cli@0.17.3