Skip to content

Commit

Permalink
Merge pull request #1966 from vorasmit/group-similar-items
Browse files Browse the repository at this point in the history
fix: group tax values and amounts for invoice print formats
  • Loading branch information
vorasmit committed Apr 10, 2024
2 parents bc06faa + 119bb58 commit b3d4b2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 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
2 changes: 1 addition & 1 deletion india_compliance/patches/check_version_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"app_name": "ERPNext",
"current_version": version.parse(erpnext.__version__),
"required_versions": {"version-14": "14.64.0", "version-15": "15.15.0"},
"required_versions": {"version-14": "14.66.5", "version-15": "15.19.3"},
},
]

Expand Down

0 comments on commit b3d4b2e

Please sign in to comment.