mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] account_statement_import_online_qonto : fix import
Fix accounting entry number fix statement line description fix foreign currency import
This commit is contained in:
@@ -125,8 +125,9 @@ class OnlineBankStatementProviderQonto(models.Model):
|
|||||||
vals_line = {
|
vals_line = {
|
||||||
"sequence": sequence,
|
"sequence": sequence,
|
||||||
"date": date,
|
"date": date,
|
||||||
"name": " - ".join([x for x in payment_ref_list if x]) or "/",
|
"payment_ref": " - ".join([x for x in payment_ref_list if x]) or "/",
|
||||||
"ref": transaction["reference"],
|
"narration": transaction["note"],
|
||||||
|
"transaction_type": transaction["operation_type"],
|
||||||
"unique_import_id": transaction["transaction_id"],
|
"unique_import_id": transaction["transaction_id"],
|
||||||
"amount": transaction["amount"] * side,
|
"amount": transaction["amount"] * side,
|
||||||
}
|
}
|
||||||
@@ -153,7 +154,7 @@ class OnlineBankStatementProviderQonto(models.Model):
|
|||||||
if journal_currency.id != line_currency_id:
|
if journal_currency.id != line_currency_id:
|
||||||
vals_line.update(
|
vals_line.update(
|
||||||
{
|
{
|
||||||
"currency_id": line_currency_id,
|
"foreign_currency_id": line_currency_id,
|
||||||
"amount_currency": transaction["local_amount"] * side,
|
"amount_currency": transaction["local_amount"] * side,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user