fix: test total unallocated amount in payment

(cherry picked from commit 2499675ad121ab370f672e6f9ffdcda3c8c76b8e)
This commit is contained in:
Gursheen Anand 2023-11-15 13:32:23 +05:30 committed by Mergify
parent 376e09680c
commit cb4bb5b4ee

View File

@ -1307,6 +1307,8 @@ class TestPaymentEntry(FrappeTestCase):
)
pe.save()
pe.submit()
self.assertEqual(pe.total_allocated_amount, 60)
self.assertEqual(pe.unallocated_amount, 940)
self.voucher_no = pe.name
self.expected_gle = [
{"account": "Debtors - _TC", "debit": 40.0, "credit": 0.0},