-
-
Notifications
You must be signed in to change notification settings - Fork 55
Transaction Reference Number is not returned by the parser #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There should be a Line 135 in 2b8b865
We can see an example with this sta file here:
Which generates this data:
Do you have a specific example where this is not working? |
You can find the transaction reference as follow:
But for instance my bank exports several transaction references at the same time (one for each account). And with the Try with this example:
I think this is a bug and I see 2 solutions:
|
You're right. For some files this is indeed not a usable situation. Option 2 is quite involved so I've opted for adding a transformer to take care of option 1. I'm still finalizing the code so the tests keep on working without issues but the current develop branch shows the new behaviour. |
Added processor to fix #102 v4.30.0 # -----BEGIN PGP SIGNATURE----- # # iQIzBAABCgAdFiEEFJMl/RWQTpxOuJ6V6BRE6c4faV0FAmQ34hYACgkQ6BRE6c4f # aV3a7w//UMH7KR0iXpkRL4+G/D6ZVg1U+iicbyhCYQmH+oo+JLCzBspq488G6jWg # AwB6HUadJ3gYSO2KL11jjhLqhQYorzYQ/jYrYBR65xzwTVObR8vm+YLAPgLI9zT1 # yFlOiTj9aYYcvPc8HVCxXvUfQJR19bhCqiNx9QvDgNlkYNxCwZm9jw6aeDiVROIx # 9PmmZSfNQhhNdxbx18qjfcOtyaQ+2BCjsNfdHOLDh3seZhDeBb781XWB+GHX379Q # ARJSi2em4edqy9EME5RFT3nKfK2yvSz+xV7e0+DCs7FP2fis99H1I8Ps6zATED+K # frA1xAaBIZO6mP7YhYawe7hjlEWVLm5eyRzsAbu08QRyJ5emF7Jg0NsqOgA6yzbE # 7X0X48+KUEY9g1q8z+YCM6OMMJz7akGACsB28queKPRNpvC+S9L03v6TmrGkf7up # Unxul9zmPvdGJaEYgSv+lh65RGDfY3jrVdyxlHwSLR6tqeogS3TguRPgVgp+lPbq # qIEPE2GZJKoAPtqd0KE4RzItbvp6t+/2RCS5HOesWtgluXzrIp67VJ+XrPxCSsJ+ # 1uuOwTeBU1u70t5GNC8m6F2clRE8EL4avb+snnbQADNv48EhrjU4OPFiI7kwz8pG # Vdz9LXutX6h7RLIgYxeJQSmHU9LwSqU2+JY4PO/SvZeZb79/dmk= # =IW9G # -----END PGP SIGNATURE----- # gpg: Signature made Thu Apr 13 13:05:58 2023 CEST # gpg: using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D # gpg: Good signature from "Rick van Hattem <[email protected]>" [ultimate] # gpg: aka "[jpeg image of size 9662]" [ultimate]
The new release is online. Every transaction should have the relevant Lines 264 to 267 in 026859d
|
Amazing fix! This same issue happens when a single mt940 file contains transactions for several bank accounts. The I implemented a more complex workaround to separate the transactions per bank account. But with this post processor, it's possible to include that information in the transaction data itself. So the parsing becomes much easier. Now don't forget that the global |
The Transaction object does not contain the mandatory SWIFT Transaction Reference Number (Tag :20:). It only includes the field called 'bank_reference', which appears to be extracted from the section with Tag :61:. These two numbers are not the same, and I would imagine many users require at least the Tag 20 entry.
The text was updated successfully, but these errors were encountered: