{
    "ObjectFields": [
        {
            "Name": "CashDiscountId",
            "Type": "number",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": 0
        },
        {
            "Name": "CashDiscountStatus",
            "Type": "number",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": 1
        },
        {
            "Name": "CashDiscountCode",
            "Type": "string",
            "Label": "Common.code",
            "PostData": true,
            "Required": true,
            "ValidRegEx": "",
            "DefaultValue": "",
            "LinkId": "CashDiscountId",
            "PicklistJSON": "CashDiscountCode",
            "Multiple": false,
            "PicklistTitle": "Code",
            "PlaceHolder": "Enter Code",
            "Width": 160,
            "AddNew": true,
            "IsFirstField": true,
            "MaxLength": 20
        },
        {
            "Name": "CashDiscountName",
            "Type": "string",
            "Label": "Common.name",
            "PostData": true,
            "Required": true,
            "ValidRegEx": "",
            "DefaultValue": "",
            "LinkId": "CashDiscountId",
            "PicklistJSON": "CashDiscountCode",
            "Multiple": false,
            "PicklistTitle": "Name",
            "PlaceHolder": "Enter Name",
            "Width": 360,
            "AddNew": true,
            "MaxLength": 100
        },
        {
            "Name": "BasedOnId",
            "Type": "number",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": -1
        },
        {
            "Name": "BasedOnName",
            "Type": "string",
            "Label": "CashDiscount.BasedOn",
            "PostData": true,
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": "",
            "LinkId": "BasedOnId",
            "PicklistJSON": "formulaname",
            "Multiple": false,
            "PicklistTitle": "Name",
            "PlaceHolder": "Select Formula",
            "Width": 300,
            "AddNew": false,
            "MaxLength": 100,
            "isKeyField": false
        },
        {
            "Name": "CashDiscountRemarks",
            "Label": "Common.Remark",
            "Placeholder": "Enter the Remarks",
            "MaxLength": 500,
            "Type": "string",
            "Width": 360,
            "PostData": true,
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": ""
        },
        {
            "Name": "CashDiscountCreatedOn",
            "Type": "string",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": "/Date(1704475560000)/"
        },
        {
            "Name": "CashDiscountCreatedByName",
            "Type": "any",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": "ADMIN"
        },
        {
            "Name": "CashDiscountModifiedOn",
            "Type": "string",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": "/Date(1704475560000)/"
        },
        {
            "Name": "CashDiscountModifiedByName",
            "Type": "any",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": "ADMIN"
        },
        {
            "Name": "CashDiscountVersion",
            "Type": "number",
            "Required": false,
            "ValidRegEx": "",
            "DefaultValue": 1
        },
        {
            "Name": "CashDiscountDetailArray",
            "Type": "string",
            "Label": "CashDiscount.CashDiscountArray",
            "PostData": true,
            "SLNOField": "CashDiscountDetailSlNo",
            "Required": true,
            "Grid": [
                {
                    "Label": "#",
                    "value": "CashDiscountDetailSlNo",
                    "width": 50,
                    "Type": "SNo",
                    "IsVisible": true,
                    "SNo": 1,
                    "sticky": false,
                    "left": 0
                },
                {
                    "Label": "",
                    "value": "CashDiscountDetailId",
                    "Type": "number",
                    "Required": false,
                    "ValidRegEx": "",
                    "IsVisible": false,
                    "DefaultValue": 0,
                    "SNo": 2
                },
                {
                    "Label": "CashDiscount.From",
                    "value": "CashDiscountDetailFromDays",
                    "Type": "number",
                    "Required": true,
                    "ValidRegEx": "",
                    "IsVisible": true,
                    "SNo": 3,
                    "MaxLength": 4,
                    "DefaultValue": 0,
                    "Placeholder": "Enter Days",
                    "width": 200
                },
                {
                    "Label": "CashDiscount.To",
                    "value": "CashDiscountDetailToDays",
                    "Type": "number",
                    "Required": true,
                    "ValidRegEx": "",
                    "IsVisible": true,
                    "SNo": 4,
                    "MaxLength": 4,
                    "DefaultValue": 0,
                    "Placeholder": "Enter Days",
                    "width": 200
                },
                 {
                    "Label": "CashDiscount.Percentage",
                    "value": "CashDiscountDetailPercentage",
                    "width": 210,
                    "Type": "percentage",
                    "IsVisible": true,
                    "SNo":6,
                    "sticky": false,
                    "MaxLength": 5,
                    "Placeholder": "Enter Percentage",
                    "Mask": "00000",
                    "Required": true,
                    "PostData": true,
                    "DefaultValue": ""
                },
                {
                    "value": "CashDiscountDetailType",
                    "Type": "ComboBox",
                    "Label": "CashDiscount.Type",
                    "IsVisible": true,
                    "Required": false,
                    "SNo": 7,
                    "DefaultValue": 0,
                    "width": 175,
                    "Placeholder": "",
                    "PostData": true,
                    "ValidRegEx": "",
                    "PickLists": [
                        {
                            "key": 0,
                            "value": "Fixed"
                        },
                        {
                            "key": 1,
                            "value": "Per"
                        }
                    ]
                },
                {
                    "Label": "",
                    "value": "CashDiscountId",
                    "Type": "number",
                    "Required": false,
                    "ValidRegEx": "",
                    "IsVisible": false,
                    "DefaultValue": 0,
                    "SNo": 8
                }
            ]
        }
    ]
}