fix(repost item valuation): validate voucher type in transaction (#49388)

This commit is contained in:
Mihir Kandoi
2025-08-30 23:25:24 +05:30
committed by GitHub

View File

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