mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
Merge pull request #37041 from vorasmit/fix-advances
fix: multiple fixes for booking advances in seperate account
This commit is contained in:
@@ -200,8 +200,8 @@ erpnext.company.setup_queries = function(frm) {
|
||||
$.each([
|
||||
["default_bank_account", {"account_type": "Bank"}],
|
||||
["default_cash_account", {"account_type": "Cash"}],
|
||||
["default_receivable_account", {"account_type": "Receivable"}],
|
||||
["default_payable_account", {"account_type": "Payable"}],
|
||||
["default_receivable_account", { "root_type": "Asset", "account_type": "Receivable" }],
|
||||
["default_payable_account", { "root_type": "Liability", "account_type": "Payable" }],
|
||||
["default_expense_account", {"root_type": "Expense"}],
|
||||
["default_income_account", {"root_type": "Income"}],
|
||||
["round_off_account", {"root_type": "Expense"}],
|
||||
|
||||
@@ -30,6 +30,7 @@ frappe.ui.form.on("Customer Group", {
|
||||
frm.set_query('account', 'accounts', function (doc, cdt, cdn) {
|
||||
return {
|
||||
filters: {
|
||||
'root_type': 'Asset',
|
||||
"account_type": 'Receivable',
|
||||
"company": locals[cdt][cdn].company,
|
||||
"is_group": 0
|
||||
|
||||
@@ -30,6 +30,7 @@ frappe.ui.form.on("Supplier Group", {
|
||||
frm.set_query('account', 'accounts', function (doc, cdt, cdn) {
|
||||
return {
|
||||
filters: {
|
||||
'root_type': 'Liability',
|
||||
'account_type': 'Payable',
|
||||
'company': locals[cdt][cdn].company,
|
||||
"is_group": 0
|
||||
|
||||
Reference in New Issue
Block a user