fix: Removed inter-company account filter for inter-company journal entry (#19308)

This commit is contained in:
Nabin Hait 2019-10-21 13:36:47 +05:30 committed by GitHub
parent 8232bd01d6
commit f2d37a7280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -608,15 +608,9 @@ $.extend(erpnext.journal_entry, {
},
account_query: function(frm) {
var inter_company = 0;
if (frm.doc.voucher_type == "Inter Company Journal Entry") {
inter_company = 1;
}
var filters = {
company: frm.doc.company,
is_group: 0,
inter_company_account: inter_company
is_group: 0
};
if(!frm.doc.multi_currency) {
$.extend(filters, {