Browse Source

Improve invoice template

Fabs 11 years ago
parent
commit
257de59177
1 changed files with 48 additions and 10 deletions
  1. 48 10
      coin/billing/templates/billing/invoice.html

+ 48 - 10
coin/billing/templates/billing/invoice.html

@@ -11,17 +11,23 @@
 		            left: 50pt; width: 512pt; top: 50pt; height: 70pt;
 		        }
 		        @frame content_frame {
-		            left: 50pt; width: 512pt; top: 150pt; height: 632pt;
+		            left: 50pt; width: 512pt; top: 120pt; height: 632pt;
 		        }
 		        @frame footer_frame { 
 		            -pdf-frame-content: footer_content;
-		            -pdf-frame-border: 1;
-		            left: 50pt; width: 512pt; top: 772pt; height: 20pt;
+		            left: 50pt; width: 512pt; top: 772pt; height: 30pt;
 		        }
 		    }
 		    body {
-		    	font-size: 10pt;
+		    	font-size: 9pt;
 		    }
+		    #coordonnees_illyse {
+		    	font-size:9pt;
+		    }
+		    #coordonnees_client {
+		    	vertical-align: top;
+		    }
+
 		    table#details {
 		    	-pdf-keep-with-next: true;
 		    	width:100%;
@@ -33,6 +39,17 @@
 		    .cell.quantity {width:50pt;}
 		    .cell.amount {width:50pt;}
 		    .cell.total {width:50pt;}
+
+		    .period {color:#888;}
+
+		    #paiements {
+		    	background-color:#EEE;
+		    	padding:5pt;
+		    	font-size:80%;
+		    }
+		    #page_number {
+		    	float:right;
+		    }
 		</style>
 
 	</head>
@@ -46,20 +63,30 @@
 			</tr>
 		</table>		
 	</div>
-	<div id="footer_content">ILLYSE - <pdf:pagenumber>
-		/<pdf:pagecount>
+	<div id="footer_content">
+		<hr />
+		<table widht="100%">
+			<tr>
+				<td width="50"><img id="logo" src="{% static "billing/invoice_logo.jpg" %}" height="20" /></td>
+				<td>ILLYSE, association loi de 1901 à but non lucratif - SIRET : 539 453 191 00014</td>
+				<td width="20"><pdf:pagenumber>
+					/<pdf:pagecount>
+				</td>
+			</tr>
+		</table>
 	</div>
 	<table>
 		<tr>
-			<td>
+			<td id="coordonnees_illyse">
 				<p>
 				Association ILLYSE<br />
 				c/o Jean-François MOURGUES<br />
 				225 route de Genas<br />
 				69100 Villeurbanne</p>
-				<p>SIRET : 539 453 191 00014</p>
+				<p>conctact@illyse.org<br/>
+				<a href="http://www.illyse.net">http://www.illyse.net</a></p>
 			</td>
-			<td style="vertical-align:top">
+			<td id="coordonnees_client">
 				<strong>Facturé à :</strong><br/>
 				{{ member.last_name }} {{ member.first_name }}<br />
 				{% if member.organization_name != "" %}{{ member.organization_name }}<br />{% endif %}
@@ -84,7 +111,8 @@
 		<tbody>
 			{% for detail in invoice.details.all %}
 			<tr>
-				<td class="cell label">{{ detail.label }}</td>
+				<td class="cell label">{{ detail.label }}
+					{% if detail.period_from and detail.period_to %}<br/><span class="period">Pour la période du {{ detail.period_from }} au {{ detail.period_to }}{% endif %}</span></td>
 				<td class="cell quantity">{{ detail.quantity }}</td>
 				<td class="cell amount">{{ detail.amount }}€</td>
 				<td class="cell total">{{ detail.total }}€</td>
@@ -97,7 +125,17 @@
 			</tr>
 		</tbody>
 	</table>
+	<div id="paiements">
+		<p><strong>Merci de préférer si possible le paiement par virement</strong></p>
+
+		<strong>Virement</strong><br />
+		Titulaire du compte : ILLYSE<br/>
+		RIB : 42559 00012 41020023285 19<br/>
+		IBAN : FR76 4255 9000 1241 0200 2328 519<br />
 
+		<strong>Chèque</strong><br />
+		Paiement par chèque à l'ordre de "Association ILLYSE" envoyé à l'adresse : Association ILLYSE, c/o Jean-François MOURGUES,225 route de Genas, 69100 Villeurbanne
+	</div>
 
 </body>
 </html>