Add VAT ID and Bosnia and Herzegovina country line to supplier block

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-28 22:43:36 +02:00
parent 5ffbfb5bc0
commit 52ec168990

View File

@@ -17,8 +17,9 @@ from reportlab.pdfgen import canvas
SUPPLIER = { SUPPLIER = {
"name": "Kompanija Broj 4 D.O.O.", "name": "Kompanija Broj 4 D.O.O.",
"address_lines": ["Hakije Turajlica 2", "71000 Sarajevo"], "address_lines": ["Hakije Turajlica 2", "71000 Sarajevo", "Bosnia and Herzegovina"],
"tax_id": "4202962240000", "tax_id": "4202962240000",
"vat_id": "202962240000",
} }
CUSTOMER = { CUSTOMER = {
@@ -205,6 +206,8 @@ def render_pdf(inv: InvoiceInputs, output_path: Path) -> None:
c.drawString(margin_l, y, line) c.drawString(margin_l, y, line)
y -= 12 y -= 12
c.drawString(margin_l, y, f"TAX ID: {SUPPLIER['tax_id']}") c.drawString(margin_l, y, f"TAX ID: {SUPPLIER['tax_id']}")
y -= 12
c.drawString(margin_l, y, f"VAT ID: {SUPPLIER['vat_id']}")
y -= 24 y -= 24
bill_top = y bill_top = y