Use transaction date for accounting date when importing AEB43 statement

Closes #12886
(grafted from 8ec4668ff251e147fdd80e25b65de4201811c5df)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2024-01-02 17:02:23 +01:00
parent 7103966e82
commit 4840f76891
+1 -4
View File
@@ -74,10 +74,7 @@ class ImportStatement(metaclass=PoolMeta):
pool = Pool()
Origin = pool.get('account.statement.origin')
origin = Origin()
try:
origin.date = transaction.valueDate
except ValueError:
origin.date = transaction.transactionDate
origin.date = transaction.transactionDate
origin.amount = transaction.amount
descriptions = []
for item in transaction.optionalItems: