mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Merge pull request #32344 from maharshivpatel/fix-payment-reconciliation-jv-cost-center
fix: consider cost center for journal entry in payment reconciliation tool
This commit is contained in:
@@ -357,7 +357,7 @@ class PaymentReconciliation(Document):
|
|||||||
def get_conditions(self, get_invoices=False, get_payments=False, get_return_invoices=False):
|
def get_conditions(self, get_invoices=False, get_payments=False, get_return_invoices=False):
|
||||||
condition = " and company = '{0}' ".format(self.company)
|
condition = " and company = '{0}' ".format(self.company)
|
||||||
|
|
||||||
if self.get("cost_center") and (get_invoices or get_payments or get_return_invoices):
|
if self.get("cost_center"):
|
||||||
condition = " and cost_center = '{0}' ".format(self.cost_center)
|
condition = " and cost_center = '{0}' ".format(self.cost_center)
|
||||||
|
|
||||||
if get_invoices:
|
if get_invoices:
|
||||||
|
|||||||
Reference in New Issue
Block a user