fix: Expense Account filter in Sales Invoice (#35944)

fix: Expense Account filter in Sales Invoice (#35944)

(cherry picked from commit d54f52474a)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
mergify[bot]
2023-07-01 18:13:46 +05:30
committed by GitHub
parent 8de1d8663f
commit a485e4e802
2 changed files with 3 additions and 14 deletions

View File

@@ -182,7 +182,9 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
this.frm.set_query("expense_account", "items", function(doc) {
return {
filters: {
"company": doc.company
"company": doc.company,
"report_type": "Profit and Loss",
"is_group": 0
}
};
});