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

172 lines
3.5 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": "Purpose",
2022-03-23 07:31:15 +00:00
"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 Inventory",
"fieldtype": "Check",
"section": "Inventory",
"default": false
},
{
2023-02-28 06:01:04 +00:00
"fieldname": "hasBatch",
"label": "Has Batch",
"fieldtype": "Check",
"default": false,
"section": "Inventory"
},
2023-04-25 07:05:10 +00:00
{
2023-05-04 10:45:12 +00:00
"fieldname": "hasSerialNumber",
"label": "Has Serial Number",
2023-04-25 07:05:10 +00:00
"fieldtype": "Check",
"default": false,
"section": "Inventory"
},
{
"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",
"uom"
2022-03-23 07:31:15 +00:00
],
"keywordFields": ["name", "itemType", "for"]
2022-03-23 08:37:00 +00:00
}