Invoice: switch from and to address (#1776)
This commit is contained in:
@@ -72,7 +72,7 @@ final class MenuSubscriber implements EventSubscriberInterface
|
|||||||
|
|
||||||
if ($auth->isGranted('view_invoice')) {
|
if ($auth->isGranted('view_invoice')) {
|
||||||
$invoice = new MenuItemModel('invoice', 'menu.invoice', 'invoice', [], $this->getIcon('invoice'));
|
$invoice = new MenuItemModel('invoice', 'menu.invoice', 'invoice', [], $this->getIcon('invoice'));
|
||||||
$invoice->setChildRoutes(['admin_invoice_template', 'admin_invoice_template_edit', 'admin_invoice_template_create', 'admin_invoice_template_copy']);
|
$invoice->setChildRoutes(['admin_invoice_template', 'admin_invoice_template_edit', 'admin_invoice_template_create', 'admin_invoice_template_copy', 'admin_invoice_list', 'admin_invoice_document_upload']);
|
||||||
$menu->addItem($invoice);
|
$menu->addItem($invoice);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,19 +15,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-5">
|
|
||||||
{{ 'invoice.from'|trans({}, 'messages', language) }}
|
|
||||||
<address contenteditable="true">
|
|
||||||
<strong>{{ model.template.company }}</strong><br>
|
|
||||||
{{ model.template.address|trim|nl2br }}
|
|
||||||
{% if model.template.vatId is not empty %}
|
|
||||||
<br>
|
|
||||||
{{ 'label.vat_id'|trans({}, 'messages', language) }}:
|
|
||||||
{{ model.template.vatId }}
|
|
||||||
{% endif %}
|
|
||||||
</address>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-2"></div>
|
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
{{ 'invoice.to'|trans({}, 'messages', language) }}
|
{{ 'invoice.to'|trans({}, 'messages', language) }}
|
||||||
<address contenteditable="true">
|
<address contenteditable="true">
|
||||||
@@ -47,6 +34,19 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</address>
|
</address>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm-2"></div>
|
||||||
|
<div class="col-sm-5">
|
||||||
|
{{ 'invoice.from'|trans({}, 'messages', language) }}
|
||||||
|
<address contenteditable="true">
|
||||||
|
<strong>{{ model.template.company }}</strong><br>
|
||||||
|
{{ model.template.address|trim|nl2br }}
|
||||||
|
{% if model.template.vatId is not empty %}
|
||||||
|
<br>
|
||||||
|
{{ 'label.vat_id'|trans({}, 'messages', language) }}:
|
||||||
|
{{ model.template.vatId }}
|
||||||
|
{% endif %}
|
||||||
|
</address>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user