invoiceninja / admin-portal

Invoice Ninja: Desktop/mobile admin portal built with Flutter
https://demo.invoiceninja.com
Other
1.56k stars 521 forks source link

Incorrect Frequency in Recurring Expenses Report #628

Closed brockcaldwell closed 4 months ago

brockcaldwell commented 5 months ago

Setup

Interface

Checklist

Describe the bug

Viewing the Recurring Expense report lists all expense frequencies as monthly. No other value will display there.

Steps To Reproduce

  1. Add a new Recurring Expense with Frequency = "Annually" (or anything besides monthly)
  2. Load the Recurring Expense report
  3. Notice how the record is displayed with Frequency = "Monthly", even though that is the incorrect value.

Expected Behavior

Display the proper Frequency value for the record.

Additional context

N/a

Screenshots

N/a

Logs

N/a

hillelcoren commented 4 months ago

Thanks for reporting this!

brockcaldwell commented 4 months ago

Thanks for the quick action! I also just noticed something else. On the Recurring Expenses Report, it shows the "Start Date" as the current date. In the code you just updated, it looks like you changed the variable from "invoice" to "expense." Does the same need to happen for the "start_date" on the line below? (I can open a separate issue, if needed.)

hillelcoren commented 4 months ago

Thank you, fixed!

brockcaldwell commented 4 months ago

Hi Hillel,

Appreciate the work you did on this, but it appears the issue is still there after updating. Another user is reporting the same issue on the hosted version: https://github.com/invoiceninja/invoiceninja/pull/9266

hillelcoren commented 4 months ago

Which version of the app are you using? The hosted platform is running an older version of the app.

brockcaldwell commented 4 months ago

I cannot speak for the individual on the Hosted version, but I'm running: v5.8.24-M154

hillelcoren commented 4 months ago

You need to update the macOS app to the latest version.

brockcaldwell commented 4 months ago

Gotcha-

I just updated the server to v5.8.27 & updated in the Mac App Store and it is working (both in browser and app)!

Thanks so much!

hillelcoren commented 4 months ago

Glad to hear it, thanks for catching this!