Use transaction date as origin date when value date is empty
issue11292 review366831002
This commit is contained in:
+4
-1
@@ -74,7 +74,10 @@ class ImportStatement(metaclass=PoolMeta):
|
||||
pool = Pool()
|
||||
Origin = pool.get('account.statement.origin')
|
||||
origin = Origin()
|
||||
origin.date = transaction.valueDate
|
||||
try:
|
||||
origin.date = transaction.valueDate
|
||||
except ValueError:
|
||||
origin.date = transaction.transactionDate
|
||||
origin.amount = transaction.amount
|
||||
descriptions = []
|
||||
for item in transaction.optionalItems:
|
||||
|
||||
Reference in New Issue
Block a user