Пример

Пример кредитного чека
{
  "margin_left": 0,
  "margin_right": 10,
  "variables": {
    "type_advance": "Credit",
  },
  "header": [
    {
      "text": "",
      "font": "",
      "interval": 10,
      "img_src": "1",
      "alignment": 1,
      "img_width": 200,
      "img_height": 159
    },
    {
      "text": "<company.name> ",
      "font": "Lucida Console, 8pt, style=bold",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "<company.address> ",
      "font": "Lucida Console, 8pt",
      "interval": 25,
      "alignment": 1
    },
    {
      "text": "STIR: <SF><company.inn>",
      "font": "Lucida Console, 8pt",
      "interval": 10,
      "alignment": 1
    },
    {
      "text": "<AF> ",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Savdo cheki:<SF><doc.code>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "<doc.date><SF><doc.time>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Turi:<SF><doc.type>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "S/N:<doc.sn><SF>POS №:<doc.cash_id>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Smena:<SF><doc.session>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Kassir:<SF><doc.cashier_name>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    }
  ],
  "positions": [
    {
      "text": "<pos.n>. <pos.name> [<pos.unit>]",
      "font": "Lucida Console, 7pt",
      "interval": 15,
      "alignment": 0
    },
    {
      "text": "MXIK: <pos.icps>",
      "font": "Lucida Console, 7pt",
      "interval": 15,
      "alignment": 0
    },
    {
      "text": "MK: <pos.label>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "<pos.quantity> x <pos.price> = <pos.amount>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 2
    },
    {
      "id": "discount",
      "text": "Chegirma <pos.discount>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 2
    },
    {
      "id": "discount",
      "text": "Hammasi <pos.amount_discount>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 2
    },
    {
      "text": "sh. j. QQS <pos.vat_value><SF><pos.vat_amount>",
      "font": "Lucida Console, 7pt",
      "interval": 0,
      "alignment": 0
    }
  ],
  "position_totals": [
    {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Jami:<SF><pos.total_amount>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "id": "discount",
      "text": "Chegirmalar:<SF><pos.total_discount>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "id": "bonus",
      "text": "Chegirma (Bonus):<SF><payment.total_other>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "Hammasi:<SF><pos.total_price>",
      "font": "Lucida Console, 8pt, style=bold",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "Sh. j. QQS:<SF><pos.total_vat>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    }
  ],
  "payments": [
    {
      "text": "<payment.type_name><SF><payment.value>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    }
  ],
  "footer": [
    {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "Haridingiz uchun rahmat!",
      "font": "Lucida Console, 8pt, style=bold",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "FM:<doc.terminal_id>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "Nusxasi № <doc.duplicate> ",
      "font": "Lucida Console, 8pt",
      "interval": -6,
      "alignment": 0
    },
  ]
}