fix: Test cases

(cherry picked from commit ae3dce0cbd)
This commit is contained in:
Deepesh Garg
2022-08-22 08:57:58 +05:30
committed by Mergify
parent b6d2de2cc1
commit 3afb625ff8

View File

@@ -1174,7 +1174,7 @@ class AccountsController(TransactionBase):
)
if (
(enable_discount_accounting or self.is_cash_or_non_trade_discount)
(enable_discount_accounting or self.get("is_cash_or_non_trade_discount"))
and self.get("additional_discount_account")
and self.get("discount_amount")
):