Project

General

Profile

« Previous | Next » 

Revision 56406192

Added by Mikaël Ates almost 12 years ago

facturation: landscape and better display of not cmpp invoicing rendering.

View differences:

calebasse/facturation/templates/facturation/bordereau_not_cmpp_content.html
2 2
<html>
3 3
  <head>
4 4
    <style>
5
      @page then {
5
      @page one{
6
        size: a4 landscape;
6 7
        @frame {
7
          margin: 2cm 1cm;
8
          margin: 1cm 1cm 1cm 1cm;
8 9
        }
9 10
        @frame footer {
10 11
          -pdf-frame-content: footer;
11 12
          bottom: 0cm;
12
          height: 0.5cm;
13
          right: 1cm;
14
          left: 1cm;
15
          height: 1.5cm;
16
        }
17
      }
18
      @page then{
19
        size: a4 landscape;
20
        @frame {
21
          margin: 1cm 1cm 1cm 1cm;
22
        }
23
        @frame footer {
24
          -pdf-frame-content: footer;
25
          bottom: 0cm;
26
          right: 1cm;
27
          left: 1cm;
28
          height: 1.5cm;
13 29
        }
14 30
      }
15 31
      #content td {
......
17 33
      }
18 34
    </style>
19 35
  </head>
36
      <pdf:nexttemplate name="one"/>
20 37
  <body>
21 38
    <div id="title">Bordereau des actes par patient</div>
22 39
    <div id="date">
......
79 96
              <td>{% if patient.cen %}{{ patient.cen }}{% endif %}</td>
80 97
              <td>{% if patient.number %}{{ patient.number }}{% endif %}</td>
81 98
              <td>{% if patient.name %}{{ patient.name }}{% endif %}</td>
82
              <td>{% if patient.birth_date %}{{ patient.birth_date }}{% endif %}</td>
83
              <td>{% if patient.inscription_date %}{{ patient.inscription_date }}{% endif %}</td>
84
              <td>{% if patient.sortie_date %}{{ patient.sortie_date }}{% endif %}</td>
99
              <td>{% if patient.birth_date %}{{ patient.birth_date|date:"d/m/Y" }}{% endif %}</td>
100
              <td>{% if patient.inscription_date %}{{ patient.inscription_date|date:"d/m/Y" }}{% endif %}</td>
101
              <td>{% if patient.sortie_date %}{{ patient.sortie_date|date:"d/m/Y" }}{% endif %}</td>
85 102
              <td>{% if patient.nb_actes %}{{ patient.nb_actes }}{% endif %}</td>
86 103
            </tr>
87 104
            {% endfor %}
88 105
          </tbody>
89 106
      </table>
90 107
    <div id="footer">
91
      {% if counter %}{{ counter.increment }}.{% endif %}<pdf:pagenumber/>
108
      Bordereau des actes par patient page <pdf:pagenumber/>
109
      </br>{{ service.name }} de SAINT-ETIENNE
110
      </br>Période du {{ start_date|date:"d/m/Y" }} au {{ end_date|date:"d/m/Y" }}
92 111
    </div>
93 112
  </body>
94 113
</html>

Also available in: Unified diff