test(Payment Entry): account type is set (#47071)

This commit is contained in:
Raffael Meyer
2025-04-14 19:06:25 +02:00
committed by GitHub
parent a854beeb40
commit fb9cb779f4

View File

@@ -58,6 +58,8 @@ class TestPaymentEntry(IntegrationTestCase):
pe.insert()
pe.submit()
self.assertEqual(pe.paid_to_account_type, "Cash")
expected_gle = dict(
(d[0], d) for d in [["Debtors - _TC", 0, 1000, so.name], ["_Test Cash - _TC", 1000.0, 0, None]]
)
@@ -569,6 +571,8 @@ class TestPaymentEntry(IntegrationTestCase):
pe.insert()
pe.submit()
self.assertEqual(pe.paid_from_account_type, "Bank")
outstanding_amount, status = frappe.db.get_value(
"Purchase Invoice", pi.name, ["outstanding_amount", "status"]
)