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"); } },