test: Update test cases for currency change validation

This commit is contained in:
Deepesh Garg
2021-08-21 23:05:48 +05:30
parent 1435800249
commit 60915e874d
6 changed files with 16 additions and 4 deletions

View File

@@ -1113,6 +1113,9 @@ class AccountsController(TransactionBase):
if self.doctype not in ('Sales Invoice', 'Purchase Invoice'):
return
if self.is_opening == 'Yes':
return
party_type, party = self.get_party()
party_gle_currency = get_party_gle_currency(party_type, party, self.company)
party_account = self.get('debit_to') if self.doctype == 'Sales Invoice' else self.get('credit_to')