Skip to content

Commit

Permalink
fix: avoid duplicate taxes when same name
Browse files Browse the repository at this point in the history
(cherry picked from commit 9c72e05)
  • Loading branch information
Ninad1306 authored and mergify[bot] committed Dec 5, 2024
1 parent 2fc426d commit b0c25eb
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 b0c25eb

Please sign in to comment.