The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: use amount_due for invoice total (#29692)
Kevin Grünebergb422a15cd137
diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsxindex 94f5b868e81..4804764ae49 100644--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx@@ -133,7 +133,7 @@ const InvoicesSettings = () => {<p>{dayjs(x.period_end * 1000).format('MMM DD, YYYY')}</p></Table.td><Table.td>- <p>{formatCurrency(x.subtotal / 100)}</p>+ <p>{formatCurrency(x.amount_due / 100)}</p></Table.td><Table.td><p>{x.number}</p>@@ -146,7 +146,7 @@ const InvoicesSettings = () => {</Table.td><Table.td className="align-right"><div className="flex items-center justify-end space-x-2">- {x.subtotal > 0 &&+ {x.amount_due > 0 &&[InvoiceStatus.UNCOLLECTIBLE,InvoiceStatus.OPEN,diff --git a/packages/api-types/types/api.d.ts b/packages/api-types/types/api.d.tsindex 27c4c776791..2a23884cd7c 100644--- a/packages/api-types/types/api.d.ts+++ b/packages/api-types/types/api.d.ts@@ -2197,11 +2197,11 @@ export interface paths {}'/v1/projects/{ref}/upgrade/eligibility': {/** [Beta] Returns the project's eligibility for upgrades */- get: operations['v1-get-postgrest-upgrade-eligibility']+ get: operations['v1-get-postgres-upgrade-eligibility']}'/v1/projects/{ref}/upgrade/status': {/** [Beta] Gets the latest status of the project's upgrade */- get: operations['v1-get-postgrest-upgrade-status']+ get: operations['v1-get-postgres-upgrade-status']}'/v1/projects/{ref}/vanity-subdomain': {/** [Beta] Gets current vanity subdomain config */@@ -3582,6 +3582,11 @@ export interface components {}projects: components['schemas']['IntegrationVercelProject'][]}+ GitConfig: {+ owner: string+ ref: string+ repo: string+ }GitHubAuthorization: {id: numbersender_id: number@@ -3854,6 +3859,7 @@ export interface components {role_id: number}Invoice: {+ amount_due: numberid: stringinvoice_pdf: stringnumber: string@@ -4363,15 +4369,18 @@ export interface components {}PostgresConfigResponse: {effective_cache_size?: string+ logical_decoding_work_mem?: stringmaintenance_work_mem?: stringmax_connections?: numbermax_locks_per_transaction?: numbermax_parallel_maintenance_workers?: numbermax_parallel_workers?: numbermax_parallel_workers_per_gather?: number+ max_replication_slots?: numbermax_slot_wal_keep_size?: stringmax_standby_archive_delay?: stringmax_standby_streaming_delay?: string+ max_wal_senders?: numbermax_wal_size?: stringmax_worker_processes?: number/** @enum {string} */@@ -4379,6 +4388,7 @@ export interface components {shared_buffers?: stringstatement_timeout?: stringwal_keep_size?: string+ wal_sender_timeout?: stringwork_mem?: string}/** @enum {string} */@@ -6112,15 +6122,18 @@ export interface components {}UpdatePostgresConfigBody: {effective_cache_size?: string+ logical_decoding_work_mem?: stringmaintenance_work_mem?: stringmax_connections?: numbermax_locks_per_transaction?: numbermax_parallel_maintenance_workers?: numbermax_parallel_workers?: numbermax_parallel_workers_per_gather?: number+ max_replication_slots?: numbermax_slot_wal_keep_size?: stringmax_standby_archive_delay?: stringmax_standby_streaming_delay?: string+ max_wal_senders?: numbermax_wal_size?: stringmax_worker_processes?: number/** @enum {string} */@@ -6128,6 +6141,7 @@ export interface components {shared_buffers?: stringstatement_timeout?: stringwal_keep_size?: string+ wal_sender_timeout?: stringwork_mem?: string}UpdatePostgrestConfigBody: {@@ -6634,6 +6648,10 @@ export interface components {walVerification: Record<string, never>}WorkflowRunResponse: {+ branch_id: string+ check_run_id: number | null+ created_at: string+ git_config: components['schemas']['GitConfig'] | nullid: string/** @enum {string} */status:@@ -6643,6 +6661,8 @@ export interface components {| 'MIGRATIONS_FAILED'| 'FUNCTIONS_DEPLOYED'| 'FUNCTIONS_FAILED'+ updated_at: string+ workdir: string | null}}responses: never@@ -16005,7 +16025,7 @@ export interface operations {}}/** [Beta] Returns the project's eligibility for upgrades */- 'v1-get-postgrest-upgrade-eligibility': {+ 'v1-get-postgres-upgrade-eligibility': {parameters: {path: {/** @description Project ref */@@ -16028,8 +16048,11 @@ export interface operations {}}/** [Beta] Gets the latest status of the project's upgrade */- 'v1-get-postgrest-upgrade-status': {+ 'v1-get-postgres-upgrade-status': {parameters: {+ query?: {+ tracking_id?: string+ }path: {/** @description Project ref */ref: string