2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 15:20:56 +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,
"section": "Inventory"
},
{
"fieldname": "hasSerialNo",
"label": "Has Serial No",
"fieldtype": "Check",
"default": false,
"section": "Inventory"
},
{
"fieldname": "uomConversions",
"label": "UOM Conversions",

View File

@ -63,6 +63,12 @@
"fieldtype": "Check",
"section": "Features"
},
{
"fieldname": "enableSerialNo",
"label": "Enable Serial No",
"fieldtype": "Check",
"section": "Features"
},
{
"fieldname": "enableUomConversions",
"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,
"section": "Details"
},
{
"fieldname": "serialNo",
"label": "Serial No",
"fieldtype": "Link",
"target": "SerialNo",
"readOnly": true,
"section": "Details"
},
{
"fieldname": "item",
"label": "Item",

View File

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

View File

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