Пример

Пример чека закрытия смены

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

  "header":[
    {
      "text" : "",
      "font" : "",
      "interval" : 30,
      "alignment": 1,
      "img_src":"\\Cheque\\regos.png",
      "img_width":180,
      "img_height":180
    },
    {
      "text" : "ОТЧЁТ ЗА СМЕНУ",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "#<session.code>",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "<AF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "КАССА:<SF>#<session.operating_cash>",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "ОТКРЫТО",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<session.start_datetime>",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<session.start_user_name>",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "ЗАКРЫТО",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<session.close_datetime>",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<session.close_user_name>",
      "font" : "Lucida Console, 8pt",
      "interval" : -3,
      "alignment": 1
    },
    {
      "text" : "<AF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "КОНТРОЛЬ ПРОДАЖ",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 1
    },
    {
      "text" : "<AF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    }
  ],

  "sale_totals":[
    {
      "text" : "КОЛ-ВО ПРОДАЖ:<SF><sale.closed.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "КОЛ-ВО ПРОД. ПОЗ.:<SF><sale.position.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "КОЛ-ВО ПРОД. ЕД-Ц.:<SF><sale.units.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "КОЛ-ВО АННУЛИР. ПРОД.:<SF><sale.canceled.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    }
  ],
  "payment_sale":[
    {
      "text" : "<payment.name><SF>=<payment.amount>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    }
  ],
  "payment_sale_totals":[
    {
      "text" : "<EF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "ИТОГО<SF>=<payment.totals>",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "<EF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    }
  ],

  "return_totals":[
    {
      "text" : "КОЛ-ВО ВОЗВРАТОВ:<SF><sale.closed.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "КОЛ-ВО ВОЗВР. ПОЗ.:<SF><sale.position.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "КОЛ-ВО ВОЗВР. ЕД-Ц.:<SF><sale.units.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "КОЛ-ВО АННУЛИР. ВОЗВР.:<SF><sale.canceled.counter>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "<DF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    }
  ],
  "payment_return":[
    {
      "text" : "<payment.name><SF>=<payment.amount>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    }
  ],
  "payment_return_totals":[
    {
      "text" : "<EF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "ИТОГО<SF>=<payment.totals>",
      "font" : "Lucida Console, 8pt, style=bold",
      "interval" : 3,
      "alignment": 1
    },
    {
      "text" : "<EF>",
      "font" : "Lucida Console, 8pt",
      "interval" : 3,
      "alignment": 1
    }
  ],

  "cash_totals":[
    {
      "text" : "НА ОТКРЫТИЕ<SF>=<cash.start_amount>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ВНЕСЕНИЯ<SF>=<cash.income>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ВНЕСЕНИЯ(продажа)<SF>=<cash.income.sale>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ВНЕСЕНИЯ(сдача)<SF>=<cash.income.change>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ИЗЪЯТИЯ<SF>=<cash.outcome>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ИЗЪЯТИЯ(возврат)<SF>=<cash.outcome.return>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "ИЗЪЯТИЯ(сдача)<SF>=<cash.outcome.change>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    },
    {
      "text" : "НА ЗАКРЫТИЕ<SF>=<cash.close_amount>",
      "font" : "Lucida Console, 8pt",
      "interval" : 2,
      "alignment": 0
    }
  ],
  "footer":[

  ]
}