mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
style: Remove spaces introduced via merge conflict
(cherry picked from commit 4b4b176fcf)
# Conflicts:
# erpnext/accounts/doctype/payment_entry/test_payment_entry.py
This commit is contained in:
@@ -1258,6 +1258,42 @@ class TestPaymentEntry(FrappeTestCase):
|
||||
self.assertEqual(references[2].voucher_no, si2.name)
|
||||
self.assertEqual(references[1].payment_term, "Basic Amount Receivable")
|
||||
self.assertEqual(references[2].payment_term, "Tax Receivable")
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
def test_receive_payment_from_payable_party_type(self):
|
||||
pe = create_payment_entry(
|
||||
party_type="Supplier",
|
||||
party="_Test Supplier",
|
||||
payment_type="Receive",
|
||||
paid_from="Creditors - _TC",
|
||||
paid_to="_Test Cash - _TC",
|
||||
save=True,
|
||||
submit=True,
|
||||
)
|
||||
self.voucher_no = pe.name
|
||||
self.expected_gle = [
|
||||
{"account": "_Test Cash - _TC", "debit": 1000.0, "credit": 0.0},
|
||||
{"account": "Creditors - _TC", "debit": 0.0, "credit": 1000.0},
|
||||
]
|
||||
self.check_gl_entries()
|
||||
|
||||
def check_gl_entries(self):
|
||||
gle = frappe.qb.DocType("GL Entry")
|
||||
gl_entries = (
|
||||
frappe.qb.from_(gle)
|
||||
.select(
|
||||
gle.account,
|
||||
gle.debit,
|
||||
gle.credit,
|
||||
)
|
||||
.where((gle.voucher_no == self.voucher_no) & (gle.is_cancelled == 0))
|
||||
.orderby(gle.account)
|
||||
).run(as_dict=True)
|
||||
for row in range(len(self.expected_gle)):
|
||||
for field in ["account", "debit", "credit"]:
|
||||
self.assertEqual(self.expected_gle[row][field], gl_entries[row][field])
|
||||
>>>>>>> 4b4b176fcf (style: Remove spaces introduced via merge conflict)
|
||||
|
||||
|
||||
def create_payment_entry(**args):
|
||||
|
||||
Reference in New Issue
Block a user