2022-03-23 07:31:15 +00:00
|
|
|
{
|
|
|
|
"name": "Item",
|
|
|
|
"label": "Item",
|
|
|
|
"isSingle": false,
|
2022-04-29 13:00:24 +00:00
|
|
|
"naming": "manual",
|
2022-03-23 07:31:15 +00:00
|
|
|
"fields": [
|
|
|
|
{
|
|
|
|
"fieldname": "name",
|
|
|
|
"label": "Item Name",
|
|
|
|
"fieldtype": "Data",
|
|
|
|
"placeholder": "Item Name",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "image",
|
|
|
|
"label": "Image",
|
|
|
|
"fieldtype": "AttachImage"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "description",
|
|
|
|
"label": "Description",
|
|
|
|
"placeholder": "Item Description",
|
|
|
|
"fieldtype": "Text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "unit",
|
|
|
|
"label": "Unit Type",
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"placeholder": "Unit Type",
|
|
|
|
"default": "Unit",
|
|
|
|
"options": [
|
2022-03-23 08:37:00 +00:00
|
|
|
{
|
|
|
|
"value": "Unit",
|
2022-04-29 13:00:24 +00:00
|
|
|
"label": "Unit"
|
2022-03-23 08:37:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "Kg",
|
2022-04-29 13:00:24 +00:00
|
|
|
"label": "Kg"
|
2022-03-23 08:37:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "Gram",
|
|
|
|
"label": "Gram"
|
|
|
|
},
|
2022-05-10 09:26:17 +00:00
|
|
|
{
|
|
|
|
"value": "Meter",
|
|
|
|
"label": "Meter"
|
|
|
|
},
|
2022-03-23 08:37:00 +00:00
|
|
|
{
|
|
|
|
"value": "Hour",
|
|
|
|
"label": "Hour"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "Day",
|
|
|
|
"label": "Day"
|
|
|
|
}
|
2022-03-23 07:31:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "itemType",
|
|
|
|
"label": "Type",
|
|
|
|
"placeholder": "Type",
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"default": "Product",
|
|
|
|
"options": [
|
2022-03-23 08:37:00 +00:00
|
|
|
{
|
|
|
|
"value": "Product",
|
|
|
|
"label": "Product"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "Service",
|
|
|
|
"label": "Service"
|
|
|
|
}
|
2022-03-23 07:31:15 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "for",
|
|
|
|
"label": "For",
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"options": [
|
2022-03-23 08:37:00 +00:00
|
|
|
{
|
2022-05-05 10:44:26 +00:00
|
|
|
"value": "Purchases",
|
2022-03-23 08:37:00 +00:00
|
|
|
"label": "Purchases"
|
|
|
|
},
|
|
|
|
{
|
2022-05-05 10:44:26 +00:00
|
|
|
"value": "Sales",
|
2022-03-23 08:37:00 +00:00
|
|
|
"label": "Sales"
|
|
|
|
},
|
|
|
|
{
|
2022-05-05 10:44:26 +00:00
|
|
|
"value": "Both",
|
2022-03-23 08:37:00 +00:00
|
|
|
"label": "Both"
|
|
|
|
}
|
2022-03-23 07:31:15 +00:00
|
|
|
],
|
2022-05-02 05:31:11 +00:00
|
|
|
"readOnly": true,
|
2022-05-05 10:44:26 +00:00
|
|
|
"required": true,
|
|
|
|
"default": "Both"
|
2022-03-23 07:31:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "incomeAccount",
|
|
|
|
"label": "Income",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Account",
|
|
|
|
"placeholder": "Income",
|
2022-03-23 08:37:00 +00:00
|
|
|
"required": true
|
2022-03-23 07:31:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "expenseAccount",
|
|
|
|
"label": "Expense",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Account",
|
|
|
|
"placeholder": "Expense",
|
2022-03-23 08:37:00 +00:00
|
|
|
"required": true
|
2022-03-23 07:31:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "tax",
|
|
|
|
"label": "Tax",
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"target": "Tax",
|
|
|
|
"placeholder": "Tax"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "rate",
|
|
|
|
"label": "Rate",
|
|
|
|
"fieldtype": "Currency"
|
2022-03-23 08:37:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "hsnCode",
|
|
|
|
"label": "HSN/SAC",
|
|
|
|
"fieldtype": "Int",
|
|
|
|
"placeholder": "HSN/SAC Code"
|
2022-03-23 07:31:15 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"quickEditFields": [
|
|
|
|
"rate",
|
|
|
|
"unit",
|
|
|
|
"itemType",
|
|
|
|
"for",
|
|
|
|
"tax",
|
|
|
|
"description",
|
|
|
|
"incomeAccount",
|
2022-03-23 08:37:00 +00:00
|
|
|
"expenseAccount",
|
|
|
|
"hsnCode"
|
2022-03-23 07:31:15 +00:00
|
|
|
],
|
2022-05-04 16:25:08 +00:00
|
|
|
"keywordFields": ["name", "itemType", "for"]
|
2022-03-23 08:37:00 +00:00
|
|
|
}
|