{
  "ObjectFields": [
    {
      "Name": "VoucherAccountId",
      "Type": "number",
      "Required": true,
      "PostData": true,
      "ValidRegEx": "",
      "DefaultValue": -1,
      "width": 100
    },
    {
      "Name": "SubAccountId",
      "Type": "number",
      "Required": true,
      "PostData": true,
      "ValidRegEx": "",
      "DefaultValue": -1,
      "width": 100
    },
        {
      "Name": "ModuleId",
      "Type": "any",
      "Required": true,
      "PostData": true,
      "ValidRegEx": "",
      "DefaultValue": "withoutvalue",
      "width": 100
    },
    {
      "Name": "VoucherDetailDetailType",
      "Type": "number",
      "Required": true,
      "PostData": true,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "width": 100
    },
    {
      "Name": "VoucherDetailDetailType",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "Width": 120,
      "Label": ""
    },
    {
      "Name": "VoucherAccountCode",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "Width": 120,
      "Label": ""
    },
    {
      "Name": "VoucherAccountName",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "Width": 200,
      "LabelWidth": 107,
      "Label": "BillAllocationLightBox.BankAccount"
    },
    {
      "Name": "VoucherDetailAmount",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "AccountVoucher.Amount"
    },
    {
      "Name": "VoucherDetailAmountFC",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "BillAllocationLightBox.AmountFc"
    },
    {
      "Name": "AllotedAmount",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "0",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 313,
      "Width": 100,
      "Label": "BillAllocationLightBox.AllotAmt"
    },
    {
      "Name": "AllotedAmountFC",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
       "DefaultValue": "0",
       "PostData": true,
       "ReadOnly": true,
      "LabelWidth": 313,
      "Width": 100,
      "Label": "BillAllocationLightBox.AllotAmtFC"
    },
    {
      "Name": "VoucherDetailCurrencyConversion",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "AccountVoucher.Conversion"
    },
    {
      "Name": "ShowMoreDetails",
      "Type": "string",
      "Required": false,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "PostData": false,
      "LabelWidth": 107,
      "Width": 200,
      "Label": "BillAllocationLightBox.MoreDetails"
    },
    {
      "Name": "OverRide",
      "Type": "string",
      "Required": false,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "PostData": false,
      "LabelWidth": 107,
      "Width": 200,
      "Label": "BillAllocationLightBox.Override"
    },
    {
      "Name": "ShowBoth",
      "Type": "string",
      "Required": false,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "PostData": false,
      "LabelWidth": 107,
      "Width": 200,
      "Label": "BillAllocationLightBox.Both"
    },
    {
      "Name": "MultiOu",
      "Type": "string",
      "Required": false,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "PostData": false,
      "LabelWidth": 107,
      "Width": 200,
      "Label": "BillAllocationLightBox.MultiOU"
    },
    {
      "Name": "MultiOuCheck",
      "Type": "string",
      "Required": false,
      "ValidRegEx": "",
      "DefaultValue": 1,
      "PostData": false,
      "LabelWidth": 107,
      "Width": 200,
      "Label": "BillAllocationLightBox.MultiOU"
    },
    {
      "Name": "VoucherBalanceAmount",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "BillAllocationLightBox.Balance"
    },
    {
      "Name": "VoucherBalanceAmountAC",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "0",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "BillAllocationLightBox.BalanceFC"
    },
    {
      "Name": "CurrencyId",
      "Type": "number",
      "Required": true,
      "PostData": true,
      "ValidRegEx": "",
      "DefaultValue": -1,
      "width": 100
    },
    
    {
      "Name": "CurrencyCode",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "LabelWidth": 107,
      "Width": 100,
      "Label": "Employee.Currency"
    },
    {
      "Name": "CurrencyName",
      "Type": "string",
      "Required": true,
      "ValidRegEx": "",
      "DefaultValue": "",
      "PostData": true,
      "ReadOnly": true,
      "Label": "BillAllocationLightBox.BankAccount"
    },
    {
      "Name": "VoucherBillAllocationArray",
      "Type": "Grid",
      "RepeatNotAllowed": "AllocationLineId",
      "Width": 2000,
      "Height": 190,
      "Grid": [
        {
          "Label": "",
          "value": "BillOUId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "ValidRegEx": "",
          "IsVisible": false,
          "DefaultValue": -1,
          "SNo": 1
        },
        {
          "Label": "AccountVoucher.OrgUnit",
          "value": "BillOUName",
          "width": 350,
          "Type": "PickList",
          "PicklistDetail": {
            "Label": "",
            "Width": 250,
            "PicklistUrl": "OrganizationUnit",
            "PicklistDisplayText": "Code,Name",
            "PicklistSearchFields": "Name",
            "Multiple": false,
            "PicklistSelection": "Id",
            "PicklistTitle": "Name",
            "AddNew": false,
            "MaxLength": 20,
            "LinkId": "BillOUId,BillOUName",
            "LinkValue": "Id,Name",
            "ColumnWidth": "200,380",
            "ColumnType": "string,string",
            "PlaceHolder": "Select OU"
          },
          "IsVisible": true,
          "SNo": 2,
          "Required": false,
          "PostData": true,
          "DefaultValue": "",
          "DependendFieldName": "MultiOuCheck",
          "DependendFieldValue": 0
        },
        {
          "Label": "CashDiscount.Type",
          "value": "VoucherBillAllocationType",
          "width": 160,
          "Type": "ComboBox",
          "SNo": 3,
          "IsVisible": true,
          "DefaultValue": 2,
          "PickLists": [
            { "key": 0, "value": "New" },
            { "key": 1, "value": "Advance" },
            { "key": 2, "value": "Against" },
            { "key": 3, "value": "UnAdjusted" },
            { "key": 4, "value": "Batch" }
          ]
        },
        {
          "Label": "ShiftPattern.Date",
          "value": "VoucherBillAllocationDetailDate",
          "Type": "Date",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "DefaultValue": "today",
          "width": 200,
          "SNo": 5
        },
        {
          "Label": "TDSReturnFilling.RefNo",
          "value": "VoucherBillAllocationReferenceNumber",
          "Type": "number",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "Placeholder": "Enter Ref. No.",
          "DefaultValue": 0,
          "width": 100,
          "SNo": 6,
          "MaxLength": 18
        },
        {
          "Label": "AccountVoucher.RefDate",
          "value": "VoucherBillAllocationReferenceDate",
          "Type": "Date",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "DefaultValue": "today",
          "width": 200,
          "SNo": 7
        },
        {
          "Label": "AccountVoucher.Amount",
          "value": "VoucherBillAllocationFullAmount",
          "Type": "number",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "SetDefaultValue": true,
          "Mask": "0000000000000.0000",
          "DefaultValue": "VoucherBalanceAmount",
          "Placeholder": "Amount",
          "width": 100,
          "SNo": 8,
          "MaxLength": 18
        },
        {
          "Label": "BillAllocationLightBox.Alloted",
          "value": "VoucherBillAllocationAllocatedAmount",
          "Type": "number",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "Mask": "0000000000000.0000",
          "DefaultValue": 0,
          "Placeholder": "Alloted Amt.",
          "width": 100,
          "SNo": 9,
          "MaxLength": 18
        },
        {
          "Label": "AssetDepreciation.Days",
          "value": "VoucherBillAllocationDueDays",
          "Type": "number",
          "PostData": true,
          "Required": false,
          "ValidRegEx": "",
          "IsVisible": true,
          "DefaultValue": 1,
          "Placeholder": "Enter Days",
          "width": 100,
          "SNo": 10,
          "MaxLength": 18
        },
        {
          "Label": "",
          "value": "RouteId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 11,
          "DefaultValue": -1
        },
        {
          "Label": "BillAllocationLightBox.Route",
          "value": "RouteName",
          "width": 250,
          "Type": "PickList",
          "PicklistDetail": {
            "Label": "",
            "Width": 175,
            "PicklistUrl": "Routes",
            "PicklistDisplayLabel": "RouteCode,RouteName",
            "PicklistDisplayText": "RouteCode,RouteName",
            "PicklistSearchFields": "RouteName",
            "Multiple": false,
            "PicklistSelection": "Id",
            "PicklistTitle": "RouteName",
            "AddNew": false,
            "MaxLength": 20,
            "LinkId": "Id,RouteName",
            "ColumnWidth": "300,420",
            "ColumnType": "string,string",
            "PlaceHolder": "Select Route"
          },
          "IsVisible": true,
          "SNo": 12,
          "Required": false,
          "DefaultValue": ""
        },
        {
          "Label": "CostCenterLightBox.Category",
          "value": "PriceCategoryName",
          "width": 250,
          "Type": "PickList",
          "PicklistDetail": {
            "Label": "",
            "Width": 175,
            "PicklistUrl": "PriceCategory",
            "PicklistDisplayText": "Code,Name",
            "PicklistSearchFields": "Name",
            "Multiple": false,
            "PicklistSelection": "Id",
            "PicklistTitle": "Name",
            "AddNew": false,
            "MaxLength": 20,
            "LinkId": "PriceCategoryId,PriceCategoryName",
            "ColumnWidth": "200,380",
            "ColumnType": "string,string",
            "PlaceHolder": "Select Category"
          },
          "IsVisible": true,
          "DependendFieldName": "ShowMoreDetails",
          "DependendFieldValue": 0,
          "SNo": 13,
          "Required": false,
          "DefaultValue": ""
        },
        {
          "Label": "ForcastData.Incharge",
          "value": "InChargeName",
          "width": 250,
          "Type": "PickList",
          "PicklistDetail": {
            "Label": "",
            "Width": 175,
            "PicklistUrl": "Incharge",
            "PicklistDisplayText": "Code,Name",
            "PicklistSearchFields": "Name",
            "Multiple": false,
            "PicklistSelection": "Id",
            "PicklistTitle": "Name",
            "AddNew": false,
            "MaxLength": 20,
            "LinkId": "InChargeId,InChargeName",
            "ColumnWidth": "200,380",
            "ColumnType": "string,string",
            "PlaceHolder": "Select Incharge"
          },
          "IsVisible": true,
          "DependendFieldName": "ShowMoreDetails",
          "DependendFieldValue": 0,
          "SNo": 14,
          "Required": false,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.DueType",
          "value": "VoucherBillAllocationDueType",
          "width": 160,
          "Type": "ComboBox",
          "DependendFieldName": "ShowMoreDetails",
          "DependendFieldValue": 0,
          "SNo": 15,
          "IsVisible": true,
          "DefaultValue": 0,
          "PickLists": [
            { "key": 0, "value": "Detail Date" },
            { "key": 1, "value": "Ref. Date" }
          ]
        },
        {
          "Label": "",
          "value": "VoucherBillAllocationId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 50,
          "DefaultValue": 0
        },
        {
          "Label": "",
          "value": "AllocationLineId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 51,
          "DefaultValue": -1
        },
         
        
        {
          "Label": "AccountVoucher.no",
          "value": [
            "VoucherBillAllocationDetailNumber",
            "VoucherBillAllocationDetailNumber",
            "VoucherBillAllocationDetailNumber",
            "VoucherBillAllocationDetailNumber",
            "VoucherBillAllocationDetailNumber"
          ],
          "width": 200,
          "Type": "FieldBasedType",
          "DependendField": "VoucherBillAllocationType",
          "Placeholder": "Enter No.",
          "DependendValue": [2],
          "PicklistDetail": {
            "Label": "",
            "Width": 175,
            "PicklistUrl": "BillAllocation",
            "PicklistDisplayLabel": "DocNumber,Date,Bill/Ref. No.,Ref. Date,BillNumber,Full Amt.,Pend. Amt.,Date,OverDueDays,Type,Route,Incharge,Category",
            "PicklistDisplayText": "VoucherDocumentNumber,VoucherBillAllocationDetailDate,VoucherReferenceNumber,VoucherReferenceDate,VoucherBillAllocationPicklistDetailNumber,VoucherFullAmount,VoucherPendingAmount,VoucherBillAllocationDueDate,VoucherBillAllocationOverduedays,VoucherBillAllocationType,RouteName,InChargeName,PriceCategoryName",
            "PicklistSearchFields": "Number",
            "Multiple": false,
            "PicklistSelection": "VoucherBillAllocationPicklistId",
            "PicklistTitle": "VoucherDocumentNumber",
            "AddNew": false,
            "MaxLength": 20,
            "PicklistWidth": "1350px",
            "LinkId": "AllocationLineId,VoucherBillAllocationDetailNumber",
            "LinkValue": "VoucherBillAllocationPicklistId,VoucherBillAllocationPicklistDetailNumber",
            "ColumnWidth": "100,100,100,100,100,80,80,100,100,80,80,120,80",
            "ColumnType": "string,date,string,date,string,string,string,date,string,string,string,string,string",
            "PlaceHolder": "Select Document No.",
            "PicklistCriteria": "BillAllocation",
            "IsModuleBasedCriteria": "ModuleId",
            "IsModuleBasedCriteriaName": [{"withvalue":"BillAllocationAccountOnly"},{"withoutvalue":"BillAllocation"}]
          },
          "IsVisible": true,
          "SNo": 3,
          "Required": false,
          "DefaultValue": ""
        },
        {
          "Label": "",
          "value": "PriceCategoryId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 53,
          "DefaultValue": -1
        },
        {
          "Label": "",
          "value": "InChargeId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 54,
          "DefaultValue": -1
        },
        {
          "Label": "",
          "value": "BillRowWise",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 151,
          "DefaultValue": ""
        },
        {
          "Label": "",
          "value": "CurrencyId",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 152,
          "DefaultValue": -1
        },
        {
          "Label": "",
          "value": "detailtypecalc",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 153,
          "DefaultValue": 0
        },
        {
          "Label": "",
          "value": "VoucherBillAllocationDueDate",
          "Type": "Date",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 157,
          "DefaultValue": "today"
        },
        {
          "Label": "",
          "value": "VoucherBillAllocationPlanDate",
          "Type": "Date",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 159,
          "DefaultValue": "today"
        },
        {
          "Label": "",
          "value": "VoucherBillAllocationSlno",
          "Type": "SNo",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 160,
          "DefaultValue": "3"
        },
        {
          "Label": "",
          "value": "VoucherBillAllocationCurrencyConversion",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 161,
          "DefaultValue": "1"
        },
        {
          "Label": "",
          "value": "AllocatedAmountForCurrency",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 161,
          "DefaultValue": "1"
        },
        {
          "Label": "",
          "value": "selectedconversions",
          "Type": "number",
          "Required": false,
          "PostData": true,
          "IsVisible": false,
          "SNo": 161,
          "DefaultValue": "1"
        }
      ]
    },
    {
      "Name": "MultipleBillSelectionArray",
      "Type": "Grid",
      "IsAddrowRequired": false,
      "IsDeleterowRequired": false,
      "SLNOField":"MultiBillSelectionSNo",
      "Width": 2000,
      "Grid": [
        {
          "Label": "#",
          "value": "MultiBillSelectionSNo",
          "Type": "SNo",
          "Required": false,
          "PostData": true,
          "width": 50,
          "IsVisible": true,
          "SNo": 1,
          "left": 0,
          "sticky": true
        },
         {
          "Label": "CheckBox",
          "value": "MultiBillCheckbox",
          "Type": "CheckBox",
          "Required": false,
          "PostData": true,
          "width": 100,
          "IsVisible": true,
          "SNo":2,
          "DefaultValue": 1
        },
        {
          "Label": "BillAllocationLightBox.DocNumber",
          "value": "VoucherDocumentNumber",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 3,
          "DefaultValue": ""
        },
        {
          "Label": "ShiftPattern.Date",
          "value": "VoucherBillAllocationDetailDate",
          "Type": "Date",
          "Required": false,
          "width": 180,
          "PostData": true,
          "IsVisible": true,
          "SNo": 4,
          "DefaultValue": "today"
        },
        {
          "Label": "BillAllocationLightBox.BillNo/RefNo",
          "value": "VoucherReferenceNumber",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 5,
          "DefaultValue": ""
        },
        {
          "Label": "AccountVoucher.RefDate",
          "value": "VoucherReferenceDate",
          "Type": "Date",
          "Required": false,
          "width": 180,
          "PostData": true,
          "IsVisible": true,
          "SNo": 6,
          "DefaultValue": "today"
        },
        {
          "Label": "BillAllocationLightBox.BillNo",
          "value": "VoucherBillAllocationPicklistDetailNumber",
          "Type": "ReadOnly",
          "Required": false,
          "width": 200,
          "PostData": true,
          "IsVisible": true,
          "SNo": 7,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.FullAmount",
          "value": "VoucherFullAmount",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 8,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.PendAmount",
          "value": "VoucherPendingAmount",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 9,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.AllotAmt",
          "value": "VoucherPendingAmount",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 10,
          "DefaultValue": ""
        },
        {
          "Label": "ShiftPattern.Date",
          "value": "VoucherBillAllocationDueDate",
          "Type": "Date",
          "Required": false,
          "width": 180,
          "PostData": true,
          "IsVisible": true,
          "SNo": 11,
          "DefaultValue": "today"
        },
        {
          "Label": "PaymentPlan.OverDueDays",
          "value": "ODDays",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 12,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.PriceCategory",
          "value": "PriceCategoryName",
          "Type": "ReadOnly",
          "Required": false,
          "width": 150,
          "PostData": true,
          "IsVisible": true,
          "SNo": 13,
          "DefaultValue": ""
        },
        {
          "Label": "ForcastData.Incharge",
          "value": "InChargeName",
          "Type": "ReadOnly",
          "Required": false,
          "width": 150,
          "PostData": true,
          "IsVisible": true,
          "SNo": 14,
          "DefaultValue": ""
        },
        {
          "Label": "BillAllocationLightBox.Route",
          "value": "RouteName",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 15,
          "DefaultValue": ""
        },
        {
          "Label": "CashDiscount.Type",
          "value": "VoucherBillAllocationType",
          "Type": "ReadOnly",
          "Required": false,
          "width": 120,
          "PostData": true,
          "IsVisible": true,
          "SNo": 16,
          "DefaultValue": "2"
        }
      ]
    }
  ]
}
