From 5663c2a1ca2d2efcd97a60c8a43f9fa42580dbb5 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Fri, 29 Aug 2025 23:27:14 +0530 Subject: [PATCH] fix(repost item valuation): validate voucher type in transaction --- .../doctype/repost_item_valuation/repost_item_valuation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.js b/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.js index 06b24071827..e6547ad6f35 100644 --- a/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.js +++ b/erpnext/stock/doctype/repost_item_valuation/repost_item_valuation.js @@ -142,7 +142,7 @@ frappe.ui.form.on("Repost Item Valuation", { }, set_company_on_transaction(frm) { - if (frm.doc.voucher_no && frm.doc.voucher_no) { + if (frm.doc.voucher_no && frm.doc.voucher_type) { frm.call("set_company"); } },