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

This commit is contained in:
ravibharathi656
2025-08-29 23:27:14 +05:30
parent bba77529f8
commit 5663c2a1ca

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