RoutesInvoices module
Invoices routes
URLs the Invoices module answers, their parameters and the variables each view receives.
Admin view
/cdna-admin/invoices/add-payment-method/{type}
addPaymentMethod
Add a new record. Assigns an empty record to the template.
Path parameters
type matches [a-zA-Z]+
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/invoices/payment-method/{id}
editPaymentMethod
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/invoices/payment-methods
managePaymentMethods
Retrieve available records and assign them to the template for editing.
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/invoices/transactions
manageTransactions
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$transactions |
Collection<Transaction> |
Collection of Transactions |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/invoices/invoices
manageInvoices
Retrieve available records and assign them to the template for editing.
| Variable | Type | Description |
|---|---|---|
$invoices |
Collection<Invoice> |
Collection of Invoices |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
/cdna-admin/invoices/refund/{id}
editRefund
Retrieve a single record and display the edit page for the record
Path parameters
id matches \d+
| Variable | Type | Description |
|---|---|---|
$refund |
Refund |
Retrieved Refund record |
Common variables such as $_url, $_request and $_menu are available too. Global template variables
Only GET routes list their variables.