mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
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:
@@ -979,6 +979,7 @@ class StockReconciliation(StockController):
|
||||
is_customer_item = frappe.db.get_value("Item", d.item_code, "is_customer_provided_item")
|
||||
if is_customer_item and d.valuation_rate:
|
||||
d.valuation_rate = 0.0
|
||||
d.allow_zero_valuation_rate = 1
|
||||
changed_any_values = True
|
||||
|
||||
if changed_any_values:
|
||||
|
||||
@@ -185,12 +185,10 @@
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"depends_on": "allow_zero_valuation_rate",
|
||||
"fieldname": "allow_zero_valuation_rate",
|
||||
"fieldtype": "Check",
|
||||
"label": "Allow Zero Valuation Rate",
|
||||
"print_hide": 1,
|
||||
"read_only": 1
|
||||
"print_hide": 1
|
||||
},
|
||||
{
|
||||
"depends_on": "barcode",
|
||||
@@ -256,7 +254,7 @@
|
||||
],
|
||||
"istable": 1,
|
||||
"links": [],
|
||||
"modified": "2025-03-12 16:34:51.326821",
|
||||
"modified": "2025-11-20 15:27:13.868179",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Stock Reconciliation Item",
|
||||
@@ -267,4 +265,4 @@
|
||||
"sort_order": "DESC",
|
||||
"states": [],
|
||||
"track_changes": 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user