fix: Clean Serial No input on Server Side

This commit is contained in:
marination
2021-07-22 13:23:54 +05:30
parent 28d52c4a95
commit eecfc4c0ae
5 changed files with 18 additions and 3 deletions

View File

@@ -752,7 +752,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
this.frm.trigger("item_code", cdt, cdn);
}
else {
// Replacing all occurences of comma with carriage return
// Replace all occurences of comma with line feed
item.serial_no = item.serial_no.replace(/,/g, '\n');
item.conversion_factor = item.conversion_factor || 1;
refresh_field("serial_no", item.name, item.parentfield);