ConnectingEurope / eInvoicing-EN16931

Validation artefacts for the European eInvoicing standard EN 16931
Other
141 stars 54 forks source link

Move PEPPOL-EN16931-R046 rule to EN16931? #362

Open juskoljo opened 11 months ago

juskoljo commented 11 months ago

Hi,

Would it be possible to move rule PEPPOL-EN16931-R046 from PeppolBIS 3.0 or add similar rule to EN16931 schematron to enforce validity of item net price (BT-146) when there is unit level discount (BT-147)? (Item gross price - Item price discount)

According to EN16931 specification calculation logic for BT-146 is "Item gross price – Item price discount"

https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-peppol/PEPPOL-EN16931-R046/

BR, Jussi Koljonen

bdewein commented 8 months ago

Hello,

such a rule should consider that BT-147 is an optional element (0..1). The EN 16931 does not clearly state that BT-147 is mandatory with BT-148 and/or that identical amounts in BT-146 and BT-148 (assuming BT-147 = 0) are not permitted. An according rule should set BT-147 to zero if not specified. PEPPOL-EN16931-R046 fails if BT-148 exists but BT-147 does not.

oriol commented 7 months ago

This should be discussed and agreed in CEN/TC 434.

SimonsPaul commented 1 month ago

This is a Peppol BIS3 rule. This will not be checked at EN16931-1 level.

Gross price is an optional element and used only for information only.