Skip to content
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

Two bugs #1

Open
wizofaus opened this issue Jul 20, 2016 · 2 comments
Open

Two bugs #1

wizofaus opened this issue Jul 20, 2016 · 2 comments

Comments

@wizofaus
Copy link

Your calculation of the net total is wrong (needs to be Math.Abs(debit - credit), and the Indicator field appears to need

    [FieldNullValue(Indicator.None)]

for it to deserialize properly.
Also you get some strange errors deserializing if you use negative amounts.

@stuarta0
Copy link
Owner

Do you have a redacted file that I can test with? I'm not sure whether it's all related to the negative amounts issue you mention, or whether the spec for net total shouldn't include other record transaction codes that aren't credit or debit.

@wizofaus
Copy link
Author

I changed the code already so the files I’m generating are correct – the net should be the difference between the debit and credit totals, as per the spec (though you lose the sign, so there’s no way of telling from that amount whether the debits totalled higher or lower than the credits).
The negative amounts problem is unrelated – aba files aren’t intended to store negative amounts.

From: Stuart Attenborrow [mailto:notifications@github.com]
Sent: Wednesday, 20 July 2016 4:56 PM
To: stuarta0/banking-au banking-au@noreply.github.com
Cc: wizofaus d.nicholson@1paycorp.com; Author author@noreply.github.com
Subject: Re: [stuarta0/banking-au] Two bugs (#1)

Do you have a redacted file that I can test with? I'm not sure whether it's all related to the negative amounts issue you mention, or whether the spec for net total shouldn't include other record transaction codes that aren't credit or debit.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/1#issuecomment-233857401, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFHaAZqoutCEdYynIEYrD76oxyCUsYO0ks5qXcZ7gaJpZM4JQbhj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants