fix: update uom when item changes

This commit is contained in:
Pugazhendhi Velu
2025-11-26 16:07:27 +00:00
parent db828c08b6
commit a3b120b3b2

View File

@@ -438,6 +438,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
item.weight_per_unit = 0;
item.weight_uom = '';
item.uom = null // make UOM blank to update the existing UOM when item changes
item.conversion_factor = 0;
if(['Sales Invoice'].includes(this.frm.doc.doctype)) {