mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
test: add test for return status in delivery note
(cherry picked from commit 445a255a7f)
This commit is contained in:
committed by
Mergify
parent
52e26b6da8
commit
422aec12cb
@@ -2581,6 +2581,7 @@ class TestDeliveryNote(FrappeTestCase):
|
|||||||
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"
|
||||||
@@ -2595,6 +2596,7 @@ class TestDeliveryNote(FrappeTestCase):
|
|||||||
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_sales_return_for_product_bundle(self):
|
def test_sales_return_for_product_bundle(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