Skip to content

Commit

Permalink
fix: Test cases
Browse files Browse the repository at this point in the history
(cherry picked from commit ae3dce0)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Aug 23, 2022
1 parent 20e9599 commit 7c85b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def make_discount_gl_entries(self, gl_entries):
)

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")
):
Expand Down

0 comments on commit 7c85b48

Please sign in to comment.