From a3b120b3b275d5c350ca13d484b357f1d90b3128 Mon Sep 17 00:00:00 2001 From: Pugazhendhi Velu Date: Wed, 26 Nov 2025 16:07:27 +0000 Subject: [PATCH] fix: update uom when item changes --- erpnext/public/js/controllers/transaction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index a37b4048e10..9aaa5728ad7 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -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)) {