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

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

165 lines
3.4 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": "image",
"label": "Image",
"section": "Default",
2022-03-23 07:31:15 +00:00
"fieldtype": "AttachImage"
},
{
"fieldname": "name",
"label": "Item Name",
"fieldtype": "Data",
"placeholder": "Item Name",
"section": "Default",
"required": true
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
],
"required": true,
"section": "Default",
"default": "Both"
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "itemType",
"label": "Type",
"placeholder": "Type",
"fieldtype": "Select",
"default": "Product",
"section": "Default",
"options": [
{
"value": "Product",
"label": "Product"
},
{
"value": "Service",
"label": "Service"
}
]
},
{
"fieldname": "unit",
"label": "Unit Type",
"fieldtype": "Link",
"target": "UOM",
"create": true,
"default": "Unit",
"section": "Details",
"placeholder": "Unit Type"
},
{
"fieldname": "rate",
"label": "Rate",
"section": "Details",
"fieldtype": "Currency"
},
{
"fieldname": "description",
"label": "Description",
"placeholder": "Item Description",
"section": "Details",
"fieldtype": "Text"
},
2022-03-23 07:31:15 +00:00
{
"fieldname": "incomeAccount",
"label": "Sales Acc.",
2022-03-23 07:31:15 +00:00
"fieldtype": "Link",
"target": "Account",
"placeholder": "Income",
"section": "Accounts",
2022-06-20 06:31:20 +00:00
"create": true,
2022-03-23 08:37:00 +00:00
"required": true
2022-03-23 07:31:15 +00:00
},
{
"fieldname": "expenseAccount",
"label": "Purchase Acc.",
2022-03-23 07:31:15 +00:00
"fieldtype": "Link",
"target": "Account",
"placeholder": "Expense",
"section": "Accounts",
2022-06-20 06:31:20 +00:00
"create": true,
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",
"section": "Accounts",
2022-06-20 06:31:20 +00:00
"create": true,
2022-03-23 07:31:15 +00:00
"placeholder": "Tax"
},
2022-03-23 08:37:00 +00:00
{
"fieldname": "hsnCode",
"label": "HSN/SAC",
"fieldtype": "Int",
"placeholder": "HSN/SAC Code",
"section": "Inventory"
},
2023-01-16 05:31:12 +00:00
{
"fieldname": "barcode",
"label": "Barcode",
"fieldtype": "Data",
"placeholder": "Barcode",
"section": "Inventory"
2023-01-16 05:31:12 +00:00
},
{
"fieldname": "trackItem",
"label": "Track Item",
"fieldtype": "Check",
"section": "Inventory",
"default": false
},
{
"fieldname": "hasBatchNumber",
"label": "Has Batch No",
"fieldtype": "Check",
"default": false
},
{
"fieldname": "uomConversions",
"label": "UOM Conversions",
"fieldtype": "Table",
"target": "UOMConversionItem",
"section": "Inventory"
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",
2023-01-16 05:31:12 +00:00
"barcode",
"hsnCode",
2023-01-18 12:03:51 +00:00
"trackItem",
"hasBatchNumber",
"uom"
2022-03-23 07:31:15 +00:00
],
"keywordFields": ["name", "itemType", "for"]
2022-03-23 08:37:00 +00:00
}