237 lines
		
	
	
		
			9.6 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			237 lines
		
	
	
		
			9.6 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0"?>
 | |
| <document filename="Rechnung.pdf">
 | |
|   <template pageSize="(595.0,842.0)" title="Sale Order" author="datenpol gmbh" 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>
 | |
| 
 | |
|   <blockTable colWidths="270,85,145" style="Struktur">
 | |
|     <tr>
 | |
|       <td>
 | |
|         <section>
 | |
|             <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>
 | |
|             <!-- Für Sichtfenster -->
 | |
|             <section>[[ not (o.partner_id.commercial_partner_id and o.partner_id.commercial_partner_id.ref) or removeParentNode('section') ]]
 | |
|               <para style="normal"> </para>
 | |
|             </section>
 | |
|         </section>
 | |
|         <para></para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="normal">Datum:</para>
 | |
|           <para style="normal">Quelldokument:</para>
 | |
|           <para style="normal">Kundenreferenz:</para>
 | |
|           <!--<para style="normal">Kundennummer:</para>-->
 | |
|           <para style="normal">Kunde UID Nr.:</para>
 | |
|         <para style="normal">Ansprechpartner:</para>
 | |
|       </td>
 | |
|         <td>
 | |
|           <para style="normal">[[ formatLang(o.date_invoice,date = True) ]] </para>
 | |
|           <para style="normal">[[ o.origin ]] </para>
 | |
|           <para style="normal">[[ o.name ]] </para>
 | |
|           <!--<para style="normal">[[ o.partner_id.commercial_partner_id.ref ]] </para>-->
 | |
|           <para style="normal">[[ o.partner_id.commercial_partner_id and o.partner_id.commercial_partner_id.vat or '' ]] </para>
 | |
|         <para style="normal">[[ (o.user_id and o.user_id.name) or '' ]] </para>
 | |
|       </td>
 | |
|     </tr>
 | |
|     <!--
 | |
|     <tr>
 | |
|       <td>
 | |
|           <section>[[ (o.partner_shipping_id and o.partner_shipping_id.id != o.partner_id.id) or removeParentNode('section')]]
 | |
|             <spacer length="0.5cm"/>
 | |
|             <para style="normal">Lieferadresse:</para>
 | |
|             <para style="normal">[[ o.partner_shipping_id.commercial_partner_id.name ]]</para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.commercial_partner_id.id != o.partner_shipping_id.id and o.partner_shipping_id.name) or '' ]] </para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.street ) or '']]</para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.street2) or removeParentNode('para') ]]</para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.zip) or '' ]] [[ (o.partner_shipping_id and o.partner_shipping_id.city) or '' ]]</para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.state_id and o.partner_shipping_id.state_id.name) or removeParentNode('para')]]</para>
 | |
|             <para style="normal">[[ (o.partner_shipping_id.country_id and o.partner_shipping_id.country_id.name) or '' ]]</para>
 | |
|         </section>
 | |
|         <para style="normal"> </para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="normal"> </para>
 | |
|       </td>
 | |
|         <td>
 | |
|           <para style="normal"> </para>
 | |
|       </td>
 | |
|     </tr>
 | |
|     -->
 | |
|   </blockTable>
 | |
| 
 | |
|    <spacer length="1.0cm"/>
 | |
| 
 | |
|    <para style="ueberschrift2"><b>Rechnung [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma2') or removeParentNode('para')) and '' ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>Rechnungsentwurf [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>Stornierte Rechnung [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>Stornorechnung [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>Stornorechnung [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
|    <para style="ueberschrift2"><b>Rechnung [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]</b></para>
 | |
| 
 | |
|    <spacer length="0.5cm"/>
 | |
| 
 | |
|    <blockTable colWidths="30,57,170,75,63,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_links">Menge</para>
 | |
|        </td>
 | |
|        <td>
 | |
|          <para style="tabelle_header_rechts">Einzelpreis</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_links">[[formatLang(line.quantity, digits=2)[-2:]=='00' and formatLang(line.quantity, digits=0) or formatLang(line.quantity, digits=2)]] [[ line.uos_id.name ]]</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>[[ repeatIn(o.tax_line,'tax') ]]
 | |
|        <td>
 | |
|          <para style="schlussrechnung"></para>
 | |
|        </td>
 | |
|        <td>
 | |
|          <para style="schlussrechnung">MwSt. [[tax.name.split(" ")[0] or ""]] in €</para>
 | |
|        </td>
 | |
|        <td>
 | |
|          <para style="schlussrechnung">[[ formatLang(tax.tax_amount) ]]</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>
 | |
|      <tr>
 | |
|        <td>
 | |
|            <para></para>
 | |
|        </td>
 | |
|        <td>
 | |
|          <para style="schlussrechnung">Rechnungsbetrag inkl. Skonto in €</para>
 | |
|        </td>
 | |
|        <td>
 | |
|          <para style="schlussrechnung">[[ (o.skonto_betrag_inkl and formatLang(o.skonto_betrag_inkl,digits=2)) or removeParentNode('tr') ]]</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,390" 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"/>
 | |
| 
 | |
|     <blockTable colWidths="500" style="Struktur" hAlign="LEFT">
 | |
|       <tr>
 | |
|         <td>
 | |
|           <para style="normal"></para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>[[ o.date_due and o.payment_term and o.payment_term.skonto_prozent or removeParentNode('tr') ]]
 | |
|         <td>
 | |
|           <para style="normal">Zahlbar bis [[ formatLang(o.skonto_faelligkeit,date = True) ]] abzüglich [[ formatLang(o.payment_term.skonto_prozent,digits=2) ]]% beträgt [[ formatLang(o.skonto_betrag_inkl,digits=2) ]]€.</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>[[ o.date_due or removeParentNode('tr') ]]
 | |
|         <td>
 | |
|           <para style="normal">Zahlbar bis [[ formatLang(o.date_due,date = True) ]] ohne Abzug.</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|     </blockTable>
 | |
|     -->
 | |
| 
 | |
|   </story>
 | |
| </document>
 |