chore: resolve conflicts

This commit is contained in:
ljain112
2026-01-19 13:45:11 +05:30
parent cf49c32b94
commit b4dc1be5ed
2 changed files with 2 additions and 11 deletions

View File

@@ -2828,9 +2828,6 @@ class TestSalesInvoice(FrappeTestCase):
self.assertEqual(sales_invoice.items[0].item_tax_template, "_Test Account Excise Duty @ 10 - _TC")
self.assertEqual(sales_invoice.items[0].item_tax_rate, item_tax_map)
<<<<<<< HEAD
@change_settings("Selling Settings", {"enable_discount_accounting": 1})
=======
def test_item_tax_template_change_with_grand_total_discount(self):
"""
Test that when item tax template changes due to discount on Grand Total,
@@ -2885,8 +2882,7 @@ class TestSalesInvoice(FrappeTestCase):
si.submit()
@IntegrationTestCase.change_settings("Selling Settings", {"enable_discount_accounting": 1})
>>>>>>> f00aeec9b4 (Merge pull request #51787 from ljain112/fix-taxes-disc)
@change_settings("Selling Settings", {"enable_discount_accounting": 1})
def test_sales_invoice_with_discount_accounting_enabled(self):
discount_account = create_account(
account_name="Discount Account",

View File

@@ -42,13 +42,8 @@ class calculate_taxes_and_totals:
items = list(filter(lambda item: not item.get("is_alternative"), self.doc.get("items")))
return items
<<<<<<< HEAD
def calculate(self):
if not len(self._items):
=======
def calculate(self, ignore_tax_template_validation=False):
if not len(self.doc.items):
>>>>>>> f00aeec9b4 (Merge pull request #51787 from ljain112/fix-taxes-disc)
if not len(self._items):
return
self.discount_amount_applied = False