{
  "width": 207.87,
  "height": 302.07,
  "outputScale": 2,
  "parameters": [
    {
      "name": "StoreName",
      "label": "نام فروشگاه",
      "type": "string",
      "defaultValue": "رستوران یسنا"
    },
    {
      "name": "StoreAddress",
      "label": "آدرس",
      "type": "string",
      "defaultValue": ""
    },
    {
      "name": "StorePhone",
      "label": "تلفن",
      "type": "string",
      "defaultValue": "۰۲۱-۷۵۴۲۴  |  ۰۲۱-۷۴۵۲۳"
    },
    {
      "name": "InvoiceDate",
      "label": "تاریخ فاکتور",
      "type": "string",
      "defaultValue": ""
    },
    {
      "name": "InvoiceTime",
      "label": "ساعت فاکتور",
      "type": "string",
      "defaultValue": ""
    },
    {
      "name": "InvoiceDateTime",
      "label": "تاریخ و ساعت",
      "type": "string",
      "defaultValue": ""
    }
  ],
  "dataSets": [
    {
      "name": "Sale",
      "alias": "",
      "tables": [
        {
          "name": "Transaction",
          "alias": "",
          "rows": [],
          "columns": [
            {
              "name": "ReceiptNumber",
              "alias": "شماره فاکتور",
              "type": "string"
            },
            {
              "name": "Time",
              "alias": "تاریخ",
              "type": "string"
            },
            {
              "name": "TableNo",
              "alias": "میز",
              "type": "number"
            },
            {
              "name": "CustomerName",
              "alias": "مشتری",
              "type": "string"
            },
            {
              "name": "Comment",
              "alias": "توضیحات",
              "type": "string"
            },
            {
              "name": "ReferenceNumber",
              "alias": "مرجع",
              "type": "string"
            },
            {
              "name": "Total",
              "alias": "جمع کل",
              "type": "number"
            },
            {
              "name": "SalesTax",
              "alias": "مالیات",
              "type": "number"
            },
            {
              "name": "PaymentTotal",
              "alias": "پرداختی",
              "type": "number"
            },
            {
              "name": "Balance",
              "alias": "مانده",
              "type": "number"
            }
          ]
        },
        {
          "name": "TransactionEntry",
          "alias": "",
          "rows": [],
          "columns": [
            {
              "name": "Description",
              "alias": "شرح کالا",
              "type": "string"
            },
            {
              "name": "Quantity",
              "alias": "تعداد",
              "type": "number"
            },
            {
              "name": "Price",
              "alias": "فی (ریال)",
              "type": "number"
            },
            {
              "name": "LineTotal",
              "alias": "مبلغ (ریال)",
              "type": "number"
            },
            {
              "name": "Comment",
              "alias": "توضیحات",
              "type": "string"
            }
          ]
        },
        {
          "name": "TenderEntry",
          "alias": "",
          "rows": [],
          "columns": [
            {
              "name": "TenderDescription",
              "alias": "نوع پرداخت",
              "type": "string"
            },
            {
              "name": "Amount",
              "alias": "مبلغ (ریال)",
              "type": "number"
            },
            {
              "name": "ApprovalCode",
              "alias": "کد پیگیری",
              "type": "string"
            }
          ]
        }
      ]
    }
  ],
  "previewConfig": {
    "parameters": {
      "StoreName": "رستوران یسنا",
      "StoreAddress": "تهران - خیابان ولیعصر - پلاک ۱۲۰",
      "StorePhone": "۰۲۱-۷۵۴۲۴  |  ۰۲۱-۷۴۵۲۳",
      "InvoiceDate": "1405/04/20",
      "InvoiceTime": "12:34",
      "InvoiceDateTime": "1405/04/20 - 12:34"
    },
    "dataSets": {
      "Sale": {
        "Transaction": [
          {
            "ReceiptNumber": "10245",
            "Time": "1405/04/20  -  12:34",
            "TableNo": 7,
            "CustomerName": "مشتری مهمان",
            "Comment": "سفارش برای بیرون‌بر",
            "ReferenceNumber": "8842301",
            "Total": 6850000,
            "SalesTax": 0,
            "PaymentTotal": 6850000,
            "Balance": 0
          }
        ],
        "TransactionEntry": [
          {
            "Description": "چلوکباب کوبیده",
            "Quantity": 2,
            "Price": 1850000,
            "LineTotal": 3700000,
            "Comment": "بدون پیاز"
          },
          {
            "Description": "جوجه کباب مخصوص",
            "Quantity": 1,
            "Price": 2200000,
            "LineTotal": 2200000,
            "Comment": ""
          },
          {
            "Description": "نوشابه خانواده",
            "Quantity": 2,
            "Price": 350000,
            "LineTotal": 700000,
            "Comment": "زرد"
          },
          {
            "Description": "ماست موسیر",
            "Quantity": 1,
            "Price": 250000,
            "LineTotal": 250000,
            "Comment": ""
          }
        ],
        "TenderEntry": [
          {
            "TenderDescription": "کارت بانکی",
            "Amount": 6850000,
            "ApprovalCode": "8842301"
          }
        ]
      }
    }
  },
  "elements": [
    {
      "kind": "text",
      "id": "k_title",
      "x": 6.5,
      "y": 6.5,
      "w": 194.88,
      "h": 17.32,
      "text": "سفارش آشپزخانه",
      "style": {
        "fontSize": 10.83,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_r0",
      "x": 6.5,
      "y": 25.98,
      "w": 194.88,
      "h": 8.12,
      "text": "─────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 5.95,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_no_l",
      "x": 103.94,
      "y": 36.27,
      "w": 97.44,
      "h": 12.45,
      "text": "فاکتور:",
      "style": {
        "fontSize": 8.12,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_no_v",
      "x": 6.5,
      "y": 36.27,
      "w": 97.44,
      "h": 12.45,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "ReceiptNumber",
      "style": {
        "fontSize": 11.37,
        "bold": true,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_tbl_l",
      "x": 103.94,
      "y": 51.97,
      "w": 97.44,
      "h": 12.45,
      "text": "میز:",
      "style": {
        "fontSize": 8.12,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_tbl_v",
      "x": 6.5,
      "y": 51.97,
      "w": 97.44,
      "h": 12.45,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "TableNo",
      "style": {
        "fontSize": 11.37,
        "bold": true,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_date_l",
      "x": 103.94,
      "y": 66.58,
      "w": 97.44,
      "h": 11.37,
      "text": "تاریخ:",
      "style": {
        "fontSize": 8.12,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "text",
      "id": "k_date_v",
      "x": 6.5,
      "y": 66.58,
      "w": 97.44,
      "h": 11.37,
      "text": "[InvoiceDateTime]",
      "style": {
        "fontSize": 8.12,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_r1",
      "x": 6.5,
      "y": 81.2,
      "w": 194.88,
      "h": 8.12,
      "text": "─────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 5.95,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "table",
      "id": "k_items",
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "TransactionEntry",
      "headerRect": {
        "x": 6.5,
        "y": 91.49,
        "w": 194.88,
        "h": 19.49
      },
      "rowRect": {
        "x": 6.5,
        "y": 110.97,
        "w": 194.88,
        "h": 116.93
      },
      "rowHeight": 19.49,
      "showBorders": true,
      "headerBold": true,
      "columnsLayout": [
        {
          "columnName": "Description",
          "width": 108.8,
          "align": "right"
        },
        {
          "columnName": "Quantity",
          "width": 31.4,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": false,
            "currency": "",
            "currencyPosition": "suffix"
          }
        },
        {
          "columnName": "Comment",
          "width": 54.68,
          "align": "right"
        }
      ],
      "textStyle": {
        "fontSize": 8.66,
        "bold": false,
        "italic": false,
        "align": "right"
      },
      "autoGrow": true,
      "bottomMargin": 5.41
    },
    {
      "kind": "text",
      "id": "k_r2",
      "x": 6.5,
      "y": 233.32,
      "w": 194.88,
      "h": 8.12,
      "text": "─────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 5.95,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_cmt_l",
      "x": 6.5,
      "y": 243.6,
      "w": 194.88,
      "h": 11.37,
      "text": "توضیحات سفارش:",
      "style": {
        "fontSize": 8.12,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_cmt_v",
      "x": 6.5,
      "y": 256.05,
      "w": 194.88,
      "h": 13.53,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "Comment",
      "style": {
        "fontSize": 8.12,
        "bold": false,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "text",
      "id": "k_end",
      "x": 6.5,
      "y": 272.83,
      "w": 194.88,
      "h": 10.83,
      "text": "★  پایان سفارش  ★",
      "style": {
        "fontSize": 7.58,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    }
  ]
}