fix: trigger `table_add` on new row
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index 5a4519f..eca5947 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -387,6 +387,7 @@
 		if (!row_to_modify) {
 			// add new row if new item/batch is scanned
 			row_to_modify = frappe.model.add_child(this.frm.doc, cur_grid.doctype, 'items');
+			this.frm.script_manager.trigger("items_add", row_to_modify.doctype, row_to_modify.name);
 		}
 
 		this.show_scan_message(row_to_modify.idx, row_to_modify.item_code);