mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
fix: trigger table_add on new row
This commit is contained in:
committed by
Ankush Menat
parent
a270f12855
commit
b06123bc65
@@ -387,6 +387,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user