mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-13 03:58:47 +00:00
fix(test): update_prevdoc_status
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user