2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/schemas/app/Item.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

141 lines
2.7 KiB
JSON
Raw Normal View History

2022-03-23 07:31:15 +00:00
{
"name": "Item",
"label": "Item",
"isSingle": false,
"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",
"label": "Unit"
2022-03-23 08:37:00 +00:00
},
{
"value": "Kg",
"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",
2022-03-23 08:37:00 +00:00
"label": "Purchases"
},
{
"value": "Sales",
2022-03-23 08:37:00 +00:00
"label": "Sales"
},
{
"value": "Both",
2022-03-23 08:37:00 +00:00
"label": "Both"
}
2022-03-23 07:31:15 +00:00
],
"readOnly": true,
"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
],
"keywordFields": ["name", "itemType", "for"]
2022-03-23 08:37:00 +00:00
}