Skip to content

Commit

Permalink
fix: test total unallocated amount in payment
Browse files Browse the repository at this point in the history
(cherry picked from commit 2499675)
  • Loading branch information
GursheenK authored and mergify[bot] committed Nov 16, 2023
1 parent 376e096 commit cb4bb5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/accounts/doctype/payment_entry/test_payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,8 @@ def test_payment_against_partial_return_invoice(self):
)
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},
Expand Down

0 comments on commit cb4bb5b

Please sign in to comment.