Skip to content

Commit

Permalink
Merge pull request #37948 from ruthra-kumar/typo_in_ar_report
Browse files Browse the repository at this point in the history
fix: typo in AR report
  • Loading branch information
ruthra-kumar authored Nov 6, 2023
2 parents 8722318 + 67e74d0 commit cfe0479
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def init_voucher_balance(self):
for ple in self.ple_entries:
# get the balance object for voucher_type

if self.filters.get("ingore_accounts"):
if self.filters.get("ignore_accounts"):
key = (ple.voucher_type, ple.voucher_no, ple.party)
else:
key = (ple.account, ple.voucher_type, ple.voucher_no, ple.party)
Expand Down Expand Up @@ -188,7 +188,7 @@ def get_voucher_balance(self, ple):
):
return

if self.filters.get("ingore_accounts"):
if self.filters.get("ignore_accounts"):
key = (ple.against_voucher_type, ple.against_voucher_no, ple.party)
else:
key = (ple.account, ple.against_voucher_type, ple.against_voucher_no, ple.party)
Expand All @@ -200,7 +200,7 @@ def get_voucher_balance(self, ple):
if ple.against_voucher_no in self.return_entries:
return_against = self.return_entries.get(ple.against_voucher_no)
if return_against:
if self.filters.get("ingore_accounts"):
if self.filters.get("ignore_accounts"):
key = (ple.against_voucher_type, return_against, ple.party)
else:
key = (ple.account, ple.against_voucher_type, return_against, ple.party)
Expand All @@ -209,7 +209,7 @@ def get_voucher_balance(self, ple):

if not row:
# no invoice, this is an invoice / stand-alone payment / credit note
if self.filters.get("ingore_accounts"):
if self.filters.get("ignore_accounts"):
row = self.voucher_balance.get((ple.voucher_type, ple.voucher_no, ple.party))
else:
row = self.voucher_balance.get((ple.account, ple.voucher_type, ple.voucher_no, ple.party))
Expand Down

0 comments on commit cfe0479

Please sign in to comment.