test: enable automatically_fetch_payment_terms_from_quotation

(cherry picked from commit 5611e9168e)
This commit is contained in:
SowmyaArunachalam
2026-01-28 22:24:59 +05:30
committed by Mergify
parent 1470a79a1b
commit 8f26168a55

View File

@@ -182,6 +182,10 @@ class TestQuotation(IntegrationTestCase):
self.assertTrue(quotation.payment_schedule)
@IntegrationTestCase.change_settings(
"Selling Settings",
{"automatically_fetch_payment_terms_from_quotation": 1},
)
def test_make_sales_order_terms_copied(self):
from erpnext.selling.doctype.quotation.quotation import make_sales_order
@@ -326,6 +330,10 @@ class TestQuotation(IntegrationTestCase):
"Accounts Settings",
{"add_taxes_from_item_tax_template": 0, "add_taxes_from_taxes_and_charges_template": 0},
)
@IntegrationTestCase.change_settings(
"Selling Settings",
{"automatically_fetch_payment_terms_from_quotation": 1},
)
def test_make_sales_order_with_terms(self):
from erpnext.selling.doctype.quotation.quotation import make_sales_order