fix: test total unallocated amount in payment

This commit is contained in:
Gursheen Anand 2023-11-15 13:32:23 +05:30
parent 09f9764bbd
commit 2499675ad1

View File

@ -1347,6 +1347,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},