fix: update Batch schema

This commit is contained in:
Rohan Bansal
2019-08-01 18:05:03 +05:30
committed by Nabin Hait
parent ced78cf116
commit ba03853b2a

View File

@@ -6,13 +6,18 @@
"document_type": "Setup", "document_type": "Setup",
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"sb_disabled",
"disabled",
"sb_batch",
"batch_id", "batch_id",
"item", "item",
"item_name",
"image", "image",
"parent_batch", "parent_batch",
"column_break_3",
"disabled",
"manufacturing_date", "manufacturing_date",
"column_break_3",
"batch_qty",
"stock_uom",
"expiry_date", "expiry_date",
"source", "source",
"supplier", "supplier",
@@ -33,7 +38,6 @@
"depends_on": "eval:doc.__islocal", "depends_on": "eval:doc.__islocal",
"fieldname": "batch_id", "fieldname": "batch_id",
"fieldtype": "Data", "fieldtype": "Data",
"in_list_view": 1,
"label": "Batch ID", "label": "Batch ID",
"no_copy": 1, "no_copy": 1,
"oldfieldname": "batch_id", "oldfieldname": "batch_id",
@@ -124,13 +128,45 @@
"oldfieldname": "description", "oldfieldname": "description",
"oldfieldtype": "Small Text", "oldfieldtype": "Small Text",
"width": "300px" "width": "300px"
},
{
"fieldname": "sb_disabled",
"fieldtype": "Section Break"
},
{
"fieldname": "sb_batch",
"fieldtype": "Section Break",
"label": "Batch Details"
},
{
"fetch_from": "item.item_name",
"fieldname": "item_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Item Name",
"read_only": 1
},
{
"fieldname": "batch_qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Batch Quantity",
"read_only": 1
},
{
"fetch_from": "item.stock_uom",
"fieldname": "stock_uom",
"fieldtype": "Link",
"label": "Batch UOM",
"options": "UOM",
"read_only": 1
} }
], ],
"icon": "fa fa-archive", "icon": "fa fa-archive",
"idx": 1, "idx": 1,
"image_field": "image", "image_field": "image",
"max_attachments": 5, "max_attachments": 5,
"modified": "2019-07-16 23:04:47.554387", "modified": "2019-08-01 03:33:52.900790",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Batch", "name": "Batch",