Skip to content

Commit

Permalink
perf: Optimization of HSN-wise summary report
Browse files Browse the repository at this point in the history
(cherry picked from commit 868472b)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Mar 14, 2023
1 parent 2868c76 commit 14d63c0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ def get_tax_accounts(

try:
for item_code, tax_data in json.loads(item_wise_tax_detail).items():
if (
not frappe.db.get_value("Item", item_code, "gst_hsn_code")
or not tax_data
):
if not tax_data:
continue

tax_rate, tax_amount = tax_data
Expand Down

0 comments on commit 14d63c0

Please sign in to comment.