From 3f08f76ad6b41a660fba302e3967b25b4fa6ac56 Mon Sep 17 00:00:00 2001 From: Kavin <78342682+kavin0411@users.noreply.github.com> Date: Tue, 11 Nov 2025 13:52:23 +0530 Subject: [PATCH] fix: pass UOM null to update when item changes --- erpnext/public/js/controllers/transaction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 4e76f28e0a..69f0014067 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -608,6 +608,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe // Experimental: This will be removed once stability is achieved. if (!frappe.boot.sysdefaults.use_legacy_js_reactivity) { var item = frappe.get_doc(cdt, cdn); + frappe.call({ doc: doc, method: "process_item_selection", @@ -633,6 +634,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)) { -- GitLab