Skip to content

Commit

Permalink
[FIX] account_statement_import_online_qonto : fix import
Browse files Browse the repository at this point in the history
Fix accounting entry number
fix statement line description
fix foreign currency import
  • Loading branch information
florian-dacosta committed Sep 23, 2024
1 parent 2e0ef0a commit e2ef93a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ def _qonto_prepare_statement_line(
vals_line = {
"sequence": sequence,
"date": date,
"name": " - ".join([x for x in payment_ref_list if x]) or "/",
"ref": transaction["reference"],
"payment_ref": " - ".join([x for x in payment_ref_list if x]) or "/",
"narration": transaction["note"],
"transaction_type": transaction["operation_type"],
"unique_import_id": transaction["transaction_id"],
"amount": transaction["amount"] * side,
}
Expand All @@ -153,7 +154,7 @@ def _qonto_prepare_statement_line(
if journal_currency.id != line_currency_id:
vals_line.update(
{
"currency_id": line_currency_id,
"foreign_currency_id": line_currency_id,
"amount_currency": transaction["local_amount"] * side,
}
)
Expand Down

0 comments on commit e2ef93a

Please sign in to comment.