mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
f05f77e191
- remove invoice wide discount
124 lines
2.4 KiB
JSON
124 lines
2.4 KiB
JSON
{
|
|
"name": "Item",
|
|
"label": "Item",
|
|
"isSingle": false,
|
|
"naming": "manual",
|
|
"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": "Link",
|
|
"target": "UOM",
|
|
"create": true,
|
|
"default": "Unit",
|
|
"placeholder": "Unit Type"
|
|
},
|
|
{
|
|
"fieldname": "itemType",
|
|
"label": "Type",
|
|
"placeholder": "Type",
|
|
"fieldtype": "Select",
|
|
"default": "Product",
|
|
"options": [
|
|
{
|
|
"value": "Product",
|
|
"label": "Product"
|
|
},
|
|
{
|
|
"value": "Service",
|
|
"label": "Service"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"fieldname": "for",
|
|
"label": "For",
|
|
"fieldtype": "Select",
|
|
"options": [
|
|
{
|
|
"value": "Purchases",
|
|
"label": "Purchases"
|
|
},
|
|
{
|
|
"value": "Sales",
|
|
"label": "Sales"
|
|
},
|
|
{
|
|
"value": "Both",
|
|
"label": "Both"
|
|
}
|
|
],
|
|
"readOnly": true,
|
|
"required": true,
|
|
"default": "Both"
|
|
},
|
|
{
|
|
"fieldname": "incomeAccount",
|
|
"label": "Income",
|
|
"fieldtype": "Link",
|
|
"target": "Account",
|
|
"placeholder": "Income",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "expenseAccount",
|
|
"label": "Expense",
|
|
"fieldtype": "Link",
|
|
"target": "Account",
|
|
"placeholder": "Expense",
|
|
"create": true,
|
|
"required": true
|
|
},
|
|
{
|
|
"fieldname": "tax",
|
|
"label": "Tax",
|
|
"fieldtype": "Link",
|
|
"target": "Tax",
|
|
"create": true,
|
|
"placeholder": "Tax"
|
|
},
|
|
{
|
|
"fieldname": "rate",
|
|
"label": "Rate",
|
|
"fieldtype": "Currency"
|
|
},
|
|
{
|
|
"fieldname": "hsnCode",
|
|
"label": "HSN/SAC",
|
|
"fieldtype": "Int",
|
|
"placeholder": "HSN/SAC Code"
|
|
}
|
|
],
|
|
"quickEditFields": [
|
|
"rate",
|
|
"unit",
|
|
"itemType",
|
|
"for",
|
|
"tax",
|
|
"description",
|
|
"incomeAccount",
|
|
"expenseAccount",
|
|
"hsnCode"
|
|
],
|
|
"keywordFields": ["name", "itemType", "for"]
|
|
}
|