Skip to content

Validate invoice amounts in CLI#500

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/validate-invoice-amounts
Jul 12, 2026
Merged

Validate invoice amounts in CLI#500
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/validate-invoice-amounts

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • Reject invalid, partially numeric, and non-positive --amount values before invoice creation requests.
  • Validate invoice line item quantities as finite positive numbers instead of allowing invalid or negative values through.
  • Keep existing unit price validation while using strict numeric parsing.

Tests

  • cd cli; .\node_modules\.bin\vitest.CMD run src/commands/invoices.test.ts (7 passed)

@ralyodio ralyodio merged commit 3952a01 into profullstack:master Jul 12, 2026
5 checks passed
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