fix: Commonify code for Stock Entry

This commit is contained in:
Deepesh Garg
2020-12-25 18:34:39 +05:30
parent e5e2ad646a
commit bfc17e487c
8 changed files with 136 additions and 110 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", "Purchase Receipt", "Purchase Invoice"]:
"Period Closing Voucher", "Payment Entry", "Purchase Receipt", "Purchase Invoice", "Stock Entry"]:
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)