fix: update uom when item changes

This commit is contained in:
Kavin
2025-11-11 13:17:21 +05:30
parent 5ed4fea3e3
commit 2a2ae9a20c

View File

@@ -558,6 +558,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', 'Purchase Invoice'].includes(this.frm.doc.doctype)) {