mirror of
https://github.com/frappe/books.git
synced 2025-02-02 12:08:27 +00:00
feat: UOMConversionFactor Schema & schema changes
This commit is contained in:
parent
14f832dabf
commit
394332d125
@ -135,6 +135,7 @@
|
||||
"quickEditFields": [
|
||||
"rate",
|
||||
"unit",
|
||||
"UOM",
|
||||
"itemType",
|
||||
"for",
|
||||
"tax",
|
||||
|
29
schemas/app/UOMConversionFactor.json
Normal file
29
schemas/app/UOMConversionFactor.json
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "UOMConversionFactor",
|
||||
"label": "UOM Conversion Factor",
|
||||
"naming": "manual",
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "name",
|
||||
"label": "UOM",
|
||||
"fieldtype": "Link",
|
||||
"target": "UOM",
|
||||
"create": true,
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"fieldname": "item",
|
||||
"label": "Item",
|
||||
"fieldtype": "Link",
|
||||
"target": "Item",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"fieldname": "value",
|
||||
"label": "Value",
|
||||
"fieldtype": "Float",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"quickEditFields": ["item", "value"]
|
||||
}
|
@ -33,6 +33,30 @@
|
||||
"required": true,
|
||||
"default": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "transferQty",
|
||||
"label": "Qty as per UOM",
|
||||
"fieldtype": "Float",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"fieldname": "stockUOM",
|
||||
"label": "Stock UOM",
|
||||
"fieldtype": "Data",
|
||||
"readOnly": true
|
||||
},
|
||||
{
|
||||
"fieldname": "UOMs",
|
||||
"label": "UOMs",
|
||||
"fieldtype": "Link",
|
||||
"target": "UOMConversionFactor"
|
||||
},
|
||||
{
|
||||
"fieldname": "UOMConversionFactor",
|
||||
"label": "Conversion Factor",
|
||||
"fieldtype": "Float",
|
||||
"required": "true"
|
||||
},
|
||||
{
|
||||
"fieldname": "rate",
|
||||
"label": "Rate",
|
||||
@ -46,13 +70,27 @@
|
||||
"readOnly": true
|
||||
}
|
||||
],
|
||||
"tableFields": ["item", "fromLocation", "toLocation", "quantity", "rate"],
|
||||
"tableFields": [
|
||||
"item",
|
||||
"fromLocation",
|
||||
"toLocation",
|
||||
"stockUOM",
|
||||
"UOMs",
|
||||
"UOMConversionFactor",
|
||||
"quantity",
|
||||
"transferQty",
|
||||
"rate"
|
||||
],
|
||||
"keywordFields": ["item"],
|
||||
"quickEditFields": [
|
||||
"item",
|
||||
"fromLocation",
|
||||
"toLocation",
|
||||
"stockUOM",
|
||||
"UOMs",
|
||||
"UOMConversionFactor",
|
||||
"quantity",
|
||||
"transferQty",
|
||||
"rate",
|
||||
"amount"
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user