mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
test(Payment Entry): account type is set (#47071)
This commit is contained in:
@@ -58,6 +58,8 @@ class TestPaymentEntry(IntegrationTestCase):
|
|||||||
pe.insert()
|
pe.insert()
|
||||||
pe.submit()
|
pe.submit()
|
||||||
|
|
||||||
|
self.assertEqual(pe.paid_to_account_type, "Cash")
|
||||||
|
|
||||||
expected_gle = dict(
|
expected_gle = dict(
|
||||||
(d[0], d) for d in [["Debtors - _TC", 0, 1000, so.name], ["_Test Cash - _TC", 1000.0, 0, None]]
|
(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.insert()
|
||||||
pe.submit()
|
pe.submit()
|
||||||
|
|
||||||
|
self.assertEqual(pe.paid_from_account_type, "Bank")
|
||||||
|
|
||||||
outstanding_amount, status = frappe.db.get_value(
|
outstanding_amount, status = frappe.db.get_value(
|
||||||
"Purchase Invoice", pi.name, ["outstanding_amount", "status"]
|
"Purchase Invoice", pi.name, ["outstanding_amount", "status"]
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user