Skip to content

Commit

Permalink
FIX eurofactor: switch account
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Nov 8, 2024
1 parent ce3f123 commit f68d2fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _prepare_journal_entry_vals_list(self):
Command.create(
{
"date": fields.date.today(),
"account_id": fact_journal.factoring_holdback_account_id.id,
"account_id": fact_journal.factoring_current_account_id.id,
"name": x.name,
"debit": x.credit,
"credit": x.debit,
Expand All @@ -39,7 +39,7 @@ def _prepare_journal_entry_vals_list(self):
name = f"{self.display_name}{self.id}"
line = {
"date": fields.date.today(),
"account_id": fact_journal.factoring_current_account_id.id,
"account_id": fact_journal.factoring_holdback_account_id.id,
"name": f"total {name}",
"debit": sum(self.line_ids.mapped("debit")),
"credit": sum(self.line_ids.mapped("credit")),
Expand Down

0 comments on commit f68d2fe

Please sign in to comment.