Skip to content

billing: show pending after a payment slip is uploaded - #339

Merged
acoshift merged 1 commit into
mainfrom
invoice-slip-pending
Aug 31, 2026
Merged

billing: show pending after a payment slip is uploaded#339
acoshift merged 1 commit into
mainfrom
invoice-slip-pending

Conversation

@acoshift

@acoshift acoshift commented Aug 31, 2026

Copy link
Copy Markdown
Member

When a customer uploads a payment slip, the invoice badge flips to Pending (awaiting operator review) instead of staying Open.

  • InvoiceStatus includes pending; badge uses an hourglass + primary color
  • Pending invoices still count as unpaid (amount due, Pay, how-to-pay) so a wrong slip can be re-uploaded
  • After upload, billing.getInvoice / billing.listInvoices are invalidated so the badge updates without a full reload

Needs the apiserver companion so the API actually returns pending. This console change is safe to deploy first (it treats pending as unpaid; the API does not send it yet).

Companion PRs: api#139, apiserver#258, docs#74

Open (before) Pending (after)
before after

Invoices list — pending vs open, Pay still available:

list

Treat pending invoices as unpaid (amount due, Pay, how-to-pay) and
refresh the invoice after upload so the badge flips immediately.
@deploys-app
deploys-app Bot temporarily deployed to pr-339 August 31, 2026 08:43 Destroyed
@deploys-app

deploys-app Bot commented Aug 31, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

@acoshift
acoshift merged commit cc62836 into main Aug 31, 2026
5 checks passed
@acoshift
acoshift deleted the invoice-slip-pending branch August 31, 2026 08:53
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.

1 participant