mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
chore: add field Voucher Qty in SRE
This commit is contained in:
@@ -12,21 +12,22 @@
|
|||||||
"warehouse",
|
"warehouse",
|
||||||
"posting_date",
|
"posting_date",
|
||||||
"posting_time",
|
"posting_time",
|
||||||
"column_break_6",
|
"column_break_elik",
|
||||||
"voucher_type",
|
"voucher_type",
|
||||||
"voucher_no",
|
"voucher_no",
|
||||||
"voucher_detail_no",
|
"voucher_detail_no",
|
||||||
"section_break_11",
|
"section_break_xt4m",
|
||||||
"available_qty",
|
"available_qty",
|
||||||
|
"voucher_qty",
|
||||||
|
"stock_uom",
|
||||||
|
"column_break_o6ex",
|
||||||
"reserved_qty",
|
"reserved_qty",
|
||||||
"delivered_qty",
|
"delivered_qty",
|
||||||
"column_break_17",
|
|
||||||
"valuation_rate",
|
"valuation_rate",
|
||||||
"section_break_21",
|
"section_break_3vb3",
|
||||||
"company",
|
"company",
|
||||||
"stock_uom",
|
"column_break_jbyr",
|
||||||
"project",
|
"project",
|
||||||
"column_break_26",
|
|
||||||
"status",
|
"status",
|
||||||
"amended_from"
|
"amended_from"
|
||||||
],
|
],
|
||||||
@@ -163,26 +164,6 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"width": "150px"
|
"width": "150px"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "column_break_6",
|
|
||||||
"fieldtype": "Column Break"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "section_break_11",
|
|
||||||
"fieldtype": "Section Break"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "column_break_17",
|
|
||||||
"fieldtype": "Column Break"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "section_break_21",
|
|
||||||
"fieldtype": "Section Break"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"fieldname": "column_break_26",
|
|
||||||
"fieldtype": "Column Break"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "reserved_qty",
|
"fieldname": "reserved_qty",
|
||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
@@ -226,6 +207,34 @@
|
|||||||
"label": "Available Qty to Reserve",
|
"label": "Available Qty to Reserve",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "voucher_qty",
|
||||||
|
"fieldtype": "Float",
|
||||||
|
"label": "Voucher Qty",
|
||||||
|
"no_copy": 1,
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_elik",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_xt4m",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_o6ex",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_3vb3",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_jbyr",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"hide_toolbar": 1,
|
"hide_toolbar": 1,
|
||||||
@@ -233,7 +242,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2023-03-23 12:54:14.168935",
|
"modified": "2023-03-23 19:35:55.479617",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Reservation Entry",
|
"name": "Stock Reservation Entry",
|
||||||
|
|||||||
@@ -34,9 +34,10 @@ class StockReservationEntry(TransactionBase):
|
|||||||
"voucher_no",
|
"voucher_no",
|
||||||
"voucher_detail_no",
|
"voucher_detail_no",
|
||||||
"available_qty",
|
"available_qty",
|
||||||
|
"voucher_qty",
|
||||||
|
"stock_uom",
|
||||||
"reserved_qty",
|
"reserved_qty",
|
||||||
"company",
|
"company",
|
||||||
"stock_uom",
|
|
||||||
]
|
]
|
||||||
for d in mandatory:
|
for d in mandatory:
|
||||||
if not self.get(d):
|
if not self.get(d):
|
||||||
|
|||||||
Reference in New Issue
Block a user