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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
{
|
|
|
|
"value": "purchases",
|
|
|
|
"label": "Purchases"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "sales",
|
|
|
|
"label": "Sales"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"value": "both",
|
|
|
|
"label": "Both"
|
|
|
|
}
|
2022-03-23 07:31:15 +00:00
|
|
|
],
|
2022-05-02 05:31:11 +00:00
|
|
|
"readOnly": true,
|
2022-03-23 07:31:15 +00:00
|
|
|
"default": "both"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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
|
|
|
}
|