Merge pull request #50652 from frappe/mergify/bp/version-15-hotfix/pr-50649

fix: unhide zero val checkbox in stock reco (backport #50649)
This commit is contained in:
Mihir Kandoi
2025-11-20 17:43:26 +05:30
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -979,6 +979,7 @@ class StockReconciliation(StockController):
is_customer_item = frappe.db.get_value("Item", d.item_code, "is_customer_provided_item") is_customer_item = frappe.db.get_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:

View File

@@ -185,12 +185,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",
@@ -256,7 +254,7 @@
], ],
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2025-03-12 16:34:51.326821", "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",
@@ -267,4 +265,4 @@
"sort_order": "DESC", "sort_order": "DESC",
"states": [], "states": [],
"track_changes": 1 "track_changes": 1
} }