Fix ZeroDivisionError #557
Reference in New Issue
Block a user
Delete Branch "fix/divide-by-zero-sum-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's been a little while since I've had time to check in on this project, I pulled the latest changes and ran the migration and ran into a ZeroDivisionError.
I didn't have any liabilities set so the sum was equal to 0.
This change fixes the error so that page can render:

@JoshAntBrown thanks for the fix, I'll go ahead and merge this in to get things working and I opened up #558 to map out a long-term solution. If nobody grabs that, I'll circle back to it next week after I'm done with multi-currency stuff.