Skip to content

Commit

Permalink
fix: incorrect cost_center on AR/AP report
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Jul 26, 2024
1 parent 3023399 commit 3e19041
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def init_voucher_balance(self):
paid_in_account_currency=0.0,
credit_note_in_account_currency=0.0,
outstanding_in_account_currency=0.0,
cost_center=ple.cost_center,
)
self.get_invoices(ple)

Expand Down Expand Up @@ -253,7 +254,7 @@ def update_voucher_balance(self, ple):
row.paid -= amount
row.paid_in_account_currency -= amount_in_account_currency

if ple.cost_center:
if not row.cost_center and ple.cost_center:
row.cost_center = str(ple.cost_center)

def update_sub_total_row(self, row, party):
Expand Down

0 comments on commit 3e19041

Please sign in to comment.