diff --git a/.gitignore b/.gitignore index 1d17dae..c513c79 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .venv +/factures/commun/*.html.jinja2 +/factures/commun/*.pdf \ No newline at end of file diff --git a/factures/commun/_layout.jinja2 b/factures/commun/_layout.jinja2 index 3be22dd..f9c3eaf 100644 --- a/factures/commun/_layout.jinja2 +++ b/factures/commun/_layout.jinja2 @@ -23,64 +23,66 @@ -
-
Date
-
{{ date }}
-
N° de facture
-
{{ number }}
-
- - - {% for designation, price, quantity in lines %} - {% if loop.first %} - - - - - - - - {% set total = 0 %} - {% endif %} - - - - - - - - {% set total = total + quantity * price %} - - {% if loop.last %} - - - - - - {% endif %} - {% endfor %} -
DésignationPrix unitaireQuantitéTotal
{{ designation }}{{ price }} €{{ quantity }}{{ quantity * price }} €
Total T.T.C. à payer{{ total }} €
- - + + + {% for designation, price, quantity in lines %} + {% if loop.first %} + + + + + + + + {% set total = 0 %} + {% endif %} + + + + + + + + {% set total = total + quantity * price %} + + {% if loop.last %} + + + + + + {% endif %} + {% endfor %} +
DésignationPrix unitaireQuantitéTotal
{{ designation }}{{ price }} €{{ quantity }}{{ quantity * price }} €
Total T.T.C. à payer{{ total }} €
+ + + {% endblock content %} diff --git a/factures/commun/style.css b/factures/commun/style.css index e4c5bb9..4844974 100644 --- a/factures/commun/style.css +++ b/factures/commun/style.css @@ -113,3 +113,7 @@ dd::after { p { margin: 0.5em 0; } + +p.right-aligned { + margin: 2em 0 2em 60%; +}