Skip to content

Bug: Loan transfers dollar sum in cash flow chart is doubled #2466

Description

@nicholas-l

Before you start (required)

General checklist

  • I have removed personal / sensitive data from screenshots and logs
  • I have searched existing issues and discussions to ensure this is not a duplicate issue

How are you using Sure?

  • I was a paying Maybe customer (hosted version)
  • I use it on PikaPod, Umbrel or similar (VPS included)
  • I am a self-hosted user (local only)

Self hoster checklist

Paying, hosted users should delete this entire section.

If you are a self-hosted user, please complete all of the information below. Issues with incomplete information will be marked as Needs Info to help our small team prioritize bug fixes.

  • Self hosted app commit SHA (find in user menu): [enter commit sha here]
    • I have confirmed that my app's commit is the latest version of Sure
  • Where are you hosting?
    • Render
    • Docker Compose
    • Umbrel
    • PikaPod
    • Other (please specify)

Bug description

The cashflow chart and outflows is displaying double the amount for transfers to loan accounts. It seems that both sides of the transfer is being summed on the home page, displaying double the amount for transfers to loan accounts.

To Reproduce

Be as specific as possible so Sure contributors can quickly reproduce the bug you're experiencing.

Steps to reproduce the behavior:

  1. Create/sync a transfer from a checking account to a loan account
  2. Set the category as "Loan Payment" (or another category)
  3. Go to the Home page
  4. Cash flow should show category "Loan payment" that has double the sum from the transfer above.
  5. The same should occur for Outflows

Expected behavior

What is the intended behavior that you would expect?

Only the transfer amount should be summed not both transactions.

Screenshots and/or recordings

We highly recommend providing additional context with screenshots and/or screen recordings. This will significantly improve the chances of the bug being addressed and fixed quickly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions