mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
[fix] get_query where options not mentioned
This commit is contained in:
@@ -124,6 +124,7 @@ cur_frm.cscript.convert_to_group = function(doc, cdt, cdn) {
|
||||
cur_frm.fields_dict['master_name'].get_query = function(doc) {
|
||||
if (doc.master_type) {
|
||||
return {
|
||||
doctype: doc.master_type,
|
||||
query: "accounts.doctype.account.account.get_master_name",
|
||||
filters: { "master_type": doc.master_type }
|
||||
}
|
||||
|
||||
@@ -36,11 +36,14 @@ cur_frm.fields_dict.voucher_no.get_query = function(doc) {
|
||||
// TO-do: check for pos, it should not come
|
||||
if (!doc.account) msgprint("Please select Account first");
|
||||
else {
|
||||
query: "accounts.doctype.payment_to_invoice_matching_tool.payment_to_invoice_matching_tool.gl_entry_details",
|
||||
filters: {
|
||||
"dt": doc.voucher_type,
|
||||
"acc": doc.account,
|
||||
"account_type": doc.account_type
|
||||
return {
|
||||
doctype: doc.voucher_type,
|
||||
query: "accounts.doctype.payment_to_invoice_matching_tool.payment_to_invoice_matching_tool.gl_entry_details",
|
||||
filters: {
|
||||
"dt": doc.voucher_type,
|
||||
"acc": doc.account,
|
||||
"account_type": doc.account_type
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user