Skip to content

Commit

Permalink
fix: do not set cost_center update_voucher_balance as it is set in in…
Browse files Browse the repository at this point in the history
…it_voucher_balance

(cherry picked from commit 3b36ce5)
  • Loading branch information
vishakhdesai authored and mergify[bot] committed Dec 23, 2024
1 parent 4c5540a commit 19a8ea2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def build_voucher_dict(self, ple):
paid_in_account_currency=0.0,
credit_note_in_account_currency=0.0,
outstanding_in_account_currency=0.0,
cost_center=ple.cost_center,
)

def init_voucher_balance(self):
Expand Down Expand Up @@ -278,9 +277,6 @@ def update_voucher_balance(self, ple):
row.paid -= amount
row.paid_in_account_currency -= amount_in_account_currency

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

def update_sub_total_row(self, row, party):
total_row = self.total_row_map.get(party)

Expand Down

0 comments on commit 19a8ea2

Please sign in to comment.