From 3f9df2fb2d63466f13d14343c69483022fd231a1 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 12 Mar 2025 16:35:50 +0530 Subject: [PATCH 1/2] fix: enable no copy for serial no field --- .../purchase_invoice_item/purchase_invoice_item.json | 7 ++++--- .../doctype/sales_invoice_item/sales_invoice_item.json | 7 +++---- .../purchase_receipt_item/purchase_receipt_item.json | 7 ++++--- .../stock_reconciliation_item.json | 7 ++++--- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json index 258cc10d4ec..eb218708b8e 100644 --- a/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json +++ b/erpnext/accounts/doctype/purchase_invoice_item/purchase_invoice_item.json @@ -461,7 +461,8 @@ "depends_on": "eval:!doc.is_fixed_asset && doc.use_serial_batch_fields === 1 && parent.update_stock === 1", "fieldname": "serial_no", "fieldtype": "Text", - "label": "Serial No" + "label": "Serial No", + "no_copy": 1 }, { "depends_on": "eval:!doc.is_fixed_asset && doc.use_serial_batch_fields === 1 && parent.update_stock === 1", @@ -975,7 +976,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2024-10-28 15:06:19.246141", + "modified": "2025-03-12 16:33:12.453290", "modified_by": "Administrator", "module": "Accounts", "name": "Purchase Invoice Item", @@ -985,4 +986,4 @@ "sort_field": "modified", "sort_order": "DESC", "states": [] -} +} \ No newline at end of file diff --git a/erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json b/erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json index ba717951835..3d0998851fb 100644 --- a/erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json +++ b/erpnext/accounts/doctype/sales_invoice_item/sales_invoice_item.json @@ -633,6 +633,7 @@ "fieldname": "serial_no", "fieldtype": "Text", "label": "Serial No", + "no_copy": 1, "oldfieldname": "serial_no", "oldfieldtype": "Small Text" }, @@ -972,19 +973,17 @@ "search_index": 1 } ], - "grid_page_length": 50, "idx": 1, "istable": 1, "links": [], - "modified": "2025-03-05 12:22:11.801692", + "modified": "2025-03-12 16:33:52.503777", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice Item", "naming_rule": "Random", "owner": "Administrator", "permissions": [], - "row_format": "Dynamic", "sort_field": "creation", "sort_order": "DESC", "states": [] -} +} \ No newline at end of file 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 12d3f99e37b..f63d7e058f3 100644 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -1017,7 +1017,8 @@ { "fieldname": "serial_no", "fieldtype": "Text", - "label": "Serial No" + "label": "Serial No", + "no_copy": 1 }, { "fieldname": "rejected_serial_no", @@ -1140,7 +1141,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2025-02-17 13:15:36.692202", + "modified": "2025-03-12 16:34:29.722982", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item", @@ -1151,4 +1152,4 @@ "sort_field": "modified", "sort_order": "DESC", "states": [] -} +} \ No newline at end of file diff --git a/erpnext/stock/doctype/stock_reconciliation_item/stock_reconciliation_item.json b/erpnext/stock/doctype/stock_reconciliation_item/stock_reconciliation_item.json index bce819fe231..4d3a87c70aa 100644 --- a/erpnext/stock/doctype/stock_reconciliation_item/stock_reconciliation_item.json +++ b/erpnext/stock/doctype/stock_reconciliation_item/stock_reconciliation_item.json @@ -110,7 +110,8 @@ "depends_on": "eval:doc.use_serial_batch_fields === 1", "fieldname": "serial_no", "fieldtype": "Long Text", - "label": "Serial No" + "label": "Serial No", + "no_copy": 1 }, { "fieldname": "column_break_11", @@ -255,7 +256,7 @@ ], "istable": 1, "links": [], - "modified": "2024-05-30 23:20:00.947243", + "modified": "2025-03-12 16:34:51.326821", "modified_by": "Administrator", "module": "Stock", "name": "Stock Reconciliation Item", @@ -266,4 +267,4 @@ "sort_order": "DESC", "states": [], "track_changes": 1 -} +} \ No newline at end of file From baa564fc94c717c17d0cefd7e6bf66003f9d4c59 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Wed, 12 Mar 2025 17:11:14 +0530 Subject: [PATCH 2/2] fix: remove no copy for serial no field of purchase receipt item --- .../doctype/purchase_receipt_item/purchase_receipt_item.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 f63d7e058f3..810c08a545e 100644 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -1017,8 +1017,7 @@ { "fieldname": "serial_no", "fieldtype": "Text", - "label": "Serial No", - "no_copy": 1 + "label": "Serial No" }, { "fieldname": "rejected_serial_no", @@ -1141,7 +1140,7 @@ "idx": 1, "istable": 1, "links": [], - "modified": "2025-03-12 16:34:29.722982", + "modified": "2025-03-12 17:10:42.780622", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item",