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

Round adjustment transactions to budget's decimal digits (fixes #23) #25

Merged
merged 1 commit into from
Mar 15, 2020

Conversation

borsboom
Copy link
Owner

@wizonesolutions I believe this will prevent "cycles" like you experienced. When I fixed #8, I tried to be smart and have adjustment transactions fix difference accounts with non-zero-sub-cent balances by ensuring the final balance would be properly rounded. This required creating a non-zero-sub-cent transaction in order to do so. But it looks like that backfired in your case and it's clear that we simply can't trust the numbers coming out of the YNAB API if there are any non-zero-sub-cent values. Therefore, with this change we will no longer do that, and there is no longer any case where this tool will create a non-zero-sub-cent transaction.

Also skip adjustment transactions less than two of the smallest currency
unit (e.g. two cents).
@borsboom borsboom merged commit 9743713 into develop Mar 15, 2020
@wizonesolutions
Copy link

The issue reoccurred, so trying the new release with this now.

@borsboom borsboom deleted the 23-round-adjustments branch April 18, 2021 16:42
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

Successfully merging this pull request may close these issues.

2 participants