From 48a4effdb65b016b9d0eb8066758c9577fcb0d8c Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Wed, 12 Feb 2025 09:55:20 +0530 Subject: [PATCH] fix: changed naming series to random for SABB (cherry picked from commit a007dc285d121bc3a004df19a53523e4ac7e4737) # Conflicts: # erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.json --- .../serial_and_batch_bundle.json | 18 +++++++++--------- .../serial_and_batch_bundle.py | 5 +---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.json b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.json index 59ef43e31a88..4cb32bc3f6a0 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.json +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.json @@ -1,13 +1,12 @@ { "actions": [], - "autoname": "naming_series:", + "autoname": "hash", "creation": "2023-08-11 17:22:12.907518", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ "item_details_tab", - "naming_series", "company", "item_name", "has_serial_no", @@ -152,6 +151,7 @@ "fieldtype": "Column Break" }, { + "allow_on_submit": 1, "fieldname": "avg_rate", "fieldtype": "Float", "label": "Avg Rate", @@ -159,6 +159,7 @@ "read_only": 1 }, { + "allow_on_submit": 1, "fieldname": "total_amount", "fieldtype": "Float", "label": "Total Amount", @@ -166,6 +167,7 @@ "read_only": 1 }, { + "allow_on_submit": 1, "fieldname": "total_qty", "fieldtype": "Float", "label": "Total Qty", @@ -195,12 +197,6 @@ "reqd": 1, "search_index": 1 }, - { - "fieldname": "naming_series", - "fieldtype": "Select", - "label": "Naming Series", - "options": "SABB-.########" - }, { "default": "0", "depends_on": "eval:doc.voucher_type == \"Purchase Receipt\"", @@ -251,11 +247,15 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], +<<<<<<< HEAD "modified": "2024-03-15 15:22:24.003486", +======= + "modified": "2025-02-12 09:53:32.090309", +>>>>>>> a007dc285d (fix: changed naming series to random for SABB) "modified_by": "Administrator", "module": "Stock", "name": "Serial and Batch Bundle", - "naming_rule": "By \"Naming Series\" field", + "naming_rule": "Random", "owner": "Administrator", "permissions": [ { diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index dcd876deeb7f..c37d2464ff0a 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -55,9 +55,7 @@ class SerialandBatchBundle(Document): if TYPE_CHECKING: from frappe.types import DF - from erpnext.stock.doctype.serial_and_batch_entry.serial_and_batch_entry import ( - SerialandBatchEntry, - ) + from erpnext.stock.doctype.serial_and_batch_entry.serial_and_batch_entry import SerialandBatchEntry amended_from: DF.Link | None avg_rate: DF.Float @@ -70,7 +68,6 @@ class SerialandBatchBundle(Document): item_code: DF.Link item_group: DF.Link | None item_name: DF.Data | None - naming_series: DF.Literal["SABB-.########"] posting_date: DF.Date | None posting_time: DF.Time | None returned_against: DF.Data | None