diff --git a/sources/AppBundle/Controller/Admin/Accounting/Invoice/ListInvoiceAction.php b/sources/AppBundle/Controller/Admin/Accounting/Invoice/ListInvoiceAction.php index d6f7a1cb1..469b9f29f 100644 --- a/sources/AppBundle/Controller/Admin/Accounting/Invoice/ListInvoiceAction.php +++ b/sources/AppBundle/Controller/Admin/Accounting/Invoice/ListInvoiceAction.php @@ -4,6 +4,7 @@ namespace AppBundle\Controller\Admin\Accounting\Invoice; +use Afup\Site\Utils\Vat; use AppBundle\Accounting\Form\InvoicingPeriodType; use AppBundle\Accounting\InvoicingPaymentStatus; use AppBundle\Accounting\Model\Invoicing; @@ -52,6 +53,7 @@ public function __invoke(Request $request): Response 'direction' => $direction, 'sort' => $sort, 'totalHt' => $totalHt, + 'isSubjectedToVat' => Vat::isSubjectedToVat($period->getEndDate()), ])); } } diff --git a/sources/AppBundle/Controller/Admin/Accounting/Quotation/ListQuotationAction.php b/sources/AppBundle/Controller/Admin/Accounting/Quotation/ListQuotationAction.php index 14b40ec0d..34218afc5 100644 --- a/sources/AppBundle/Controller/Admin/Accounting/Quotation/ListQuotationAction.php +++ b/sources/AppBundle/Controller/Admin/Accounting/Quotation/ListQuotationAction.php @@ -4,6 +4,7 @@ namespace AppBundle\Controller\Admin\Accounting\Quotation; +use Afup\Site\Utils\Vat; use AppBundle\Accounting\Form\InvoicingPeriodType; use AppBundle\Accounting\Model\Repository\InvoicingRepository; use AppBundle\Accounting\Model\Repository\InvoicingPeriodRepository; @@ -38,6 +39,7 @@ public function __invoke(Request $request): Response 'formPeriod' => $formPeriod->createView(), 'direction' => $direction, 'sort' => $sort, + 'isSubjectedToVat' => Vat::isSubjectedToVat($period->getEndDate()), ])); } } diff --git a/templates/admin/accounting/invoice/list.html.twig b/templates/admin/accounting/invoice/list.html.twig index 98eeb84d1..2ab9cc79c 100644 --- a/templates/admin/accounting/invoice/list.html.twig +++ b/templates/admin/accounting/invoice/list.html.twig @@ -17,7 +17,6 @@
| Année | Date @@ -29,17 +28,18 @@ | Ville | -Numero facture | +Numéro facture | Référence client | -Etat paiement | -Prix | +État paiement | ++ Montant{% if isSubjectedToVat %} HT{% endif %} + | |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ line.quotationDate|date('Y') }} | {{ line.quotationDate|format_date('short') }} | {{ line.company }} | {{ line.city }} | @@ -91,7 +91,7 @@