mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
test: add test for return status in delivery note
This commit is contained in:
@@ -2608,6 +2608,7 @@ class TestDeliveryNote(IntegrationTestCase):
|
|||||||
dn = make_delivery_note(so.name)
|
dn = make_delivery_note(so.name)
|
||||||
dn.submit()
|
dn.submit()
|
||||||
self.assertEqual(dn.per_billed, 0)
|
self.assertEqual(dn.per_billed, 0)
|
||||||
|
self.assertEqual(dn.status, "To Bill")
|
||||||
|
|
||||||
si = make_sales_invoice(dn.name)
|
si = make_sales_invoice(dn.name)
|
||||||
si.location = "Test Location"
|
si.location = "Test Location"
|
||||||
@@ -2622,6 +2623,7 @@ class TestDeliveryNote(IntegrationTestCase):
|
|||||||
dn.load_from_db()
|
dn.load_from_db()
|
||||||
self.assertEqual(dn.per_billed, 100)
|
self.assertEqual(dn.per_billed, 100)
|
||||||
self.assertEqual(dn.per_returned, 100)
|
self.assertEqual(dn.per_returned, 100)
|
||||||
|
self.assertEqual(returned.status, "Return")
|
||||||
|
|
||||||
def test_packed_item_serial_no_status(self):
|
def test_packed_item_serial_no_status(self):
|
||||||
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle
|
from erpnext.selling.doctype.product_bundle.test_product_bundle import make_product_bundle
|
||||||
|
|||||||
Reference in New Issue
Block a user