2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/schemas/app/Item.json
18alantom 2c0540bfd5 incr: add enable inventory
- add basic inventory schemas
- add basic inventory models
- patch stockmovement number series
2022-11-07 13:28:35 +05:30

130 lines
2.5 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"
}
],
"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"
},
{
"fieldname": "trackItem",
"label": "Track Item",
"fieldtype": "Check",
"default": false
}
],
"quickEditFields": [
"rate",
"unit",
"itemType",
"for",
"tax",
"description",
"incomeAccount",
"expenseAccount",
"hsnCode",
"trackItem"
],
"keywordFields": ["name", "itemType", "for"]
}