From ae294ee4702fa8e0367c07c881d632811beb67ae Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Thu, 30 Nov 2023 16:16:12 +0530 Subject: [PATCH] fix(ux): make PR `rate` field read-only having PO ref --- .../doctype/purchase_receipt_item/purchase_receipt_item.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index a86e63daf4..7344d2a599 100644 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -359,6 +359,7 @@ "oldfieldtype": "Currency", "options": "currency", "print_width": "100px", + "read_only_depends_on": "eval: (!parent.is_return && doc.purchase_order && doc.purchase_order_item)", "width": "100px" }, { @@ -1103,7 +1104,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2023-11-28 13:37:29.245204", + "modified": "2023-11-30 16:12:02.364608", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item",