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

feat(invoice): Avoid generating 0 amount charge fees #3032

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Jan 7, 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 skip-zero-amount-fees branch 5 times, most recently from 4d9a1da to c063871 Compare January 9, 2025 14:02
@vincent-pochet vincent-pochet marked this pull request as ready for review January 9, 2025 14:51
@vincent-pochet vincent-pochet changed the title feat(invoice): Avoid generating 0 amount fees feat(invoice): Avoid generating 0 amount charge fees Jan 9, 2025
@vincent-pochet vincent-pochet force-pushed the skip-zero-amount-fees branch 2 times, most recently from bd3eed2 to 4cb5eae Compare January 10, 2025 08:21
@vincent-pochet vincent-pochet force-pushed the skip-zero-amount-fees branch 2 times, most recently from 3e92f85 to 6dacb67 Compare January 16, 2025 08:42
@vincent-pochet vincent-pochet merged commit 36315a9 into main Jan 16, 2025
6 checks passed
@vincent-pochet vincent-pochet deleted the skip-zero-amount-fees branch January 16, 2025 10:12
vincent-pochet added a commit that referenced this pull request Jan 16, 2025
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.
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