mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Merge pull request #50649 from mihir-kandoi/zero-val-stock-reco
fix: unhide zero val checkbox in stock reco
This commit is contained in:
@@ -977,6 +977,7 @@ class StockReconciliation(StockController):
|
|||||||
is_customer_item = frappe.get_cached_value("Item", d.item_code, "is_customer_provided_item")
|
is_customer_item = frappe.get_cached_value("Item", d.item_code, "is_customer_provided_item")
|
||||||
if is_customer_item and d.valuation_rate:
|
if is_customer_item and d.valuation_rate:
|
||||||
d.valuation_rate = 0.0
|
d.valuation_rate = 0.0
|
||||||
|
d.allow_zero_valuation_rate = 1
|
||||||
changed_any_values = True
|
changed_any_values = True
|
||||||
|
|
||||||
if changed_any_values:
|
if changed_any_values:
|
||||||
|
|||||||
@@ -196,12 +196,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
"depends_on": "allow_zero_valuation_rate",
|
|
||||||
"fieldname": "allow_zero_valuation_rate",
|
"fieldname": "allow_zero_valuation_rate",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Allow Zero Valuation Rate",
|
"label": "Allow Zero Valuation Rate",
|
||||||
"print_hide": 1,
|
"print_hide": 1
|
||||||
"read_only": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"depends_on": "barcode",
|
"depends_on": "barcode",
|
||||||
@@ -268,7 +266,7 @@
|
|||||||
"grid_page_length": 50,
|
"grid_page_length": 50,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-04-28 22:40:30.086415",
|
"modified": "2025-11-20 15:27:13.868179",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Reconciliation Item",
|
"name": "Stock Reconciliation Item",
|
||||||
|
|||||||
Reference in New Issue
Block a user