mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: remove unused status field from invoice template and billing service
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
{{> DetailBoxField title="Invoice Number:" text=invoiceNumber }}
|
||||
{{> DetailBoxField title="Invoice Date:" text=invoiceDate }}
|
||||
{{> DetailBoxField title="Amount:" text=amount }}
|
||||
{{> DetailBoxField title="Status:" text=status }}
|
||||
{{#if description}}
|
||||
{{> DetailBoxField title="Description:" text=description }}
|
||||
{{/if}}
|
||||
|
||||
@@ -977,7 +977,6 @@ export class BillingService extends BaseService {
|
||||
? OneUptimeDate.getDateAsFormattedString(new Date(stripeInvoice.created * 1000))
|
||||
: OneUptimeDate.getDateAsFormattedString(OneUptimeDate.getCurrentDate());
|
||||
const amount = `${(stripeInvoice.amount_due / 100).toFixed(2)} ${stripeInvoice.currency?.toUpperCase() || 'USD'}`;
|
||||
const status = stripeInvoice.status || 'unknown';
|
||||
const invoicePdfUrl = stripeInvoice.invoice_pdf || undefined;
|
||||
const description = stripeInvoice.description || undefined;
|
||||
|
||||
@@ -998,7 +997,6 @@ export class BillingService extends BaseService {
|
||||
invoiceNumber: invoiceNumber,
|
||||
invoiceDate: invoiceDate,
|
||||
amount: amount,
|
||||
status: status,
|
||||
description: description || '',
|
||||
invoicePdfUrl: invoicePdfUrl || '',
|
||||
dashboardLink: dashboardLink || '',
|
||||
|
||||
Reference in New Issue
Block a user