test: add test for return status in delivery note

This commit is contained in:
Pugazhendhi Velu
2025-12-03 13:19:59 +00:00
parent af212f520d
commit 445a255a7f

View File

@@ -2608,6 +2608,7 @@ class TestDeliveryNote(IntegrationTestCase):
dn = make_delivery_note(so.name)
dn.submit()
self.assertEqual(dn.per_billed, 0)
self.assertEqual(dn.status, "To Bill")
si = make_sales_invoice(dn.name)
si.location = "Test Location"
@@ -2622,6 +2623,7 @@ class TestDeliveryNote(IntegrationTestCase):
dn.load_from_db()
self.assertEqual(dn.per_billed, 100)
self.assertEqual(dn.per_returned, 100)
self.assertEqual(returned.status, "Return")
def test_packed_item_serial_no_status(self):
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle