From 6e8521d7615352f244e1a3cb4f100ce7b5ca122d Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Thu, 13 Mar 2025 17:28:48 +0530 Subject: [PATCH] fix: hide subcontracted qty field if PO is not subcontracted --- .../doctype/purchase_order_item/purchase_order_item.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json index 9a0e150554f..912e2934364 100644 --- a/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json +++ b/erpnext/buying/doctype/purchase_order_item/purchase_order_item.json @@ -933,6 +933,7 @@ }, { "allow_on_submit": 1, + "depends_on": "eval:parent.is_subcontracted && !parent.is_old_subcontracting_flow", "fieldname": "subcontracted_quantity", "fieldtype": "Float", "label": "Subcontracted Quantity", @@ -946,7 +947,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2025-03-02 16:58:26.059601", + "modified": "2025-03-13 17:27:43.468602", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order Item", @@ -960,4 +961,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} \ No newline at end of file +}