Доступные уровни (от низкого к высокому):
* - Разрешает запросы со всех хостовКаждый агент содержит:
Каждый ключ содержит:
Примечание: Сортировка применяется в порядке указания ключей в массиве
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
}
},
"NLog": {
"GlobalThreshold": "Info"
},
"AllowedHosts": "*",
"Urls": "http://*:5008",
"IndexPath": ".\\web",
"PublicPath": ".\\web\\public",
"SinglePageMode": true,
"Database": {
"Provider": "MSSQL",
"ConnectionStrings": {
"MSSQL": "",
"PostgreSQL": ""
}
},
"StaticFilesSettings": {
"IndexPath": ".\\web", //Путь до файла индекса
"PublicPath": ".\\web\\public", //Путь до изображений и прочего контента
"SinglePageMode": true //В большинстве случае нужно оставить true. Нужно для корректной работы маршрутизации в SPA-веб приложениях
},
"Agents": [
{
"Id": "1",
"Name": "Agent1",
"ServicePort": 5099,
"ServicePortNoSsl": 5098,
"ServiceUrl": "127.0.0.1",
"Certificate": "",
"Password": "123"
},
{
"Id": "11",
"Name": "qwe",
"ServicePort": 5097,
"ServicePortNoSsl": 5096,
"ServiceUrl": "127.0.0.1",
"Certificate": "",
"Password": ""
}
],
"ReceiptsSort": {
"Keys": [
{
"Name": "IsFiscal",
"Enabled": false,
"Descending": true
},
{
"Name": "HasFiscalRegister",
"Enabled": true,
"Descending": true
},
{
"Name": "IsError",
"Enabled": true,
"Descending": true
},
{
"Name": "CreatedTime",
"Enabled": true,
"Descending": false
}
]
}
}
.jpg)
{
"PrintingTemplate": [
{
"name": "default",
"options": { "culture": "Invariant" },
"blocks": {
"header": [
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "Кассовый чек №: {fiscal.FiscalDocumentNumber} ",
"Font": 0,
"doubleWidth": true,
"doubleHeight": true
}
}
]
},
"sequence": [
{
"type": "block",
"blockName": "header"
},
{
"type": "global",
"when": "before",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "{Receipt.ReceiptType}",
"Place": "after"
}
},
{
"type": "positions",
"item": "before",
"printExisting": true
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].Name}; {Receipt.Positions[].Measure}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].Quantity} x {Receipt.Positions[].Price:F2} = {Receipt.Positions[].Sum:F2}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Marking.Code)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].VatType} [M]",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNullOrEmpty(Receipt.Positions[].Marking.Code)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].VatType}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.Type)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Тип агента: {Receipt.Positions[].Agent.Type}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.Supplier.Name)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Наименование: {Receipt.Positions[].Agent.Supplier.Name}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.Supplier.Inn)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "ИНН: {Receipt.Positions[].Agent.Supplier.Inn}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.Supplier.Phones)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Телефоны поставщика:",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Positions[].Agent.Supplier.Phones}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.PayingAgent)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Платежный агент",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.PayingAgent.Operation)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Операция {Receipt.Positions[].Agent.PayingAgent.Operation}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.PayingAgent.Phones)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Телефоны платежного агента:",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Positions[].Agent.PayingAgent.Phones}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.PayingAgent.ReceivePaymentsOperatorPhones)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Телефоны оператора по приему платежей:",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Positions[].Agent.PayingAgent.ReceivePaymentsOperatorPhones}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.PayingAgent.ReceptionOperator.Phones)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Данные оператора по приему платежей:",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Positions[].Agent.ReceptionOperator.Phones}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.TransferOperator.Name)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Данные оператора перевода",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.TransferOperator.Name)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Наименование: {Receipt.Positions[].Agent.TransferOperator.Name}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.TransferOperator.Address)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Адрес: {Receipt.Positions[].Agent.TransferOperator.Address}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.TransferOperator.Inn)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "ИНН: {Receipt.Positions[].Agent.TransferOperator.Inn}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Agent.TransferOperator.Phones)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "Номера:",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Positions[].Agent.TransferOperator.Phones}",
"Font": 0
}
},
{
"type": "positions",
"item": "middle",
"printExisting": true
},
{
"type": "positions",
"item": "after",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "ИТОГО: {FiscalParamsRu.Total:F2}",
"Font": 2,
"doubleWidth": true,
"doubleHeight": true
}
},
{
"type": "payments",
"item": "before",
"printExisting": true
},
{
"type": "payments",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Payments[].Type} {Receipt.Payments[].Amount:F2}",
"Font": 0
}
},
{
"type": "payments",
"item": "middle",
"printExisting": true
},
{
"type": "payments",
"item": "after",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Система налогообложения организации: {Receipt.Organization.TaxSystem}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "КАССИР: {Receipt.Cashier.Name}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ИНН: {Receipt.Cashier.Inn}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Клиент: {Receipt.Client.EmailOrPhone}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Смена: {fiscal.ShiftNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ЗН ККТ: {fiscal.registrationNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФН: {fiscal.fnNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФД: {fiscal.fiscalDocumentNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФП: {fiscal.fiscalDocumentSign}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Номер автомата: {Receipt.MachineNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "barcode",
"BarcodeType": "QR",
"Alignment": "center",
"BcScale": 0,
"Text": "t={t}&s={s}&fn={fiscal.FnNumber}&i={fiscal.FiscalDocumentNumber}&fp={fiscal.FiscalDocumentSign}&n={Receipt.ReceiptType}"
}
},
{
"type": "static",
"condition": "{Receipt.Electronically} == true",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "ЧЕК ПРЕДОСТАВЛЕН В ЭЛЕКТРОННОМ ВИДЕ",
"Font": 0,
"Place": "after"
}
},
{
"type": "global",
"when": "middle",
"printExisting": true
},
{
"type": "global",
"when": "after",
"printExisting": true
}
]
}
]
}
.jpg)
{
"PrintingTemplate": [
{
"name": "default",
"options": { "culture": "Invariant" },
"blocks": {
"header": [
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "Кассовый чек №: {fiscal.FiscalDocumentNumber} ",
"Font": 0,
"doubleWidth": true,
"doubleHeight": true
}
}
]
},
"sequence": [
{
"type": "block",
"blockName": "header"
},
{
"type": "global",
"when": "before",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "{Receipt.ReceiptType}",
"Place": "after"
}
},
{
"type": "positions",
"item": "before",
"printExisting": true
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].Name}; {Receipt.Positions[].Measure}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].Quantity} x {Receipt.Positions[].Price:F2} = {Receipt.Positions[].Sum:F2}",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNotNullOrEmpty(Receipt.Positions[].Marking.Code)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].VatType} [M]",
"Font": 0
}
},
{
"type": "positions",
"item": "line",
"condition": "IsNullOrEmpty(Receipt.Positions[].Marking.Code)",
"printingItem": {
"Type": "text",
"Alignment": "left",
"Text": "{Receipt.Positions[].VatType}",
"Font": 0
}
},
{
"type": "positions",
"item": "middle",
"printExisting": true
},
{
"type": "positions",
"item": "after",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "ИТОГО: {fiscal.Total:F2}",
"Font": 2,
"doubleWidth": true,
"doubleHeight": true
}
},
{
"type": "payments",
"item": "before",
"printExisting": true
},
{
"type": "payments",
"item": "line",
"printingItem": {
"Type": "text",
"Alignment": "right",
"Text": "{Receipt.Payments[].Type} {Receipt.Payments[].Amount:F2}",
"Font": 0
}
},
{
"type": "payments",
"item": "middle",
"printExisting": true
},
{
"type": "payments",
"item": "after",
"printExisting": true
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Система налогообложения организации: {Receipt.Organization.TaxSystem}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "КАССИР: {Receipt.Cashier.Name}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ИНН: {Receipt.Cashier.Inn}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Клиент: {Receipt.Client.EmailOrPhone}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Смена: {fiscal.ShiftNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ЗН ККТ: {fiscal.registrationNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФН: {fiscal.fnNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФД: {fiscal.fiscalDocumentNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "ФП: {fiscal.fiscalDocumentSign}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "text",
"Text": "Номер автомата: {Receipt.MachineNumber}",
"Place": "after"
}
},
{
"type": "static",
"printingItem": {
"Type": "barcode",
"BarcodeType": "QR",
"Alignment": "center",
"BcScale": 0,
"Text": "t={t}&s={s}&fn={fiscal.FnNumber}&i={fiscal.FiscalDocumentNumber}&fp={fiscal.FiscalDocumentSign}&n={Receipt.ReceiptType}"
}
},
{
"type": "static",
"condition": "{Receipt.Electronically} == true",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "ЧЕК ПРЕДОСТАВЛЕН В ЭЛЕКТРОННОМ ВИДЕ",
"Font": 0,
"Place": "after"
}
},
{
"type": "global",
"when": "middle",
"printExisting": true
},
{
"type": "global",
"when": "after",
"printExisting": true
}
]
}
]
}

{
"PrintingTemplate": [
{
"name": "default",
"options": { "culture": "Invariant" },
"blocks": {
"header": [
{
"type": "static",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "Кассовый чек №: {fiscal.FiscalDocumentNumber} ",
"Font": 0,
"doubleWidth": true,
"doubleHeight": true
}
}
]
},
"sequence": [
{
"type": "static",
"printingItem": {
"Type": "barcode",
"BarcodeType": "QR",
"Alignment": "center",
"BcScale": 0,
"Text": "t={t}&s={s}&fn={fiscal.FnNumber}&i={fiscal.FiscalDocumentNumber}&fp={fiscal.FiscalDocumentSign}&n={Receipt.ReceiptType}"
}
},
{
"type": "static",
"condition": "{Receipt.Electronically} == true",
"printingItem": {
"Type": "text",
"Alignment": "center",
"Text": "ЧЕК ПРЕДОСТАВЛЕН В ЭЛЕКТРОННОМ ВИДЕ",
"Font": 0,
"Place": "after"
}
},
{
"type": "global",
"when": "middle",
"printExisting": true
},
{
"type": "global",
"when": "after",
"printExisting": true
}
]
}
]
}