Skip to content

Commit

Permalink
fix: group tax values and amounts for invoice print formats
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit committed Apr 8, 2024
1 parent a0f9b2d commit e78d3cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions india_compliance/gst_india/overrides/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,9 +1311,6 @@ def before_print(doc, method=None, print_settings=None):
if ignore_gst_validations(doc) or not doc.place_of_supply or not doc.company_gstin:
return

if doc.get("group_same_items"):
ItemGSTDetails().update(doc)

set_gst_breakup(doc)


Expand Down
9 changes: 9 additions & 0 deletions india_compliance/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,15 @@
}
}

fields_for_group_similar_items = [
"taxable_value",
"cgst_amount",
"sgst_amount",
"igst_amount",
"cess_amount",
"cess_non_advol_amount",
]


# Includes in <head>
# ------------------
Expand Down

0 comments on commit e78d3cf

Please sign in to comment.