test: fix payment reco tests
This commit is contained in:
@@ -38,7 +38,7 @@ class TestProcessDeferredAccounting(unittest.TestCase):
|
|||||||
si.save()
|
si.save()
|
||||||
si.submit()
|
si.submit()
|
||||||
|
|
||||||
process_deferred_accounting = doc = frappe.get_doc(
|
process_deferred_accounting = frappe.get_doc(
|
||||||
dict(
|
dict(
|
||||||
doctype="Process Deferred Accounting",
|
doctype="Process Deferred Accounting",
|
||||||
posting_date="2019-01-01",
|
posting_date="2019-01-01",
|
||||||
@@ -56,7 +56,7 @@ class TestProcessDeferredAccounting(unittest.TestCase):
|
|||||||
["Sales - _TC", 0.0, 33.85, "2019-01-31"],
|
["Sales - _TC", 0.0, 33.85, "2019-01-31"],
|
||||||
]
|
]
|
||||||
|
|
||||||
check_gl_entries(self, si.name, expected_gle, "2019-01-10")
|
check_gl_entries(self, si.name, expected_gle, "2019-01-31")
|
||||||
|
|
||||||
def test_pda_submission_and_cancellation(self):
|
def test_pda_submission_and_cancellation(self):
|
||||||
pda = frappe.get_doc(
|
pda = frappe.get_doc(
|
||||||
|
|||||||
@@ -2273,11 +2273,11 @@ def get_common_query(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if party_type == "Customer":
|
if party_type == "Customer":
|
||||||
q = q.select(payment_entry.paid_from_account_currency)
|
q = q.select((payment_entry.paid_from_account_currency).as_("currency"))
|
||||||
q = q.select(payment_entry.paid_from)
|
q = q.select(payment_entry.paid_from)
|
||||||
q = q.where(payment_entry.paid_from.isin(party_account))
|
q = q.where(payment_entry.paid_from.isin(party_account))
|
||||||
else:
|
else:
|
||||||
q = q.select(payment_entry.paid_to_account_currency)
|
q = q.select((payment_entry.paid_to_account_currency).as_("currency"))
|
||||||
q = q.select(payment_entry.paid_to)
|
q = q.select(payment_entry.paid_to)
|
||||||
q = q.where(payment_entry.paid_to.isin(party_account))
|
q = q.where(payment_entry.paid_to.isin(party_account))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user