Below are documented:
documents.html page to show orders, quotes, and invoices to the customerview.html page to view and print a single documentIn addition to these, you can also use the variables common to all pages.
Displays a customer's orders, quotes, and invoices. Initially only the latest orders, quotes, and invoices are shown. After selecting a document type, the customer can view all documents of that type.
var (
// Customer invoices (open or canceled ones are not shown).
invoices []InvoiceInList
// Customer orders (canceled ones are not shown).
orders []OrderInList
// Pagination that lets you move to the next documents (shown only when
// a specific document type is selected).
pagination html
// Customer quotes (canceled ones are not shown).
quotes []QuoteInList
// Indicates whether invoices should be shown.
showInvoices bool
// Indicates whether there are more invoices to show.
showMoreInvoices bool
// Indicates whether there are more orders to show.
showMoreOrders bool
// Indicates whether there are more quotes to show.
showMoreQuotes bool
// Indicates whether only invoices are shown.
showOnlyInvoices bool
// Indicates whether only orders are shown.
showOnlyOrders bool
// Indicates whether only quotes are shown.
showOnlyQuotes bool
// Indicates whether orders should be shown.
showOrders bool
// Indicates whether quotes should be shown.
showQuotes bool
)
Page where you can view the details of a document (order, quote, invoice, receipt, or DDT) and print it.
For quotes, there is also a button that allows the customer to accept the quote and turn it into an order.
A customer can access this page either from documents.html after logging in, or directly via a link sent by email.
The individual print pages each have their own HTML page.
var (
// Button to accept the quote. Shown only
// for quotes sent to the customer that are not yet expired.
buttonAcceptQuote html
// Button to print the document.
buttonPrint html
// Controls to perform payment if the payment method allows
// card payment before accepting the quote.
card CreditCard
// Document in printable format.
document html
// Privacy processing under GDPR.
processings []Processing
// Total including VAT.
QuoteTaxedTotal Decimal
)