fix(test): update_prevdoc_status

This commit is contained in:
Devin Slauenwhite 2022-05-16 19:45:59 -04:00
parent 47f867b77a
commit 4d0fa85a75

View File

@ -1087,6 +1087,9 @@ class TestDeliveryNote(FrappeTestCase):
sr = make_return_doc("Delivery Note", dn.name)
sr.submit()
returned = frappe.get_doc("Delivery Note", sr.name)
returned.update_prevdoc_status()
# Test that item qty is not reserved on sales return.
self.assertEqual(get_reserved_qty(soi.item_code, soi.warehouse), 0)