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

misc(fee): Delete zero amount finalized fees #3020

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

vincent-pochet
Copy link
Collaborator

Description

This PR removes the charge fees attached to finalized or voided invoices and having amount = 0.

In a close future, these fees will not be generated anymore, and the logic built around it will be refactored (adjusted fees, daily_usage computation...)

@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch from 3db1342 to c076121 Compare January 3, 2025 14:31
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch 10 times, most recently from 75cecc5 to 4ad3b8a Compare January 6, 2025 09:50
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch 3 times, most recently from 20876ed to 5692302 Compare January 9, 2025 10:53
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch 3 times, most recently from d74c0ef to de29802 Compare January 16, 2025 09:44
vincent-pochet added a commit that referenced this pull request Jan 16, 2025
## Description

This PR follow #3020 the goal is
to stop generating empty fees (0 units, amount and events without
adjustments or true up fees).

The reason behind this change is scalability as for now, depending on
the plan setups, it appears that 98% of generated fees does not have an
amount...

**NOTE:** a new feature will improve the edit fees feature since this PR
will prevent creation of adjustment fees from the UI if no event have
been received for a specific billable metric on a period.
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch from de29802 to b808087 Compare January 16, 2025 10:18
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch 2 times, most recently from 1f5cf35 to 37c21e1 Compare January 24, 2025 10:00
vincent-pochet added a commit that referenced this pull request Jan 27, 2025
#3059) (#3068)

## Description

This PR follow #3020 the goal is
to stop generating empty fees (0 units, amount and events without
adjustments or true up fees).

The reason behind this change is scalability as for now, depending on
the plan setups, it appears that 98% of generated fees does not have an
amount...

**NOTE:** a new feature will improve the edit fees feature since this PR
will prevent creation of adjustment fees from the UI if no event have
been received for a specific billable metric on a period.
@vincent-pochet vincent-pochet force-pushed the misc-cleanup-zero-amount-fees branch from 37c21e1 to 9e1f1f7 Compare January 27, 2025 14:21
@vincent-pochet vincent-pochet merged commit 43be8dc into main Jan 27, 2025
6 checks passed
@vincent-pochet vincent-pochet deleted the misc-cleanup-zero-amount-fees branch January 27, 2025 14:36
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.

5 participants