|
@@ -8,12 +8,10 @@
|
|
size: a4 portrait;
|
|
size: a4 portrait;
|
|
@frame header_frame {
|
|
@frame header_frame {
|
|
-pdf-frame-content: header_content;
|
|
-pdf-frame-content: header_content;
|
|
- -pdf-frame-border: 1;
|
|
|
|
- left: 50pt; width: 512pt; top: 50pt; height: 50pt;
|
|
|
|
|
|
+ left: 50pt; width: 512pt; top: 50pt; height: 70pt;
|
|
}
|
|
}
|
|
@frame content_frame {
|
|
@frame content_frame {
|
|
- -pdf-frame-border: 1;
|
|
|
|
- left: 50pt; width: 512pt; top: 120pt; height: 632pt;
|
|
|
|
|
|
+ left: 50pt; width: 512pt; top: 150pt; height: 632pt;
|
|
}
|
|
}
|
|
@frame footer_frame {
|
|
@frame footer_frame {
|
|
-pdf-frame-content: footer_content;
|
|
-pdf-frame-content: footer_content;
|
|
@@ -21,13 +19,20 @@
|
|
left: 50pt; width: 512pt; top: 772pt; height: 20pt;
|
|
left: 50pt; width: 512pt; top: 772pt; height: 20pt;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- table#details {
|
|
|
|
- border:1px solid black;
|
|
|
|
|
|
+ body {
|
|
|
|
+ font-size: 10pt;
|
|
}
|
|
}
|
|
- table td {
|
|
|
|
- padding-top:5pt;
|
|
|
|
- border:1px solid red;
|
|
|
|
|
|
+ table#details {
|
|
|
|
+ -pdf-keep-with-next: true;
|
|
|
|
+ width:100%;
|
|
}
|
|
}
|
|
|
|
+ th.cell {border:0px;}
|
|
|
|
+ .cell.result {border:0px; font-weight: bold}
|
|
|
|
+ .cell { padding:2pt; border:1px solid #DDD; }
|
|
|
|
+ .cell.label { width:400pt;}
|
|
|
|
+ .cell.quantity {width:50pt;}
|
|
|
|
+ .cell.amount {width:50pt;}
|
|
|
|
+ .cell.total {width:50pt;}
|
|
</style>
|
|
</style>
|
|
|
|
|
|
</head>
|
|
</head>
|
|
@@ -67,29 +72,30 @@
|
|
<hr />
|
|
<hr />
|
|
Facture N°{{ invoice.number }}
|
|
Facture N°{{ invoice.number }}
|
|
|
|
|
|
- <table id="details">
|
|
|
|
|
|
+ <table id="details" repeat="1">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
- <th></th>
|
|
|
|
- <th>Quantité</th>
|
|
|
|
- <th>Prix unitaire</th>
|
|
|
|
- <th>Total</th>
|
|
|
|
|
|
+ <th class="cell label"></th>
|
|
|
|
+ <th class="cell quantity">Quantité</th>
|
|
|
|
+ <th class="cell amount">PU</th>
|
|
|
|
+ <th class="cell total">Total</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
- {% for detail in invoice.details.all %}
|
|
|
|
- <tr>
|
|
|
|
- <td>{{ detail.label }}</td>
|
|
|
|
- <td>{{ detail.quantity }}</td>
|
|
|
|
- <td>{{ detail.amount }}€</td>
|
|
|
|
- <td>{{ detail.total }}€</td>
|
|
|
|
- </tr>
|
|
|
|
- {% endfor %}
|
|
|
|
- <tr>
|
|
|
|
- <td></td>
|
|
|
|
- <td></td>
|
|
|
|
- <td>Total TTC</td>
|
|
|
|
- <td>{{ invoice.amount }}€</td>
|
|
|
|
- </tr>
|
|
|
|
|
|
+ <tbody>
|
|
|
|
+ {% for detail in invoice.details.all %}
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="cell label">{{ detail.label }}</td>
|
|
|
|
+ <td class="cell quantity">{{ detail.quantity }}</td>
|
|
|
|
+ <td class="cell amount">{{ detail.amount }}€</td>
|
|
|
|
+ <td class="cell total">{{ detail.total }}€</td>
|
|
|
|
+ </tr>
|
|
|
|
+ {% endfor %}
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="cell result"></td>
|
|
|
|
+ <td class="cell result total_ttc" colspan="2">Total TTC</td>
|
|
|
|
+ <td class="cell result invoice_amount">{{ invoice.amount }}€</td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
|
|
|