fix: Add server side methods and other fixes

This commit is contained in:
Deepesh Garg
2020-12-17 09:21:11 +05:30
parent 46f3c65b00
commit 5a2030c2f2
5 changed files with 106 additions and 20 deletions

View File

@@ -442,7 +442,7 @@ class AccountsController(TransactionBase):
account_currency = get_account_currency(gl_dict.account)
if gl_dict.account and self.doctype not in ["Journal Entry",
"Period Closing Voucher", "Payment Entry"]:
"Period Closing Voucher", "Payment Entry", "Purchase Receipt", "Purchase Invoice"]:
self.validate_account_currency(gl_dict.account, account_currency)
set_balance_in_account_currency(gl_dict, account_currency, self.get("conversion_rate"),
self.company_currency)