209 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			209 lines
		
	
	
		
			7.6 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0"?>
 | |
| <!--  
 | |
|     <reports>
 | |
|         <report>account.report_invoice</report>
 | |
|     </reports>
 | |
| -->
 | |
| <document filename="Rechnung.pdf">
 | |
|   <template pageSize="(595.0,842.0)" title="Sale Order" author="Andreas Brückl" allowSplitting="20">
 | |
|     <pageTemplate id="first">
 | |
|       <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
 | |
|     </pageTemplate>
 | |
|   </template>
 | |
|   
 | |
|   <story>
 | |
|   
 | |
|     <para>
 | |
|       <seqReset id="L1"/>
 | |
|     </para>
 | |
|     <para>[[repeatIn(objects,'o')]] [[ setLang(o.partner_id.commercial_partner_id.lang)]]</para>
 | |
| 
 | |
| 
 | |
|     <para style="fett">[[ o.partner_id.commercial_partner_id.name ]]</para>
 | |
|     <para style="normal">[[ (o.partner_id.commercial_partner_id.id != o.partner_id.id and o.partner_id.name) or '' ]] </para>
 | |
|     <para style="normal">[[ (o.partner_id.street ) or '']]</para>
 | |
|     <para style="normal">[[ (o.partner_id.street2) or removeParentNode('para') ]]</para>
 | |
|     <para style="normal">[[ (o.partner_id.zip) or '' ]] [[ (o.partner_id and o.partner_id.city) or '' ]]</para>
 | |
|     <para style="normal">[[ (o.partner_id.state_id and o.partner_id.state_id.name) or removeParentNode('para')]]</para>
 | |
|     <para style="normal">[[ (o.partner_id.country_id and o.partner_id.country_id.name) or '' ]]</para>
 | |
|        
 | |
|     <blockTable colWidths="90,110" style="Struktur" hAlign="RIGHT">
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para style="normal">Kundennr.:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="normal">[[ o.partner_id.ref or removeParentNode('tr') ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para style="normal">Ihre Referenz:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="normal">[[ o.name ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para style="normal">Ansprechpartner:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="normal">[[ (o.user_id and o.user_id.name) or '' ]]</para>
 | |
|         </td>
 | |
|       </tr>  
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para style="normal">Ihre UID:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="normal">[[ o.partner_id.commercial_partner_id and o.partner_id.commercial_partner_id.vat or '' ]]</para>
 | |
|         </td>
 | |
|       </tr>                                                                                                     
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para style="normal">Datum:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="normal">[[ formatLang(o.date_invoice,date = True) ]]</para>
 | |
|         </td>
 | |
|       </tr>                                       
 | |
|     </blockTable>    
 | |
|     
 | |
| 
 | |
| 
 | |
|    <para style="ueberschrift"><b>Rechnung [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift"><b>PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma2') or removeParentNode('para')) and '' ]]</b></para>
 | |
|    <para style="ueberschrift"><b>Rechnungsentwurf [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]]</b></para>
 | |
|    <para style="ueberschrift"><b>Stornierte Rechnung [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift"><b>Stornorechnung [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift"><b>Stornorechnung [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift"><b>Rechnung [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
| 
 | |
|     
 | |
|     <spacer length="0.5cm"/>
 | |
|     
 | |
|     <blockTable colWidths="30,57,203,45,60,40,75" repeatRows="1" style="TabelleHaupt" hAlign="LEFT">
 | |
|       <tr>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Pos</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Art-nr.</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header_links">Bezeichnung</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Menge</para>
 | |
|         </td>        
 | |
|         <td>
 | |
|           <para style="tabelle_header_rechts">E-Preis</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header"></para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header_rechts">Gesamtpreis</para>
 | |
|         </td>
 | |
|       </tr>
 | |
| 
 | |
|       <tr>[[repeatIn(o.invoice_line,'line')]]
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center" leftIndent="0" bulletIndent="0" size="8.0">
 | |
|             <seq id="L1"/>
 | |
|           </para>          
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center">[[ line.product_id and line.product_id.default_code or '']]</para>
 | |
|         </td>
 | |
|         <td>
 | |
|             <para style="tabelle_daten_links">[[ (line.name or '').split('\n\n')[0] ]]</para>
 | |
|             <section>[[ repeatIn((line.name or '').split('\n\n')[1:],'paragraphs') ]]
 | |
|                 <spacer length="0.4cm"/>            
 | |
|                 <para style="tabelle_daten_links">[[ paragraphs ]]</para>   
 | |
|             </section>           
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center">[[formatLang(line.quantity, digits=2)[-2:]=='00' and formatLang(line.quantity, digits=0) or formatLang(line.quantity, digits=2)]]</para>
 | |
|         </td>        
 | |
|         <td>
 | |
|           <para style="tabelle_daten_rechts">[[ formatLang(line.price_unit,digits=2) ]]</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_rechts">[[ line.discount <> 0 and (formatLang(line.discount) + '%') or '' ]]</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_rechts">[[ formatLang(line.price_subtotal,digits=2 ) ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|     </blockTable>
 | |
|  
 | |
|     <blockTable colWidths="210,200,100" style="TabelleSchlussrechnung">
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para></para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung">Zwischensumme in €</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung">[[ formatLang(o.amount_untaxed,digits=2 )]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para></para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung">MwSt. in €</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung">[[ formatLang(o.amount_tax,digits=2 ) ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>
 | |
|         <td>
 | |
|             <para></para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung_fett">Rechnungsbetrag in €</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="schlussrechnung_fett">[[ formatLang(o.amount_total,digits=2 ) ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|     </blockTable> 
 | |
|     
 | |
|     <spacer length="0.5cm"/>
 | |
| 
 | |
|     <para style="normal">[[ (o.comment or '').split('\n\n')[0] ]]</para>
 | |
|     <section>[[ repeatIn((o.comment or '').split('\n\n')[1:],'paragraphs') ]]
 | |
|         <spacer length="0.4cm"/>            
 | |
|         <para style="normal">[[ paragraphs ]]</para>   
 | |
|     </section> 
 | |
| 
 | |
|     <spacer length="0.5cm"/>
 | |
| 
 | |
|     <blockTable colWidths="110,300" style="Struktur" hAlign="LEFT">
 | |
|       <tr>
 | |
|         <td>
 | |
|           <para style="normal">Zahlungsbedingungen:</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="normal">[[ (o.payment_term and o.payment_term.note) or removeParentNode('blockTable') ]]</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|     </blockTable>
 | |
|     
 | |
|     <spacer length="0.5cm"/>
 | |
|     <para style="normal">Vielen Dank für Ihren Auftrag!</para>
 | |
|     <spacer length="0.5cm"/>
 | |
|     <para style="normal">
 | |
|         Bis zur Bezahlung aller Ansprüche aus den Geschäftsverbindungen behält sich der Verkäufer das Eigentum an seinen Warenlieferungen vor. Es gelten unsere Allgemeinen Geschäftsbedingungen.
 | |
|     </para>
 | |
| 
 | |
|     
 | |
|   </story>
 | |
| </document>
 |