Skip to content

Commit

Permalink
fix: failing test cases fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakhdesai committed Jan 28, 2025
1 parent 4e56cb4 commit 0b43b87
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions india_compliance/gst_india/overrides/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ def test_transaction_for_items_with_different_tax_templates(self):
doc = create_transaction(
**self.transaction_details, do_not_save=True, is_in_state=True
)
append_item(doc, frappe._dict(item_tax_template="GST 28% - _TIRC"))

append_item(doc, frappe._dict(item_tax_template="GST 12% - _TIRC"))
doc.insert()

# Verify that taxes and amounts are set correctly in both items
Expand All @@ -225,10 +226,10 @@ def test_transaction_for_items_with_different_tax_templates(self):
self.assertEqual(doc.items[0].cgst_amount, 9)
self.assertEqual(doc.items[0].sgst_amount, 9)

self.assertEqual(doc.items[1].cgst_rate, 14)
self.assertEqual(doc.items[1].sgst_rate, 14)
self.assertEqual(doc.items[1].cgst_amount, 14)
self.assertEqual(doc.items[1].sgst_amount, 14)
self.assertEqual(doc.items[1].cgst_rate, 6)
self.assertEqual(doc.items[1].sgst_rate, 6)
self.assertEqual(doc.items[1].cgst_amount, 6)
self.assertEqual(doc.items[1].sgst_amount, 6)

def test_place_of_supply_is_set(self):
doc = create_transaction(**self.transaction_details)
Expand Down

0 comments on commit 0b43b87

Please sign in to comment.