Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

FroeMic
Copy link
Contributor

@FroeMic FroeMic commented Sep 29, 2025

What does this PR do?

This PR fixes a UI display bug in the invoice table where monetary values were shown with excessive decimal places (e.g., "88.0024$" instead of "88.00$"). The usdFormatter function was explicitly configured in BillingInvoiceTable.tsx to ensure all invoice-related amounts are formatted with exactly two decimal places, aligning with standard currency display and resolving customer confusion.

Fixes #LFE-6925

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (does not change functionality, e.g. code style improvements, linting)
  • This change requires a documentation update

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project (pnpm run format)
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings (npm run lint)
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

Linear Issue: LFE-6925

Open in Cursor Open in Web


Important

Fixes decimal display issue in BillingInvoiceTable.tsx by formatting monetary values with two decimal places using usdFormatter.

  • Behavior:
    • Fixes decimal display issue in BillingInvoiceTable.tsx by ensuring monetary values are formatted with two decimal places using usdFormatter.
    • Affects subscriptionCents, usageCents, discountCents, taxCents, and totalCents columns.
  • Functions:
    • Updates usdFormatter calls in BillingInvoiceTable.tsx to include two decimal place formatting for currency values.

This description was created by Ellipsis for 3bdd229. You can customize this summary. It will automatically update as commits are pushed.

Copy link

cursor bot commented Sep 29, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@FroeMic FroeMic marked this pull request as ready for review September 29, 2025 16:10
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Sep 29, 2025
@FroeMic FroeMic changed the title Fix invoice table decimal display fix(billing):Fix invoice table decimal display Sep 29, 2025
@FroeMic FroeMic changed the title fix(billing):Fix invoice table decimal display fix(billing): Fix invoice table decimal display Sep 29, 2025
@FroeMic FroeMic enabled auto-merge September 29, 2025 16:14
@dosubot dosubot bot added the auto-merge This PR is set to be merged label Sep 29, 2025
@FroeMic FroeMic disabled auto-merge September 29, 2025 16:36
@dosubot dosubot bot removed the auto-merge This PR is set to be merged label Sep 29, 2025
@FroeMic FroeMic merged commit decac0c into main Sep 29, 2025
27 of 29 checks passed
@FroeMic FroeMic deleted the cursor/LFE-6925-fix-invoice-table-decimal-display-06ee branch September 29, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants