{
  "spec": "linet.print/1",
  "page": { "size": "A4", "orientation": "portrait", "margins_mm": { "top": 14, "end": 14, "bottom": 18, "start": 14 } },
  "theme": {
    "font": "sans",
    "font_size_pt": 10,
    "color_text": "#1f2328",
    "color_accent": "#7c3aed",
    "color_muted": "#6b7280",
    "table": "zebra"
  },
  "header": {
    "logo": { "show": true, "max_height_mm": 20, "align": "start" },
    "company": ["name", "vat_number", "address", "phone", "email", "website"],
    "text": "Thank you for choosing {{company.name}}"
  },
  "blocks": [
    { "id": "title", "type": "title", "show_copy_label": true },
    { "id": "recipient", "type": "parties", "title": { "en_us": "Bill to", "he_il": "לכבוד" }, "fields": ["name", "vat_number", "address", "email"] },
    { "id": "meta", "type": "fields", "fields": ["issue_date", "due_date", "reference", "allocation_number"] },
    { "id": "lines", "type": "lines", "when": "has_lines",
      "columns": [
        { "field": "sku", "width": "18mm" },
        { "field": "name", "width": "auto" },
        { "field": "qty", "width": "14mm" },
        { "field": "unit_price_with_vat", "label": { "en_us": "Price", "he_il": "מחיר" } },
        { "field": "line_total_with_vat", "label": { "en_us": "Amount", "he_il": "סכום" } }
      ],
      "qty_sum": true, "descriptions": true },
    { "id": "payments", "type": "payments", "when": "has_payments", "title": { "en_us": "Payment received", "he_il": "התקבל" },
      "columns": [ { "field": "method" }, { "field": "details" }, { "field": "amount" } ] },
    { "id": "totals", "type": "totals", "rows": ["discount", "taxable", "exempt", "vat_by_rate", "rounding", "total", "local_currency_total", "paid"] },
    { "id": "thanks", "type": "text", "align": "center",
      "text": "Questions about invoice {{document.number}}? Write to {{company.email}} and quote {{document.reference|default:\"your order number\"}}." },
    { "id": "terms", "type": "html", "when": "doctype:3,9",
      "html": "<p><b>Terms:</b> payment within 30 days of {{document.issue_date|date}}. Late payments carry interest as the law allows.</p>" },
    { "id": "code", "type": "code", "kind": "tax_qr", "align": "end" },
    { "id": "signature", "type": "signature" }
  ],
  "footer": { "text": "{{company.name}} · {{company.website}}", "page_numbers": true, "show_on": "every" }
}
