{
  "entity" : "POS.POSDiscountCoupon",
  "table" : "POSDiscountCoupon",
  "module" : "pos-app",
  "ar" : "قسيمة خصومات",
  "arPlural" : " قسيمة خصومات",
  "en" : "Discount Coupon",
  "enPlural" : " Discount Coupon",
  "page" : "https://dm.namasoft.com/modules/pos-app/POS.POSDiscountCoupon.html",
  "fields" : [ {
    "id" : "code",
    "column" : "code",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "colorCode",
    "column" : "colorCode",
    "ar" : "كود اللون",
    "en" : "Color Code",
    "type" : "Text"
  }, {
    "id" : "comitBefore",
    "column" : "comitBefore",
    "type" : "Boolean"
  }, {
    "id" : "couponValue",
    "column" : "couponValue",
    "ar" : "قيمة",
    "en" : "Coupon Value",
    "type" : "Decimal"
  }, {
    "id" : "creationDate",
    "column" : "creationDate",
    "ar" : "تاريخ الإنشاء",
    "en" : "Creation Date",
    "type" : "DateAndTime"
  }, {
    "id" : "customer",
    "column" : "customer_id",
    "ar" : "العميل",
    "en" : "Customer",
    "type" : "Reference",
    "refTo" : "POS.POSCustomer",
    "refPath" : "/modules/pos-app/POS.POSCustomer.html"
  }, {
    "id" : "fromDate",
    "column" : "fromDate",
    "ar" : "من تاريخ",
    "en" : "From Date",
    "type" : "DateAndTime"
  }, {
    "id" : "fromInvoiceId",
    "column" : "fromInvoiceId",
    "type" : "ID"
  }, {
    "id" : "fromRecId",
    "column" : "fromRecId",
    "type" : "ID"
  }, {
    "id" : "genericDims.analysisSet.code",
    "column" : "analysisSetCode",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "genericDims.analysisSet.id",
    "column" : "analysisSetId",
    "ar" : "المعرف",
    "en" : "Id",
    "type" : "ID"
  }, {
    "id" : "genericDims.branch.code",
    "column" : "branchCode",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "genericDims.branch.id",
    "column" : "branchId",
    "ar" : "المعرف",
    "en" : "Id",
    "type" : "ID"
  }, {
    "id" : "genericDims.department.code",
    "column" : "departmentCode",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "genericDims.department.id",
    "column" : "departmentId",
    "ar" : "المعرف",
    "en" : "Id",
    "type" : "ID"
  }, {
    "id" : "genericDims.legalEntity.code",
    "column" : "legalEntityCode",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "genericDims.legalEntity.id",
    "column" : "legalEntityId",
    "ar" : "المعرف",
    "en" : "Id",
    "type" : "ID"
  }, {
    "id" : "genericDims.sector.code",
    "column" : "sectorCode",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "genericDims.sector.id",
    "column" : "sectorId",
    "ar" : "المعرف",
    "en" : "Id",
    "type" : "ID"
  }, {
    "id" : "id",
    "column" : "id",
    "type" : "ID"
  }, {
    "id" : "imgDownloadLink",
    "column" : "imgDownloadLink",
    "type" : "Text"
  }, {
    "id" : "lastUpdateDate",
    "column" : "lastUpdateDate",
    "ar" : "تاريخ اخر تحديث",
    "en" : "Last update Date",
    "type" : "DateAndTime"
  }, {
    "id" : "name1",
    "column" : "name1",
    "ar" : "الاسم العربي",
    "en" : "Name1",
    "type" : "Text"
  }, {
    "id" : "name2",
    "column" : "name2",
    "ar" : "الاسم الإنجليزي",
    "en" : "Name2",
    "type" : "Text"
  }, {
    "id" : "preventUsage",
    "column" : "preventUsage",
    "ar" : "منع الاستعمال",
    "en" : "Prevent Usage",
    "type" : "Boolean"
  }, {
    "id" : "printCount",
    "column" : "printCount",
    "ar" : "عدد مرات الطباعة",
    "en" : "Print Count",
    "type" : "Integer"
  }, {
    "id" : "selected",
    "column" : "selected",
    "ar" : "اختيار",
    "en" : "Selected",
    "type" : "Boolean"
  }, {
    "id" : "sent",
    "column" : "sent",
    "type" : "Boolean"
  }, {
    "id" : "toDate",
    "column" : "toDate",
    "ar" : "إلى تاريخ",
    "en" : "To Date",
    "type" : "DateAndTime"
  }, {
    "id" : "usedOnce",
    "column" : "usedOnce",
    "ar" : "تستخدم مره واحده",
    "en" : "Used Once",
    "type" : "Boolean"
  }, {
    "id" : "writeFailures",
    "column" : "writeFailures",
    "type" : "Integer"
  } ],
  "details" : [ {
    "id" : "details",
    "table" : "POSDiscountCouponLine",
    "joinColumn" : "coupon_id",
    "ar" : "التفاصيل",
    "en" : "Details",
    "fields" : [ {
      "id" : "details.coupon",
      "column" : "coupon_id",
      "ar" : "قسيمة خصومات",
      "en" : "Coupon",
      "type" : "Reference",
      "refTo" : "POS.POSDiscountCoupon",
      "refPath" : "/modules/pos-app/POS.POSDiscountCoupon.html"
    }, {
      "id" : "details.id",
      "column" : "id",
      "type" : "ID"
    }, {
      "id" : "details.invCode",
      "column" : "invCode",
      "ar" : "الكود بنقطة البيع",
      "en" : "Code in POS",
      "type" : "Text"
    }, {
      "id" : "details.invoiceId",
      "column" : "invoiceId",
      "ar" : "Invoice Id",
      "en" : "Invoice Id",
      "type" : "ID"
    }, {
      "id" : "details.lineNumber",
      "column" : "lineNumber",
      "type" : "Integer"
    }, {
      "id" : "details.registerCode",
      "column" : "registerCode",
      "ar" : "كود الماكينة",
      "en" : "Register Code",
      "type" : "Text"
    }, {
      "id" : "details.value",
      "column" : "value",
      "ar" : "القيمة",
      "en" : "Value",
      "type" : "Decimal"
    } ]
  } ]
}