{
  "width": 302.36,
  "height": 558.01,
  "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": "param",
      "id": "c_store",
      "x": 8.4,
      "y": 8.4,
      "w": 285.56,
      "h": 20.47,
      "paramName": "StoreName",
      "style": {
        "fontSize": 14.17,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_kind",
      "x": 8.4,
      "y": 30.97,
      "w": 285.56,
      "h": 12.07,
      "text": "فاکتور فروش",
      "style": {
        "fontSize": 7.87,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "param",
      "id": "c_addr",
      "x": 8.4,
      "y": 45.14,
      "w": 285.56,
      "h": 10.5,
      "paramName": "StoreAddress",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "param",
      "id": "c_phone",
      "x": 8.4,
      "y": 55.64,
      "w": 285.56,
      "h": 10.5,
      "paramName": "StorePhone",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_r1",
      "x": 8.4,
      "y": 68.24,
      "w": 285.56,
      "h": 8.4,
      "text": "───────────────────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_no_l",
      "x": 128.34,
      "y": 78.74,
      "w": 165.63,
      "h": 12.6,
      "text": "شماره فاکتور:",
      "style": {
        "fontSize": 7.35,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_no_v",
      "x": 8.4,
      "y": 78.74,
      "w": 114.23,
      "h": 12.6,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "ReceiptNumber",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "c_date_l",
      "x": 128.34,
      "y": 93.44,
      "w": 165.63,
      "h": 12.6,
      "text": "تاریخ:",
      "style": {
        "fontSize": 7.35,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "text",
      "id": "c_date_v",
      "x": 8.4,
      "y": 93.44,
      "w": 114.23,
      "h": 12.6,
      "text": "[InvoiceDateTime]",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "c_table_l",
      "x": 128.34,
      "y": 108.14,
      "w": 165.63,
      "h": 12.6,
      "text": "شماره میز:",
      "style": {
        "fontSize": 7.35,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_table_v",
      "x": 8.4,
      "y": 108.14,
      "w": 114.23,
      "h": 12.6,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "TableNo",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "c_cust_l",
      "x": 128.34,
      "y": 122.83,
      "w": 165.63,
      "h": 12.6,
      "text": "مشتری:",
      "style": {
        "fontSize": 7.35,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_cust_v",
      "x": 8.4,
      "y": 122.83,
      "w": 114.23,
      "h": 12.6,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "CustomerName",
      "style": {
        "fontSize": 7.35,
        "bold": false,
        "italic": false,
        "align": "left"
      }
    },
    {
      "kind": "text",
      "id": "c_r2",
      "x": 8.4,
      "y": 138.58,
      "w": 285.56,
      "h": 8.4,
      "text": "───────────────────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "table",
      "id": "c_items",
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "TransactionEntry",
      "headerRect": {
        "x": 8.4,
        "y": 148.03,
        "w": 285.56,
        "h": 18.9
      },
      "rowRect": {
        "x": 8.4,
        "y": 166.93,
        "w": 285.56,
        "h": 107.09
      },
      "rowHeight": 17.85,
      "showBorders": true,
      "headerBold": true,
      "columnsLayout": [
        {
          "columnName": "Description",
          "width": 131.23,
          "align": "right"
        },
        {
          "columnName": "Quantity",
          "width": 34.12,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": false,
            "currency": "",
            "currencyPosition": "suffix"
          }
        },
        {
          "columnName": "Price",
          "width": 57.22,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": true,
            "currency": "",
            "currencyPosition": "suffix"
          }
        },
        {
          "columnName": "LineTotal",
          "width": 62.99,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": true,
            "currency": "",
            "currencyPosition": "suffix"
          }
        }
      ],
      "textStyle": {
        "fontSize": 7.87,
        "bold": false,
        "italic": false,
        "align": "right"
      },
      "autoGrow": true,
      "bottomMargin": 5.25
    },
    {
      "kind": "text",
      "id": "c_r3",
      "x": 8.4,
      "y": 278.22,
      "w": 285.56,
      "h": 8.4,
      "text": "───────────────────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_sum_l",
      "x": 128.34,
      "y": 287.66,
      "w": 165.63,
      "h": 13.12,
      "text": "جمع کل:",
      "style": {
        "fontSize": 7.87,
        "bold": false,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_sum_v",
      "x": 8.4,
      "y": 287.66,
      "w": 114.23,
      "h": 13.12,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "Total",
      "style": {
        "fontSize": 7.87,
        "bold": true,
        "italic": false,
        "align": "left"
      },
      "numberFormat": {
        "decimals": 0,
        "useGrouping": true,
        "currency": "ریال",
        "currencyPosition": "suffix"
      }
    },
    {
      "kind": "text",
      "id": "c_tax_l",
      "x": 128.34,
      "y": 302.89,
      "w": 165.63,
      "h": 13.12,
      "text": "مالیات بر ارزش افزوده:",
      "style": {
        "fontSize": 7.87,
        "bold": false,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_tax_v",
      "x": 8.4,
      "y": 302.89,
      "w": 114.23,
      "h": 13.12,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "SalesTax",
      "style": {
        "fontSize": 7.87,
        "bold": true,
        "italic": false,
        "align": "left"
      },
      "numberFormat": {
        "decimals": 0,
        "useGrouping": true,
        "currency": "ریال",
        "currencyPosition": "suffix"
      }
    },
    {
      "kind": "text",
      "id": "c_r4",
      "x": 8.4,
      "y": 319.16,
      "w": 285.56,
      "h": 8.4,
      "text": "───────────────────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_pay_l",
      "x": 128.34,
      "y": 328.61,
      "w": 165.63,
      "h": 15.75,
      "text": "قابل پرداخت:",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "right"
      }
    },
    {
      "kind": "field",
      "id": "c_pay_v",
      "x": 8.4,
      "y": 328.61,
      "w": 114.23,
      "h": 15.75,
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "PaymentTotal",
      "style": {
        "fontSize": 10.5,
        "bold": true,
        "italic": false,
        "align": "left"
      },
      "numberFormat": {
        "decimals": 0,
        "useGrouping": true,
        "currency": "ریال",
        "currencyPosition": "suffix"
      }
    },
    {
      "kind": "text",
      "id": "c_ten_t",
      "x": 8.4,
      "y": 348.56,
      "w": 285.56,
      "h": 11.02,
      "text": "نحوه پرداخت",
      "style": {
        "fontSize": 7.87,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "table",
      "id": "c_tender",
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "TenderEntry",
      "headerRect": {
        "x": 8.4,
        "y": 361.68,
        "w": 285.56,
        "h": 17.85
      },
      "rowRect": {
        "x": 8.4,
        "y": 379.53,
        "w": 285.56,
        "h": 35.7
      },
      "rowHeight": 17.85,
      "showBorders": true,
      "headerBold": true,
      "columnsLayout": [
        {
          "columnName": "TenderDescription",
          "width": 125.46,
          "align": "right"
        },
        {
          "columnName": "Amount",
          "width": 97.11,
          "align": "center",
          "numberFormat": {
            "decimals": 0,
            "useGrouping": true,
            "currency": "",
            "currencyPosition": "suffix"
          }
        },
        {
          "columnName": "ApprovalCode",
          "width": 62.99,
          "align": "center"
        }
      ],
      "textStyle": {
        "fontSize": 7.87,
        "bold": false,
        "italic": false,
        "align": "right"
      },
      "autoGrow": true,
      "bottomMargin": 5.25
    },
    {
      "kind": "text",
      "id": "c_r5",
      "x": 8.4,
      "y": 420.47,
      "w": 285.56,
      "h": 8.4,
      "text": "───────────────────────────────────────────────────────────────────────────────────────────────────────────",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "text",
      "id": "c_thanks",
      "x": 8.4,
      "y": 430.97,
      "w": 285.56,
      "h": 12.6,
      "text": "با تشکر از خرید شما",
      "style": {
        "fontSize": 8.4,
        "bold": true,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "param",
      "id": "c_fphone",
      "x": 8.4,
      "y": 444.62,
      "w": 285.56,
      "h": 10.5,
      "paramName": "StorePhone",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    },
    {
      "kind": "barcode",
      "id": "c_qr",
      "x": 117.06,
      "y": 457.22,
      "w": 68.24,
      "h": 68.24,
      "barcodeType": "qr",
      "valueSource": "field",
      "staticValue": "",
      "dataSetName": "Sale",
      "dataSetAlias": "",
      "tableName": "Transaction",
      "columnName": "ReceiptNumber",
      "showText": false
    },
    {
      "kind": "text",
      "id": "c_fno",
      "x": 8.4,
      "y": 530.71,
      "w": 285.56,
      "h": 9.45,
      "text": "شماره پیگیری فاکتور",
      "style": {
        "fontSize": 6.3,
        "bold": false,
        "italic": false,
        "align": "center"
      }
    }
  ]
}