add subtotal and payment date to invoices (#2450)
This commit is contained in:
13
templates/invoice/payment_date_edit.html.twig
Normal file
13
templates/invoice/payment_date_edit.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends app.request.xmlHttpRequest ? 'form.html.twig' : 'base.html.twig' %}
|
||||
|
||||
{% block page_title %}{{ 'invoice.title'|trans }}{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% set formEditTemplate = app.request.xmlHttpRequest ? 'default/_form_modal.html.twig' : 'default/_form.html.twig' %}
|
||||
{% set formOptions = {
|
||||
'title': invoice.customer.name ~ ' – ' ~ invoice.createdAt|date_short~ ' – ' ~ invoice.total|money(invoice.customer.currency),
|
||||
'form': form,
|
||||
'back': path('admin_invoice_list')
|
||||
} %}
|
||||
{% embed formEditTemplate with formOptions %}{% endembed %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user