refactor(test): return invoice will have -ve outstanding

(cherry picked from commit b30c1e1abf)
This commit is contained in:
ruthra kumar
2023-08-13 15:48:25 +05:30
committed by Mergify
parent 014fcfa611
commit 43b40d92e5

View File

@@ -1528,8 +1528,8 @@ class TestSalesInvoice(FrappeTestCase):
self.assertEqual(party_credited, 1000)
# Check outstanding amount
self.assertFalse(si1.outstanding_amount)
self.assertEqual(frappe.db.get_value("Sales Invoice", si.name, "outstanding_amount"), 1500)
self.assertEqual(frappe.db.get_value("Sales Invoice", si1.name, "outstanding_amount"), -1000)
self.assertEqual(frappe.db.get_value("Sales Invoice", si.name, "outstanding_amount"), 2500)
def test_gle_made_when_asset_is_returned(self):
create_asset_data()