2
0
mirror of https://github.com/frappe/books.git synced 2025-01-22 22:58:28 +00:00

feat: serialNo schema

This commit is contained in:
akshayitzme 2023-04-25 12:35:10 +05:30
parent 6b4baa9fae
commit 50942cd373
6 changed files with 69 additions and 0 deletions

View File

@ -138,6 +138,13 @@
"default": false, "default": false,
"section": "Inventory" "section": "Inventory"
}, },
{
"fieldname": "hasSerialNo",
"label": "Has Serial No",
"fieldtype": "Check",
"default": false,
"section": "Inventory"
},
{ {
"fieldname": "uomConversions", "fieldname": "uomConversions",
"label": "UOM Conversions", "label": "UOM Conversions",

View File

@ -63,6 +63,12 @@
"fieldtype": "Check", "fieldtype": "Check",
"section": "Features" "section": "Features"
}, },
{
"fieldname": "enableSerialNo",
"label": "Enable Serial No",
"fieldtype": "Check",
"section": "Features"
},
{ {
"fieldname": "enableUomConversions", "fieldname": "enableUomConversions",
"label": "Enable UOM Conversion", "label": "Enable UOM Conversion",

View File

@ -0,0 +1,36 @@
{
"name": "SerialNo",
"label": "Serial No",
"naming": "manual",
"fields": [
{
"fieldname": "name",
"fieldtype": "Data",
"label": "Serial Number",
"create": true,
"required": true
},
{
"fieldname": "item",
"fieldtype": "Link",
"label": "Item",
"target": "Item",
"create": true,
"required": true
},
{
"fieldname": "description",
"label": "Description",
"placeholder": "Serial Number Description",
"fieldtype": "Text"
},
{
"fieldname": "status",
"label": "Status",
"fieldtype": "Data",
"default": "Inactive"
}
],
"quickEditFields": ["item", "description", "party"],
"keywordFields": ["name"]
}

View File

@ -37,6 +37,14 @@
"readOnly": true, "readOnly": true,
"section": "Details" "section": "Details"
}, },
{
"fieldname": "serialNo",
"label": "Serial No",
"fieldtype": "Link",
"target": "SerialNo",
"readOnly": true,
"section": "Details"
},
{ {
"fieldname": "item", "fieldname": "item",
"label": "Item", "label": "Item",

View File

@ -57,6 +57,11 @@
"target": "Batch", "target": "Batch",
"create": true "create": true
}, },
{
"fieldname": "serialNo",
"label": "Serial No",
"fieldtype": "Text"
},
{ {
"fieldname": "quantity", "fieldname": "quantity",
"label": "Quantity", "label": "Quantity",
@ -94,6 +99,7 @@
"transferQuantity", "transferQuantity",
"transferUnit", "transferUnit",
"batch", "batch",
"serialNo",
"quantity", "quantity",
"unit", "unit",
"unitConversionFactor", "unitConversionFactor",

View File

@ -47,6 +47,11 @@
"fieldtype": "Link", "fieldtype": "Link",
"target": "Batch" "target": "Batch"
}, },
{
"fieldname": "serialNo",
"label": "Serial No",
"fieldtype": "Text"
},
{ {
"fieldname": "quantity", "fieldname": "quantity",
"label": "Quantity", "label": "Quantity",
@ -93,6 +98,7 @@
"transferQuantity", "transferQuantity",
"transferUnit", "transferUnit",
"batch", "batch",
"serialNo",
"quantity", "quantity",
"unit", "unit",
"unitConversionFactor", "unitConversionFactor",