mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +00:00
fix failing tests
This commit is contained in:
@@ -206,6 +206,7 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
# additional discount
|
# additional discount
|
||||||
si.discount_amount = 100
|
si.discount_amount = 100
|
||||||
si.apply_discount_on = 'Net Total'
|
si.apply_discount_on = 'Net Total'
|
||||||
|
si.payment_schedule = []
|
||||||
|
|
||||||
si.save()
|
si.save()
|
||||||
|
|
||||||
@@ -218,6 +219,7 @@ class TestSalesInvoice(unittest.TestCase):
|
|||||||
# additional discount on grand total
|
# additional discount on grand total
|
||||||
si.discount_amount = 100
|
si.discount_amount = 100
|
||||||
si.apply_discount_on = 'Grand Total'
|
si.apply_discount_on = 'Grand Total'
|
||||||
|
si.payment_schedule = []
|
||||||
|
|
||||||
si.save()
|
si.save()
|
||||||
|
|
||||||
@@ -1344,6 +1346,11 @@ def create_sales_invoice(**args):
|
|||||||
si.insert()
|
si.insert()
|
||||||
if not args.do_not_submit:
|
if not args.do_not_submit:
|
||||||
si.submit()
|
si.submit()
|
||||||
|
else:
|
||||||
|
si.payment_schedule = []
|
||||||
|
else:
|
||||||
|
si.payment_schedule = []
|
||||||
|
|
||||||
return si
|
return si
|
||||||
|
|
||||||
test_dependencies = ["Journal Entry", "Contact", "Address"]
|
test_dependencies = ["Journal Entry", "Contact", "Address"]
|
||||||
|
|||||||
Reference in New Issue
Block a user