{
  "entity" : "DiscountCoupon",
  "table" : "DiscountCoupon",
  "module" : "supplychain-sales",
  "ar" : "قسيمة خصومات",
  "arPlural" : " قسيمة خصومات",
  "en" : "Discount Coupon",
  "enPlural" : " Discount Coupon",
  "page" : "https://dm.namasoft.com/modules/supplychain-sales/DiscountCoupon.html",
  "fields" : [ {
    "id" : "analysisSet",
    "column" : "analysisSet_id",
    "ar" : "المجموعة التحليلية",
    "en" : "Analysis set",
    "type" : "Reference",
    "refTo" : "AnalysisSet",
    "refPath" : "/modules/basic/AnalysisSet.html"
  }, {
    "id" : "analysisSetId",
    "column" : "analysisSet_id",
    "type" : "ID"
  }, {
    "id" : "attachment1",
    "column" : "attachment1_id",
    "ar" : "مرفق 1",
    "en" : "Attachment 1",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "attachment2",
    "column" : "attachment2_id",
    "ar" : "مرفق 2",
    "en" : "Attachment 2",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "attachment3",
    "column" : "attachment3_id",
    "ar" : "مرفق 3",
    "en" : "Attachment 3",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "attachment4",
    "column" : "attachment4_id",
    "ar" : "مرفق 4",
    "en" : "Attachment 4",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "attachment5",
    "column" : "attachment5_id",
    "ar" : "مرفق 5",
    "en" : "Attachment 5",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "branch",
    "column" : "branch_id",
    "ar" : "الفرع",
    "en" : "Branch",
    "type" : "Reference",
    "refTo" : "Branch",
    "refPath" : "/modules/basic/Branch.html"
  }, {
    "id" : "branchId",
    "column" : "branch_id",
    "ar" : "Branch ID",
    "en" : "Branch ID",
    "type" : "ID"
  }, {
    "id" : "code",
    "column" : "code",
    "ar" : "الكود",
    "en" : "Code",
    "type" : "Text"
  }, {
    "id" : "colorCode",
    "column" : "colorCode",
    "ar" : "كود اللون",
    "en" : "Color Code",
    "type" : "Color"
  }, {
    "id" : "commitedBefore",
    "column" : "commitedBefore",
    "ar" : "تم الحفظ مسبقا",
    "en" : "Commited Before",
    "type" : "Boolean"
  }, {
    "id" : "considerCouponBranchOnUse",
    "column" : "considerCouponBranchOnUse",
    "ar" : "مراعاة محدد فرع القسيمة في الصرف",
    "en" : "Consider Coupon Branch On Use",
    "type" : "Boolean"
  }, {
    "id" : "couponType",
    "column" : "couponType_id",
    "ar" : "نوع القسيمة",
    "en" : "Coupon Type",
    "type" : "Reference",
    "refTo" : "DiscountCouponType",
    "refPath" : "/modules/supplychain-sales/DiscountCouponType.html"
  }, {
    "id" : "couponValue.amount",
    "column" : "couponValueAmount",
    "ar" : " المبلغ",
    "en" : " Amount",
    "type" : "Decimal"
  }, {
    "id" : "couponValue.currency",
    "column" : "couponValueCurrency_id",
    "ar" : "العملة",
    "en" : "Currency",
    "type" : "Reference",
    "refTo" : "Currency",
    "refPath" : "/modules/basic/Currency.html"
  }, {
    "id" : "createTransactionId",
    "column" : "createTransactionId",
    "type" : "Text"
  }, {
    "id" : "creationDate",
    "column" : "creationDate",
    "ar" : "تاريخ الإنشاء",
    "en" : "Creation Date",
    "type" : "DateAndTime"
  }, {
    "id" : "currentApprovalCase",
    "column" : "currentApprovalCase_id",
    "type" : "",
    "refTo" : "ApprovalCase",
    "refPath" : "/modules/system-tables/ApprovalCase.html"
  }, {
    "id" : "currentVersion",
    "column" : "currentVersion",
    "ar" : "النسخة الحالية",
    "en" : "Current Version",
    "type" : "Integer"
  }, {
    "id" : "customViewName",
    "column" : "customViewName",
    "type" : "Text"
  }, {
    "id" : "date1",
    "column" : "date1",
    "ar" : "تـــاريخ 1",
    "en" : "Date 1",
    "type" : "Date"
  }, {
    "id" : "date2",
    "column" : "date2",
    "ar" : "تـــاريخ 2",
    "en" : "Date 2",
    "type" : "Date"
  }, {
    "id" : "date3",
    "column" : "date3",
    "ar" : "تاريخ 3",
    "en" : "Date3",
    "type" : "Date"
  }, {
    "id" : "date4",
    "column" : "date4",
    "ar" : "تاريخ 4",
    "en" : "Date4",
    "type" : "Date"
  }, {
    "id" : "date5",
    "column" : "date5",
    "ar" : "تاريخ 5",
    "en" : "Date5",
    "type" : "Date"
  }, {
    "id" : "department",
    "column" : "department_id",
    "ar" : "الإدارة",
    "en" : "Department",
    "type" : "Reference",
    "refTo" : "Department",
    "refPath" : "/modules/basic/Department.html"
  }, {
    "id" : "departmentId",
    "column" : "department_id",
    "type" : "ID"
  }, {
    "id" : "description1",
    "column" : "description1",
    "ar" : "الوصف 1",
    "en" : "description1",
    "type" : "Text"
  }, {
    "id" : "description2",
    "column" : "description2",
    "ar" : "الوصف 2",
    "en" : "description2",
    "type" : "Text"
  }, {
    "id" : "description3",
    "column" : "description3",
    "ar" : "الوصف 3",
    "en" : "description3",
    "type" : "Text"
  }, {
    "id" : "description4",
    "column" : "description4",
    "ar" : "الوصف 4",
    "en" : "description4",
    "type" : "Text"
  }, {
    "id" : "description5",
    "column" : "description5",
    "ar" : "الوصف 5",
    "en" : "description5",
    "type" : "Text"
  }, {
    "id" : "discountCouponBook",
    "column" : "discountCouponBook_id",
    "ar" : "دفتر قسيمة خصومات",
    "en" : "Discount Coupon Book",
    "type" : "Reference",
    "refTo" : "DiscountCouponBook",
    "refPath" : "/modules/supplychain-sales/DiscountCouponBook.html"
  }, {
    "id" : "discountCouponType",
    "column" : "discountCouponType",
    "ar" : "طريفة حساب القسيمة",
    "en" : "Discount Coupon Calculation Type",
    "type" : "Enum",
    "enum" : "DiscountCouponCalcType"
  }, {
    "id" : "docCategory",
    "column" : "docCategory_id",
    "ar" : " تصنيف سجل",
    "en" : " Record Category",
    "type" : "Reference",
    "refTo" : "DocCategory",
    "refPath" : "/modules/basic/DocCategory.html"
  }, {
    "id" : "documentFileStatus",
    "column" : "documentFileStatus",
    "ar" : "حالة المستند",
    "en" : "Document File Status",
    "type" : "Enum",
    "enum" : "DocumentFileStatus"
  }, {
    "id" : "draftCreated",
    "column" : "draftCreated",
    "ar" : "تم إنشاء مسودة",
    "en" : "Draft Created",
    "type" : "Boolean"
  }, {
    "id" : "draftXML",
    "column" : "draftXML",
    "type" : "BigText"
  }, {
    "id" : "editedBy",
    "column" : "editedBy_id",
    "ar" : "بواسطة",
    "en" : "Edited By",
    "type" : "Reference",
    "refTo" : "NaMaUser",
    "refPath" : "/modules/system-tables/NaMaUser.html"
  }, {
    "id" : "entitySystemEntryId",
    "column" : "entitySystemEntry_id",
    "type" : "ID"
  }, {
    "id" : "entityType",
    "column" : "entityType",
    "ar" : "النوع",
    "en" : "Entity Type",
    "type" : "EntityType"
  }, {
    "id" : "firstAuthor",
    "column" : "firstAuthor_id",
    "ar" : "منشئ السجل",
    "en" : "First Author",
    "type" : "Reference",
    "refTo" : "NaMaUser",
    "refPath" : "/modules/system-tables/NaMaUser.html"
  }, {
    "id" : "firstAuthorId",
    "column" : "firstAuthor_id",
    "type" : "ID"
  }, {
    "id" : "fromDate",
    "column" : "fromDate",
    "ar" : "من تاريخ",
    "en" : "From Date",
    "type" : "Date"
  }, {
    "id" : "genFrom",
    "columns" : [ "genFromActualCode", " genFromCode", " genFromEntityType", " genFromId" ],
    "ar" : "منشأه من",
    "en" : "Generated From",
    "type" : "Genericreference"
  }, {
    "id" : "genFromInvoiceIsReturned",
    "column" : "genFromInvoiceIsReturned",
    "ar" : "تم عمل مردود للفاتورة المنشأه للقسيمه",
    "en" : "Generated From Invoice Is Returned",
    "type" : "Boolean"
  }, {
    "id" : "generatedByLine",
    "column" : "generatedByLine",
    "ar" : "كود سطر الإنشاء",
    "en" : "generated By Line",
    "type" : "Text"
  }, {
    "id" : "generatedDocsCount",
    "column" : "generatedDocsCount",
    "type" : "Integer"
  }, {
    "id" : "generatedFrom",
    "columns" : [ "generatedFromActualCode", " generatedFromCode", " generatedFromEntityType", " generatedFromId" ],
    "ar" : "تم إنشاؤه من",
    "en" : "Generated From",
    "type" : "Genericreference"
  }, {
    "id" : "generationType",
    "column" : "generationType",
    "ar" : "نوع الإنشاء",
    "en" : "Generation Type",
    "type" : "Enum",
    "enum" : "GenerationType"
  }, {
    "id" : "group",
    "column" : "group_id",
    "ar" : "المجموعة",
    "en" : "Group",
    "type" : "Reference",
    "refTo" : "MasterGroup",
    "refPath" : "/modules/basic/MasterGroup.html"
  }, {
    "id" : "id",
    "column" : "id",
    "type" : "ID"
  }, {
    "id" : "indexInParent",
    "column" : "indexInParent",
    "type" : "Integer"
  }, {
    "id" : "lastChangeVersion",
    "column" : "lastChangeVersion",
    "type" : "Integer"
  }, {
    "id" : "lastModifyTransactionId",
    "column" : "LastModifyTransactionId",
    "type" : "Text"
  }, {
    "id" : "lastUpdateDate",
    "column" : "lastUpdateDate",
    "ar" : "تاريخ اخر تحديث",
    "en" : "Last update Date",
    "type" : "DateAndTime"
  }, {
    "id" : "legalEntity",
    "column" : "legalEntity_id",
    "ar" : "الشركة",
    "en" : "Legal Entity",
    "type" : "Reference",
    "refTo" : "LegalEntity",
    "refPath" : "/modules/basic/LegalEntity.html"
  }, {
    "id" : "legalEntityId",
    "column" : "legalEntity_id",
    "type" : "ID"
  }, {
    "id" : "lockVersion",
    "column" : "lockVersion",
    "type" : "Integer"
  }, {
    "id" : "mainFile",
    "column" : "mainFile_id",
    "type" : "Binary",
    "refTo" : "LargeData",
    "refPath" : "/modules/system-tables/LargeData.html"
  }, {
    "id" : "maxCouponValue",
    "column" : "maxCouponValue",
    "ar" : "اقصي قيمة للكوبون(خاص بالنسبة)",
    "en" : "Maximum Coupon Value (Used With Percentage Type)",
    "type" : "Decimal"
  }, {
    "id" : "n1",
    "column" : "n1",
    "ar" : "رقم 1",
    "en" : "Number 1",
    "type" : "Decimal"
  }, {
    "id" : "n2",
    "column" : "n2",
    "ar" : "رقم 2",
    "en" : "Number 2",
    "type" : "Decimal"
  }, {
    "id" : "n3",
    "column" : "n3",
    "ar" : "رقم 3",
    "en" : "Number 3",
    "type" : "Decimal"
  }, {
    "id" : "n4",
    "column" : "n4",
    "ar" : "رقم 4",
    "en" : "Number 4",
    "type" : "Decimal"
  }, {
    "id" : "n5",
    "column" : "n5",
    "ar" : "رقم 5",
    "en" : "Number 5",
    "type" : "Decimal"
  }, {
    "id" : "name1",
    "column" : "name1",
    "ar" : "الاسم العربي",
    "en" : "Name1",
    "type" : "Text"
  }, {
    "id" : "name2",
    "column" : "name2",
    "ar" : "الاسم الإنجليزي",
    "en" : "Name2",
    "type" : "Text"
  }, {
    "id" : "otpToken",
    "column" : "otpToken",
    "ar" : "Customer Token",
    "en" : "Customer Token",
    "type" : "Text"
  }, {
    "id" : "parentCode",
    "column" : "parentCode",
    "type" : "Text"
  }, {
    "id" : "percentage",
    "column" : "percentage",
    "ar" : "النسبة",
    "en" : "Percentage",
    "type" : "Decimal"
  }, {
    "id" : "preventUsage",
    "column" : "preventUsage",
    "ar" : "منع الاستعمال",
    "en" : "Prevent Usage",
    "type" : "Boolean"
  }, {
    "id" : "printCount",
    "column" : "printCount",
    "ar" : "عدد مرات الطباعة",
    "en" : "Print Count",
    "type" : "Integer"
  }, {
    "id" : "redeemed",
    "column" : "redeemed",
    "ar" : "Redeemed",
    "en" : "Redeemed",
    "type" : "Boolean"
  }, {
    "id" : "ref1",
    "columns" : [ "ref1ActualCode", " ref1Code", " ref1EntityType", " ref1Id" ],
    "ar" : "مرجع 1",
    "en" : "Reference 1",
    "type" : "Genericreference"
  }, {
    "id" : "ref2",
    "columns" : [ "ref2ActualCode", " ref2Code", " ref2EntityType", " ref2Id" ],
    "ar" : "مرجع 2",
    "en" : "Reference 2",
    "type" : "Genericreference"
  }, {
    "id" : "ref3",
    "columns" : [ "ref3ActualCode", " ref3Code", " ref3EntityType", " ref3Id" ],
    "ar" : "مرجع 3",
    "en" : "Reference 3",
    "type" : "Genericreference"
  }, {
    "id" : "ref4",
    "columns" : [ "ref4ActualCode", " ref4Code", " ref4EntityType", " ref4Id" ],
    "ar" : "مرجع 4",
    "en" : "Reference 4",
    "type" : "Genericreference"
  }, {
    "id" : "ref5",
    "columns" : [ "ref5ActualCode", " ref5Code", " ref5EntityType", " ref5Id" ],
    "ar" : "مرجع 5",
    "en" : "Reference 5",
    "type" : "Genericreference"
  }, {
    "id" : "registerId",
    "column" : "registerId",
    "type" : "ID"
  }, {
    "id" : "remaining",
    "column" : "remaining",
    "ar" : "المتبقي",
    "en" : "Remaining",
    "type" : "Decimal"
  }, {
    "id" : "remarks",
    "column" : "remark",
    "ar" : "ملاحظات",
    "en" : "Description",
    "type" : "BigText"
  }, {
    "id" : "reversed",
    "column" : "reversed",
    "ar" : "Reversed",
    "en" : "Reversed",
    "type" : "Boolean"
  }, {
    "id" : "reversedBy",
    "columns" : [ "reversedByActualCode", " reversedByCode", " reversedByEntityType", " reversedById" ],
    "type" : "Genericreference"
  }, {
    "id" : "reviseLevel",
    "column" : "reviseLevel",
    "ar" : "مستوى المراجعة",
    "en" : "Revise Level",
    "type" : "Enum",
    "enum" : "ReviseLevel"
  }, {
    "id" : "revised",
    "column" : "primitiveValue",
    "ar" : "تمت المراجعة",
    "en" : "Revised",
    "type" : "Boolean"
  }, {
    "id" : "revisedBy",
    "column" : "revisedBy_id",
    "type" : "Reference",
    "refTo" : "NaMaUser",
    "refPath" : "/modules/system-tables/NaMaUser.html"
  }, {
    "id" : "rewardPointTransRequestId",
    "column" : "rewardPointTransRequestId",
    "type" : "Text"
  }, {
    "id" : "rewardPointTransactionId",
    "column" : "rewardPointTransactionId",
    "ar" : "Reward Point Transaction ID",
    "en" : "Reward Point Transaction ID",
    "type" : "Text"
  }, {
    "id" : "rewardPointTransactionTime",
    "column" : "rewardPointTransactionTime",
    "ar" : "Reward Point Transaction Time",
    "en" : "Reward Point Transaction Time",
    "type" : "DateAndTime"
  }, {
    "id" : "rewardPointsConfig",
    "column" : "rewardPointsConfig_id",
    "ar" : " إعدادات نقاط المكافأة",
    "en" : "Reward Points Configuration",
    "type" : "Reference",
    "refTo" : "RewardPointsConfig",
    "refPath" : "/modules/basic-external-reward-points/RewardPointsConfig.html"
  }, {
    "id" : "sector",
    "column" : "sector_id",
    "ar" : "القطاع",
    "en" : "Sector",
    "type" : "Reference",
    "refTo" : "Sector",
    "refPath" : "/modules/basic/Sector.html"
  }, {
    "id" : "sectorId",
    "column" : "sector_id",
    "type" : "ID"
  }, {
    "id" : "status",
    "column" : "status",
    "ar" : "الحالة",
    "en" : "Status",
    "type" : "Enum",
    "enum" : "DiscountCouponStatus"
  }, {
    "id" : "systemGeneratedCodePrefix",
    "column" : "systemGeneratedCodePrefix",
    "ar" : "System Generated Code Prefix",
    "en" : "System Generated Code Prefix",
    "type" : "Text"
  }, {
    "id" : "target",
    "columns" : [ "targetActualCode", " targetCode", " targetEntityType", " targetId" ],
    "ar" : "الجهة",
    "en" : "Taregt",
    "type" : "Genericreference"
  }, {
    "id" : "toDate",
    "column" : "toDate",
    "ar" : "إلى تاريخ",
    "en" : "To Date",
    "type" : "Date"
  }, {
    "id" : "updateCapability",
    "column" : "updateCapability_id",
    "ar" : "صلاحية التعديل",
    "en" : "Update Capability",
    "type" : "Reference",
    "refTo" : "SecurityCapability",
    "refPath" : "/modules/basic/SecurityCapability.html"
  }, {
    "id" : "updateCapabilityId",
    "column" : "updateCapability_id",
    "type" : "ID"
  }, {
    "id" : "usageCapability",
    "column" : "usageCapability_id",
    "ar" : "صلاحية الاستخدام",
    "en" : "Usage Capability",
    "type" : "Reference",
    "refTo" : "SecurityCapability",
    "refPath" : "/modules/basic/SecurityCapability.html"
  }, {
    "id" : "usageCapabilityId",
    "column" : "usageCapability_id",
    "type" : "ID"
  }, {
    "id" : "useAsDiscountInInvoices",
    "column" : "useAsDiscountInInvoices",
    "ar" : "استعمال الكوبون كتخفيض في الفواتير",
    "en" : "Use As Discount In Invoices",
    "type" : "Boolean"
  }, {
    "id" : "usedInInvoices",
    "column" : "usedInInvoices",
    "ar" : "مستخدمة سابقا",
    "en" : "Used In Invoices",
    "type" : "Boolean"
  }, {
    "id" : "usedOnce",
    "column" : "usedOnce",
    "ar" : "تستخدم مره واحده",
    "en" : "Used Once",
    "type" : "Boolean"
  }, {
    "id" : "viewCapability",
    "column" : "viewCapability_id",
    "ar" : "صلاحية المطالعة",
    "en" : "View Capability",
    "type" : "Reference",
    "refTo" : "SecurityCapability",
    "refPath" : "/modules/basic/SecurityCapability.html"
  }, {
    "id" : "viewCapabilityId",
    "column" : "viewCapability_id",
    "type" : "ID"
  }, {
    "id" : "voucherType",
    "column" : "voucherType",
    "ar" : "نوع الخصم",
    "en" : "Voucher Type",
    "type" : "Enum",
    "enum" : "VoucherType"
  } ],
  "details" : [ {
    "id" : "details",
    "table" : "DiscountCouponLine",
    "joinColumn" : "discountCoupon_id",
    "ar" : "التفاصيل",
    "en" : "Details",
    "fields" : [ {
      "id" : "details.id",
      "column" : "id",
      "type" : "ID"
    }, {
      "id" : "details.invoiceCode",
      "column" : "invoiceCode",
      "ar" : "كود الفاتورة",
      "en" : "Invoice Code",
      "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.salesInvoice",
      "columns" : [ "salesInvoiceActualCode", " salesInvoiceCode", " salesInvoiceEntityType", " salesInvoiceId" ],
      "ar" : "فاتورة المبيعات",
      "en" : "Sales Invoice",
      "type" : "Genericreference"
    }, {
      "id" : "details.value",
      "column" : "value",
      "ar" : "القيمة",
      "en" : "Value",
      "type" : "Decimal"
    } ]
  } ]
}