RoutesInvoices module

Invoices routes

URLs the Invoices module answers, their parameters and the variables each view receives.

View cdna-admin screens of this module.

Admin view

GET /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

GET /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

GET /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

GET /cdna-admin/invoices/transactions manageTransactions

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$transactions Collection<Transaction> Collection of Transactions

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /cdna-admin/invoices/invoices manageInvoices

Retrieve available records and assign them to the template for editing.

The admin template receives
VariableTypeDescription
$invoices Collection<Invoice> Collection of Invoices

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /cdna-admin/invoices/refund/{id} editRefund

Retrieve a single record and display the edit page for the record

Path parameters id matches \d+

The admin template receives
VariableTypeDescription
$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.