Skip to content

Commit

Permalink
Merge pull request #2819 from resilient-tech/mergify/bp/version-15-ho…
Browse files Browse the repository at this point in the history
…tfix/pr-2816

fix: Avoid Duplicate Taxes When Having Same Name (backport #2816)
  • Loading branch information
mergify[bot] authored Dec 5, 2024
2 parents c568882 + b0c25eb commit 38fa3f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def _get_tax_amount(account_type):
& boe.docstatus.eq(1)
& boe_taxes.gst_tax_type.eq(account_type)
)
.where(boe_taxes.parenttype == "Bill of Entry")
.run()
)[0][0] or 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def get_itc_from_boe(self):
& (boe.company == self.company)
& (boe.company_gstin == self.company_gstin)
)
.where(boe_taxes.parenttype == "Bill of Entry")
.groupby(boe.name)
)

Expand Down

0 comments on commit 38fa3f1

Please sign in to comment.