I really like this Expenses Request, it is very simple and also easy for the non-accounting users. Good Job
Here is an issue that i picked up, when more than one Company, creating the Journal Entry pickup the wrong cost center. On the api.py file I replace these 3 lines:
# payment_mode = frappe.get_doc('Mode of Payment Account', {'parent' : expense_entry.mode_of_payment, 'company' : expense_entry.company})
# for acc in payment_mode.accounts:
# pay_account = acc.default_account
with this line:
` pay_account = frappe.db.get_value('Mode of Payment Account', {'parent' : expense_entry.mode_of_payment, 'company' : expense_entry.company}, 'default_account')`
then I added this line at the bottom of the accounts.append
'cost_center': expense_entry.default_cost_center
I really like this Expenses Request, it is very simple and also easy for the non-accounting users. Good Job
Here is an issue that i picked up, when more than one Company, creating the Journal Entry pickup the wrong cost center. On the api.py file I replace these 3 lines:
with this line:
then I added this line at the bottom of the accounts.append
'cost_center': expense_entry.default_cost_center