diff --git a/src/views/Invoices.vue b/src/views/Invoices.vue index f85bd0a..0906b14 100644 --- a/src/views/Invoices.vue +++ b/src/views/Invoices.vue @@ -119,99 +119,272 @@ -
Available tokens:
{YYYY} — {{ new Date().getFullYear() }}
{YY} — {{ String(new Date().getFullYear()).slice(-2) }}
{MM} — {{ String(new Date().getMonth() + 1).padStart(2, '0') }}
{DD} — {{ String(new Date().getDate()).padStart(2, '0') }}
{###} — next number ({{ String(invoicesStore.invoices.length + 1).padStart(3, '0') }})
e.g. INV-{YYYY}-{###}
+ Preview: {{ resolvedInvoiceNumber }} +
{{ selectedClient.company }}
{{ selectedClient.email }}
{{ selectedClient.phone }}
{{ selectedClient.address }}
Tax ID: {{ selectedClient.tax_id }}
+ Terms: {{ selectedClient.payment_terms }} +
Select a client to see their billing info
{{ getClientName(selectedInvoice?.client_id || 0) }}
Invoice Date
{{ formatDate(selectedInvoice?.date || '') }}
Due Date
{{ selectedInvoice?.due_date ? formatDate(selectedInvoice.due_date) : '-' }}
Notes
{{ selectedInvoice.notes }}