{
  "margin_left": 0,
  "margin_right": 10,

  "variables": {
    "type_sale": "Sotuv",
    "type_return": "Qaytaruv"
  },
  "header": [
    {
      "text": "",
      "font": "",
      "interval": 10,
      "img_src": "1", 
      "alignment": 1,
      "img_width": 400,
      "img_height": 100
    },
{
      "text" : "<company.name> ",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval": -10,
      "alignment": 1
    },
  {
      "text" : "<company.address> ",
      "font" : "Lucida Console, 6pt",
      "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": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
  ],
  "positions": [
{
      "text": "<pos.label>",
      "font": "Lucida Console, 1pt",
      "interval": 15,
      "alignment": 0
    },
    {
      "text": "<pos.n>. <pos.name>",
      "font": "Lucida Console, 7pt",
      "interval": 15,
      "alignment": 0
    },
   {
      "text": "Sh.k: <pos.barcode>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 0
    },
   {
      "text": "MXIK: <pos.icps>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "Tovarni kelib chiqishi: <pos.owner_type>",
      "font": "Lucida Console, 7pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "<pos.quantity> x <pos.price> = <pos.amount>",
      "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
    },
{
      "text": "Bank kartasi turi<SF><payment.card_type>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
{
      "text": "RRN<SF><payment.rrn>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    }
  ],
  "footer": [
    {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
   {
      "text": "Siz xaridning 1% miqdorida Keshbek olish huquqiga ega boʻldingiz",
      "font": "Lucida Console, 8pt, style=bold",
      "interval": 40,
      "alignment": 1
    },
  {
      "text": "<DF>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 1
    },
    {
      "text": "FM:<doc.terminal_id>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "FB:<doc.fiscal_sign>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
    {
      "text": "FM chek raqami:<doc.id>",
      "font": "Lucida Console, 8pt",
      "interval": -10,
      "alignment": 0
    },
   {
      "text" : "Nusxasi № <doc.duplicate> ",
      "font" : "Lucida Console, 8pt",
      "interval" : -6,
      "alignment": 0
    },
    {
      "text": "<doc.qr_code>",
      "font": "Lucida Console, 8pt",
      "barcode_height": 350,
      "barcode_width": 350,
      "barcode_type": 4,
      "interval": 30,
      "alignment": 2
    },
   {
      "text" : "<doc.terminal_slip> ",
      "font" : "Lucida Console, 8pt",
      "interval" : 0,
      "alignment": 0
    }
]
}