mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
@@ -49,6 +49,8 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
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]]
|
||||||
)
|
)
|
||||||
@@ -560,6 +562,8 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
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