[FIX] duplicate unique_import_id upon multiple entries in one transaction
When dealing with a statement that has multiple entries for the same transaction, the unique_import_id is set the same for all these entries, hence importing such a statement produces an error of bank account transaction can be imported only once. This solves that issue.
BEFORE
NL20ABNA1234567890-0123456789.2022-06-280001
NL20ABNA1234567890-0123456789.2022-06-280002
NL20ABNA1234567890-0123456789.2022-06-280003
NL20ABNA1234567890-0123456789.2022-06-280004
NL20ABNA1234567890-0123456789.2022-06-280005
NL20ABNA1234567890-0123456789.2022-06-280006
NL20ABNA1234567890-0123456789.2022-06-280007
NL20ABNA1234567890-0123456789.2022-06-280008
NL20ABNA1234567890-0123456789.2022-06-280009
NL20ABNA1234567890-0123456789.2022-06-280010
NL20ABNA1234567890-0123456789.2022-06-280011
NL20ABNA1234567890-0123456789.2022-06-280011 # fails
NL20ABNA1234567890-0123456789.2022-06-280011
NL20ABNA1234567890-0123456789.2022-06-280011
AFTER:
NL20ABNA1234567890-0123456789.2022-06-280001
NL20ABNA1234567890-0123456789.2022-06-280002
NL20ABNA1234567890-0123456789.2022-06-280003
NL20ABNA1234567890-0123456789.2022-06-280004
NL20ABNA1234567890-0123456789.2022-06-280005
NL20ABNA1234567890-0123456789.2022-06-280006
NL20ABNA1234567890-0123456789.2022-06-280007
NL20ABNA1234567890-0123456789.2022-06-280008
NL20ABNA1234567890-0123456789.2022-06-280009
NL20ABNA1234567890-0123456789.2022-06-280010
NL20ABNA1234567890-0123456789.2022-06-280011
NL20ABNA1234567890-0123456789.2022-06-280011-1
NL20ABNA1234567890-0123456789.2022-06-280011-2
NL20ABNA1234567890-0123456789.2022-06-280011-3
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 8.0-ocabot-merge-pr-475-by-dreispt-bump-patch, awaiting test results.
Congratulations, your PR was merged at 1b0bfc7e19c72589c18d26e8b5377dd967e10917. Thanks a lot for contributing to OCA. ❤️