|
| 1 | +:date: 2025-04-14 |
| 2 | + |
| 3 | +====================== |
| 4 | +Monday, April 14, 2025 |
| 5 | +====================== |
| 6 | + |
| 7 | + |
| 8 | +For one of my demo invoices the `UBL validator <https://www.ubl.be/validator>`__ |
| 9 | +says: [BR-Z-01]-An Invoice that contains an Invoice line (BG-25), a Document |
| 10 | +level allowance (BG-20) or a Document level charge (BG-21) where the VAT |
| 11 | +category code (BT-151, BT-95 or BT-102) is "Zero rated" shall contain in the VAT |
| 12 | +breakdown (BG-23) exactly one VAT category code (BT-118) equal with "Zero |
| 13 | +rated". |
| 14 | + |
| 15 | +And yes this invoice sells a bottle of gas with normal VAT rate, and the bottle |
| 16 | +itself without VAT (because the bottle is actually not sold, the customer gets |
| 17 | +this money back when he returns the empty bottle). |
| 18 | + |
| 19 | +Does this mean that it's not allowed to issue invoices with a mixture of |
| 20 | +normal-vat and zero-vat? |
| 21 | + |
| 22 | +To be exact, my example is even a bit more complex, it contains three different |
| 23 | +:term:`VAT categories <VAT category>` "normal", "reduced" and "exempt". |
| 24 | + |
| 25 | +>>> from lino import startup |
| 26 | +>>> startup('lino_book.projects.cosi1.settings') |
| 27 | +>>> from lino.api.doctest import * |
| 28 | + |
| 29 | +>>> |
| 30 | + |
| 31 | +>>> obj = trading.VatProductInvoice.objects.get(pk=111) |
| 32 | +>>> print(obj) |
| 33 | +SLS 6/2014 |
| 34 | + |
| 35 | +>>> rt.show(trading.ItemsByInvoice, obj, language="en") |
| 36 | +==================== ================ ========== ======== ======== ============== ======== |
| 37 | + Product Heading Discount Pr Qty TotExcl InvObj |
| 38 | +-------------------- ---------------- ---------- -------- -------- -------------- -------- |
| 39 | + Book Book 29,90 10 299,00 |
| 40 | + Stamp Stamp 1,40 8 11,20 |
| 41 | + Wooden table Tisch aus Holz 199,99 4 799,96 |
| 42 | + **Total (3 rows)** **22** **1 110,16** |
| 43 | +==================== ================ ========== ======== ======== ============== ======== |
| 44 | +<BLANKLINE> |
| 45 | + |
| 46 | +>>> rt.show(vat.MovementsByVoucher, obj, language="en") |
| 47 | +================== ==================== ============== ============== ================================= ================ ========= |
| 48 | + Account Partner Debit Credit VAT class Match Cleared |
| 49 | +------------------ -------------------- -------------- -------------- --------------------------------- ---------------- --------- |
| 50 | + (7000) Sales 299,00 Goods at reduced VAT rate (12%) Yes |
| 51 | + (4510) VAT due 35,88 Goods at reduced VAT rate (12%) Yes |
| 52 | + (7000) Sales 11,20 Goods exempt from VAT Yes |
| 53 | + (7000) Sales 799,96 Services Yes |
| 54 | + (4510) VAT due 167,99 Services Yes |
| 55 | + (4000) Customers Garage Mergelsberg 1 314,03 **SLS 6/2014** Yes |
| 56 | + **1 314,03** **1 314,03** |
| 57 | +================== ==================== ============== ============== ================================= ================ ========= |
| 58 | +<BLANKLINE> |
| 59 | + |
| 60 | + |
| 61 | +Later it told me "Specification identifier MUST have the value |
| 62 | +'urn:cen.eu:en16931:2017#conformant#urn:UBL.BE:1.0.0.20180214'." |
| 63 | +Aha. But what is a Specification identifier? |
| 64 | +https://docs.peppol.eu/edelivery/specs/reporting/tsr/trn-transaction_statistics/semantic-model/trbt-001/ |
| 65 | + |
| 66 | + |
| 67 | +Error message: [BR-CL-17]-Invoice tax categories MUST be coded using UNCL5305 code list |
0 commit comments