mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 02:33:38 +00:00
fix(repost item valuation): validate voucher type in transaction
This commit is contained in:
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user