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

fix: invoices query payment_overdue filter #2340

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

ancorcruz
Copy link
Contributor

@ancorcruz ancorcruz commented Jul 26, 2024

Context

Given payment_overdue filter is false, InvoicesQuery ignores the filter and return all invoices without consider their payment_overdue value, while it should only return payment_overdue == false invoices.

Description

This change fixes the filter by providing the proper scoping base on the value of the filter.

 # Context

Given `payment_overdue` filter is false, `InvoicesQuery` ignores the
filter and return all invoices without consider their `payment_overdue`
value, while it should only return `payment_overdue` == false invoices.

 # Description

This change fixes the filter by providing the proper scoping base on the
value of the filter.
@ancorcruz ancorcruz self-assigned this Jul 26, 2024
Copy link
Collaborator

@rsempe rsempe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ancorcruz ancorcruz merged commit a752edb into main Jul 29, 2024
6 checks passed
@ancorcruz ancorcruz deleted the fix-invoices-query-payment-overdue-filter branch July 29, 2024 09:58
ancorcruz added a commit that referenced this pull request Jul 29, 2024
abdussamadbello pushed a commit to abdussamadbello/lago-api that referenced this pull request Aug 8, 2024
## Context

Given `payment_overdue` filter is false, `InvoicesQuery` ignores the
filter and return all invoices without consider their `payment_overdue`
value, while it should only return `payment_overdue` == false invoices.

## Description

This change fixes the filter by providing the proper scoping base on the
value of the filter.
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