From 01372cf295b3b1532f1f8af33549f73c1dee75d5 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 15:54:04 +0000 Subject: [PATCH] fix(selling): reset stale item details on item change (backport #58051) (#58052) --- erpnext/public/js/controllers/transaction.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 88dc01d5845..e7f4cdec979 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -561,9 +561,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe var update_stock = 0, show_batch_dialog = 0; item.weight_per_unit = 0; item.weight_uom = ''; - if(!item.barcode){ - item.uom = null // make UOM blank to update the existing UOM when item changes - } + 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)) {