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

Expenses-reports: Expenses cannot be listed by payment-date #646

Open
n1smithy opened this issue Apr 17, 2024 · 16 comments
Open

Expenses-reports: Expenses cannot be listed by payment-date #646

n1smithy opened this issue Apr 17, 2024 · 16 comments
Labels

Comments

@n1smithy
Copy link

Setup

  • Version: v5.8.49-C157
  • Environment: Docker

Interface

  • Flutter: []

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or https://react.invoicing.co/demo? Demo-site is not available right now :(
  • Have you searched existing issues? Yes
  • Have you reported this to Slack/forum before posting? Forum
  • Have you inspected the logs in storage/logs/laravel.log for any errors? No

Describe the bug

Payments are only sorted or displayed by date, not by payment-date (!) even when this option is shown.

Steps To Reproduce

Create an expense by date 28th Jan. 2024. Set it to paid by payment-date of 2nd March 2024. Try to create a report for all expenses paid in March 24. The expense won't be shown.

Expected Behavior

Expenses should be listed by the right payment-date, not only by the (expense-) date.

@hillelcoren hillelcoren transferred this issue from invoiceninja/invoiceninja Apr 17, 2024
@hillelcoren
Copy link
Member

Hi,

Have you tried adding the expense's payment date column to the report to filter the data?

@n1smithy
Copy link
Author

Hi,

Have you tried adding the expense's payment date column to the report to filter the data?

Hi, Hillel,

that would be the second step before the first, because if one has expenses which were set up months earlier one had to take the whole bunch of expenses just to filter 3 months or less out. And then, as in my case, if one need a seperation between the tax-rates, there is no further filter-option.

@hillelcoren
Copy link
Member

I'm not sure I follow, the app supports filtering the reports by more than one column.

Are you using the reports or the export option on Settings > Import/Export?

@n1smithy
Copy link
Author

Reports in the Flutter-app to check the values.

@hillelcoren
Copy link
Member

Can you please help me understand your request?

@n1smithy
Copy link
Author

I set up a report with following settings:
Report: Expenses, Group: VAT-Group 1 (in German: Steuersatz 1), Date: Payment-date (!), Period: Last quarter

The problem is: expenses which were invoiced already one month (or maybe more) before the payment-date are not shown, because there's a bug (or maybe a not intuitive behavior) within the date-option/-filter.

@n1smithy
Copy link
Author

n1smithy commented Apr 18, 2024

The demo.invoiceninja.com is not working (get only a blanc page on both Firefox and Chromium); otherwise I had taken some screenshots

@hillelcoren
Copy link
Member

Ok, so the request is to be able to filter by multiple dates?

@n1smithy
Copy link
Author

No, only (or in first instance) by payment-date (not by expense-date)

@n1smithy
Copy link
Author

In the Flutter-web-app there are two possibilities to chose: expense-date or payment-date. But payment-date still filters (first) by the expense-date, so expenses which have a earlier expense-date are from the start on not involved even if their payment-date fits into the chosen period.

@hillelcoren
Copy link
Member

Each column should only filter it's respective value, if you filter by the payment date it shouldn't consider the expense date.

We'll work on fixing the demo, I suggest posting a screenshot when it's back online.

@n1smithy
Copy link
Author

n1smithy commented Apr 18, 2024

Maybe "filter" is the wrong term. Before filtering an output one has to define the data which shall be shown in the output (like the output of a database-query). So - for example - my database-query is something like:

SELECT payment_date (NOT expense_date or similar), payment_amount, tax_rate, tax_amount, total_amount (, …) FROM expenses;

One can set the date-value as date or payment-date in the Flutter-App at the top like in the following screenshot (top-right setting). But the problem is that in "Bereich" does not completely match "Datum: Zahlungsdatum (payment-date)".
Bildschirmfoto vom 2024-04-18 09-08-07

Sorry for my bumpy English. It's not my native language so I don't have to improvise sometimes.

@hillelcoren
Copy link
Member

It sounds like you're trying to filter by two dates but above you said that wasn't the case.

@n1smithy
Copy link
Author

n1smithy commented Apr 18, 2024

Nope, I just want an output of all my expenses that I have paid in the defined period – whether or not the expense-date is within the same period. But IN only shows those paid expenses, which expense-date (NOT the payment-date) is within the chosen period.

@hillelcoren
Copy link
Member

It sounds like you're saying when you set a filter for the payment date it references the expense date?

I think I'll need a screenshot where the interface is in English with data to understand.

@n1smithy
Copy link
Author

It sounds like you're saying when you set a filter for the payment date it references the expense date?

I think that's it. I'll do the screenshot after the demo is ready again. :-)

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

No branches or pull requests

2 participants