Skip to content

Commit

Permalink
fix: payment reconciliation tool consider cost_center for JV
Browse files Browse the repository at this point in the history
We need to consider cost center in all four cases of get_conditions. I have removed check in if statement for get_invoices, get_payments, get_return_invoices as it is not required.
  • Loading branch information
maharshivpatel committed Sep 25, 2022
1 parent 09cd480 commit 9f98891
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -332,7 +332,7 @@ def validate_allocation(self):
def get_conditions(self, get_invoices=False, get_payments=False, get_return_invoices=False):
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)

if get_invoices:
Expand Down

0 comments on commit 9f98891

Please sign in to comment.