From 0a633a212d01c573668e46aa279fe04326e0b24f Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Tue, 12 Jul 2022 13:05:40 -0400 Subject: [PATCH 1/2] fix: display customer name on picking list --- erpnext/stock/doctype/pick_list/pick_list.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.json b/erpnext/stock/doctype/pick_list/pick_list.json index ff209097a01..498625a0876 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.json +++ b/erpnext/stock/doctype/pick_list/pick_list.json @@ -10,6 +10,7 @@ "company", "purpose", "customer", + "customer_name", "work_order", "material_request", "for_qty", @@ -159,11 +160,18 @@ "fieldname": "prompt_qty", "fieldtype": "Check", "label": "Prompt Qty" + }, + { + "depends_on": "eval:doc.purpose==='Delivery' && doc.customer", + "fetch_from": "customer.customer_name", + "fieldname": "customer_name", + "fieldtype": "Data", + "label": "Customer Name" } ], "is_submittable": 1, "links": [], - "modified": "2022-05-11 09:09:53.029312", + "modified": "2022-07-12 13:03:04.442174", "modified_by": "Administrator", "module": "Stock", "name": "Pick List", From 7083b3148b736567a2e1c684dcaf4918835d4332 Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Tue, 19 Jul 2022 11:02:43 -0400 Subject: [PATCH 2/2] fix: make customer_name field read only. --- erpnext/stock/doctype/pick_list/pick_list.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/stock/doctype/pick_list/pick_list.json b/erpnext/stock/doctype/pick_list/pick_list.json index 498625a0876..e1c3f0f5061 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.json +++ b/erpnext/stock/doctype/pick_list/pick_list.json @@ -166,12 +166,13 @@ "fetch_from": "customer.customer_name", "fieldname": "customer_name", "fieldtype": "Data", - "label": "Customer Name" + "label": "Customer Name", + "read_only": 1 } ], "is_submittable": 1, "links": [], - "modified": "2022-07-12 13:03:04.442174", + "modified": "2022-07-19 11:03:04.442174", "modified_by": "Administrator", "module": "Stock", "name": "Pick List", @@ -243,4 +244,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} \ No newline at end of file +}