mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 19:25:16 +00:00
fix: unhide zero val checkbox
(cherry picked from commit 20e0313a8c)
# Conflicts:
# erpnext/stock/doctype/stock_reconciliation_item/stock_reconciliation_item.json
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")
|
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:
|
||||||
|
|||||||
@@ -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,11 @@
|
|||||||
],
|
],
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
|
<<<<<<< HEAD
|
||||||
"modified": "2025-03-12 16:34:51.326821",
|
"modified": "2025-03-12 16:34:51.326821",
|
||||||
|
=======
|
||||||
|
"modified": "2025-11-20 15:27:13.868179",
|
||||||
|
>>>>>>> 20e0313a8c (fix: unhide zero val checkbox)
|
||||||
"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