From fb9cb779f475f378318957eea63ea10cb26fa053 Mon Sep 17 00:00:00 2001 From: Raffael Meyer <14891507+barredterra@users.noreply.github.com> Date: Mon, 14 Apr 2025 19:06:25 +0200 Subject: [PATCH] test(Payment Entry): account type is set (#47071) --- erpnext/accounts/doctype/payment_entry/test_payment_entry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/accounts/doctype/payment_entry/test_payment_entry.py b/erpnext/accounts/doctype/payment_entry/test_payment_entry.py index bb8cc15f1d4..99ebcc695bc 100644 --- a/erpnext/accounts/doctype/payment_entry/test_payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/test_payment_entry.py @@ -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"] )