Merge pull request #50649 from mihir-kandoi/zero-val-stock-reco

fix: unhide zero val checkbox in stock reco
This commit is contained in:
rohitwaghchaure
2025-11-20 16:11:34 +05:30
committed by GitHub
2 changed files with 3 additions and 4 deletions

View File

@@ -977,6 +977,7 @@ class StockReconciliation(StockController):
is_customer_item = frappe.get_cached_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:

View File

@@ -196,12 +196,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",
@@ -268,7 +266,7 @@
"grid_page_length": 50,
"istable": 1,
"links": [],
"modified": "2025-04-28 22:40:30.086415",
"modified": "2025-11-20 15:27:13.868179",
"modified_by": "Administrator",
"module": "Stock",
"name": "Stock Reconciliation Item",