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)) {