Skip to content

fix(account-invoices): Filter invoices with failed status and fix abnormal bill calculation#1205

Merged
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2655_fd502bb
Jun 25, 2026
Merged

fix(account-invoices): Filter invoices with failed status and fix abnormal bill calculation#1205
HaiHui886 merged 1 commit into
mainfrom
sync_mr_2655_fd502bb

Conversation

@csg-pr-bot

Copy link
Copy Markdown
Collaborator

Summary:

  • Filters out invoices with failed status across GetInvoiceByBillCycle, GetInvoicableList, and GetBillingSummary to ensure accurate "amount invoiced" statistics.
  • Adds a clamp-to-zero safeguard for the "uninvoiced amount" calculation to prevent negative values caused by historical data anomalies.

@csg-pr-bot

Copy link
Copy Markdown
Collaborator Author

Depends on #1204

@HaiHui886 HaiHui886 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@HaiHui886 HaiHui886 merged commit 9ffd450 into main Jun 25, 2026
7 checks passed
@HaiHui886 HaiHui886 deleted the sync_mr_2655_fd502bb branch June 25, 2026 06:01
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.

3 participants