{
  "width": 302.36,
  "height": 355.91,
  "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": 8.4,
      "y": 8.4,
      "w": 285.56,
      "h": 21.0,
      "text": "سفارش آشپزخانه",
      "style": {
        "fontSize": 14.7,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_r0",
      "x": 8.4,
      "y": 31.5,
      "w": 285.56,
      "h": 9.45,
      "text": "────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_no_l",
      "x": 151.18,
      "y": 43.04,
      "w": 142.78,
      "h": 14.7,
      "text": "فاکتور:",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_no_v",
      "x": 8.4,
      "y": 43.04,
      "w": 142.78,
      "h": 14.7,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "ReceiptNumber",
      "style": {
        "fontSize": 13.65,
        "bold": true,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_tbl_l",
      "x": 151.18,
      "y": 60.89,
      "w": 142.78,
      "h": 14.7,
      "text": "میز:",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_tbl_v",
      "x": 8.4,
      "y": 60.89,
      "w": 142.78,
      "h": 14.7,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "TableNo",
      "style": {
        "fontSize": 13.65,
        "bold": true,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_date_l",
      "x": 151.18,
      "y": 77.69,
      "w": 142.78,
      "h": 13.65,
      "text": "تاریخ:",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "text",
      "id": "k_date_v",
      "x": 8.4,
      "y": 77.69,
      "w": 142.78,
      "h": 13.65,
      "text": "[InvoiceDateTime]",
      "style": {
        "fontSize": 10.5,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "k_r1",
      "x": 8.4,
      "y": 94.49,
      "w": 285.56,
      "h": 9.45,
      "text": "────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "table",
      "id": "k_items",
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "TransactionEntry",
      "headerRect": {
        "x": 8.4,
        "y": 106.04,
        "w": 285.56,
        "h": 24.15
      },
      "rowRect": {
        "x": 8.4,
        "y": 130.18,
        "w": 285.56,
        "h": 144.88
      },
      "rowHeight": 24.15,
      "showBorders": true,
      "headerBold": true,
      "columnsLayout": [
        {
          "columnName": "Description",
          "width": 160.1,
          "align": "right"
        },
        {
          "columnName": "Quantity",
          "width": 45.67,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": false,
            "currency": "",
            "currencyPosition": "suffix"
          }
        },
        {
          "columnName": "Comment",
          "width": 79.79,
          "align": "right"
        }
      ],
      "textStyle": {
        "fontSize": 11.55,
        "bold": false,
        "italic": false,
        "align": "right"
      },
      "autoGrow": true,
      "bottomMargin": 5.25
    },
    {
      "kind": "text",
      "id": "k_r2",
      "x": 8.4,
      "y": 280.31,
      "w": 285.56,
      "h": 9.45,
      "text": "────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "k_cmt_l",
      "x": 8.4,
      "y": 291.86,
      "w": 285.56,
      "h": 13.65,
      "text": "توضیحات سفارش:",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "k_cmt_v",
      "x": 8.4,
      "y": 306.56,
      "w": 285.56,
      "h": 15.75,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "Comment",
      "style": {
        "fontSize": 10.5,
        "bold": false,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "text",
      "id": "k_end",
      "x": 8.4,
      "y": 325.46,
      "w": 285.56,
      "h": 12.6,
      "text": "★  پایان سفارش  ★",
      "style": {
        "fontSize": 9.45,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    }
  ]
}