feat: inline serial and batch entries editor (#57216)

* feat: inline serial and batch entries editor in Purchase Receipt

* feat: grid-style UX, deferred saves, scan and range options for inline serial batch editor

* feat: extend inline serial batch editor to all bundle doctypes with auto fetch

* fix: address review comments on inline serial batch editor

* fix: escape untrusted values in inline editor alerts

* fix: clear child bundle reference only when the row owns the bundle

* fix: keep inline serial batch editor disabled on existing sites via patch
This commit is contained in:
rohitwaghchaure
2026-07-19 19:21:09 +05:30
committed by GitHub
parent ddb094084e
commit 2eecdc48bf
21 changed files with 2238 additions and 16 deletions

View File

@@ -57,6 +57,10 @@
"col_break5",
"add_serial_batch_for_rejected_qty",
"rejected_serial_and_batch_bundle",
"serial_batch_entries_section",
"serial_batch_entries_html",
"rejected_serial_batch_entries_section",
"rejected_serial_batch_entries_html",
"section_break_jshh",
"serial_no",
"rejected_serial_no",
@@ -548,6 +552,24 @@
"fieldtype": "Check",
"label": "Use Serial No / Batch Fields"
},
{
"fieldname": "serial_batch_entries_section",
"fieldtype": "Section Break",
"label": "Serial / Batch Entries"
},
{
"fieldname": "serial_batch_entries_html",
"fieldtype": "HTML"
},
{
"fieldname": "rejected_serial_batch_entries_section",
"fieldtype": "Section Break",
"label": "Rejected Serial / Batch Entries"
},
{
"fieldname": "rejected_serial_batch_entries_html",
"fieldtype": "HTML"
},
{
"depends_on": "eval:doc.use_serial_batch_fields === 1",
"fieldname": "section_break_jshh",
@@ -635,7 +657,7 @@
"idx": 1,
"istable": 1,
"links": [],
"modified": "2026-06-01 10:00:00.000000",
"modified": "2026-07-18 10:00:00.000000",
"modified_by": "Administrator",
"module": "Subcontracting",
"name": "Subcontracting Receipt Item",

View File

@@ -30,6 +30,8 @@
"use_serial_batch_fields",
"col_break4",
"subcontracting_order",
"serial_batch_entries_section",
"serial_batch_entries_html",
"section_break_zwnh",
"serial_no",
"column_break_qibi",
@@ -221,6 +223,15 @@
"fieldtype": "Check",
"label": "Use Serial No / Batch Fields"
},
{
"fieldname": "serial_batch_entries_section",
"fieldtype": "Section Break",
"label": "Serial / Batch Entries"
},
{
"fieldname": "serial_batch_entries_html",
"fieldtype": "HTML"
},
{
"depends_on": "eval:doc.use_serial_batch_fields === 1",
"fieldname": "section_break_zwnh",
@@ -264,7 +275,7 @@
"idx": 1,
"istable": 1,
"links": [],
"modified": "2025-05-27 12:33:58.772638",
"modified": "2026-07-18 10:00:00.000000",
"modified_by": "Administrator",
"module": "Subcontracting",
"name": "Subcontracting Receipt Supplied Item",