179 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			179 lines
		
	
	
		
			6.3 KiB
		
	
	
	
		
			XML
		
	
	
<?xml version="1.0"?>
 | 
						|
<!--  
 | 
						|
    <reports>
 | 
						|
        <report>purchase.report_purchasequotation</report>
 | 
						|
    </reports>
 | 
						|
-->
 | 
						|
<document filename="Purchase Quotation.pdf">
 | 
						|
  <template pageSize="(595.0,842.0)" title="Purchase Order" author="andreas.brueckl@cmotion.eu" 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.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="100,150" style="Struktur" hAlign="RIGHT">
 | 
						|
      <tr>
 | 
						|
        <td>
 | 
						|
        </td>
 | 
						|
        <td align="right">
 | 
						|
            <para style="normal">Ihr Ansprechpartner</para>
 | 
						|
            <blockTable colWidths="65,165" style="Struktur">
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">Name:</para>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">[[ (user.name) or '' ]]</para>
 | 
						|
                </td>
 | 
						|
              </tr>
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">Telefon:</para>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">[[ user.partner_id.phone or '' ]]</para>
 | 
						|
                </td>
 | 
						|
              </tr>  
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">E-Mail:</para>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">[[ user.partner_id.email or '' ]]</para>
 | 
						|
                </td>
 | 
						|
              </tr>   
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <spacer length="0.5cm"/>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                   <spacer length="0.5cm"/>
 | 
						|
                </td>
 | 
						|
              </tr>                       
 | 
						|
            
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">Datum:</para>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">[[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]]</para>
 | 
						|
                </td>
 | 
						|
              </tr>               
 | 
						|
              <tr>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">Referenz:</para>
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    <para style="normal">[[ o.partner_ref or '' ]]</para>
 | 
						|
                </td>
 | 
						|
              </tr>                                                               
 | 
						|
            </blockTable>
 | 
						|
        </td>
 | 
						|
      </tr>
 | 
						|
    </blockTable>
 | 
						|
        
 | 
						|
 | 
						|
    <para style="ueberschrift">Anfrage [[ o.name ]]</para>
 | 
						|
  
 | 
						|
    <spacer length="0.5cm"/>
 | 
						|
    
 | 
						|
    <blockTable colWidths="30.0, 57, 328.0, 60, 45" repeatRows="1" style="TabelleHaupt" hAlign="LEFT">
 | 
						|
      <tr>
 | 
						|
        <td>
 | 
						|
          <para style="tabelle_header">Pos</para>
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
          <para style="tabelle_header_links">Art.nr.</para>
 | 
						|
        </td>                               
 | 
						|
        <td>
 | 
						|
          <para style="tabelle_header_links">Bezeichnung</para>
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
          <para style="tabelle_header">gepl.</para>
 | 
						|
          <para style="tabelle_header">Lieferung</para>
 | 
						|
        </td>                
 | 
						|
        <td>
 | 
						|
          <para style="tabelle_header">Menge</para>
 | 
						|
        </td>         
 | 
						|
      </tr>
 | 
						|
        <tr>[[repeatIn(o.order_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_links">[[ line.product_id and line.product_id.default_code ]]</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>
 | 
						|
            
 | 
						|
            <para style="tabelle_daten_links">Ihre Artikelnr.: [[ line.supplier_code or removeParentNode('para')]]</para>
 | 
						|
          </td>   
 | 
						|
          <td>
 | 
						|
            <para style="tabelle_daten_center">[[ formatLang(line.date_planned,date=True) ]]</para>
 | 
						|
          </td>           
 | 
						|
                              
 | 
						|
          <td>
 | 
						|
            <para style="tabelle_daten_center">[[ formatLang(line.product_qty, digits=2)[-2:]=='00' and formatLang(line.product_qty, digits=0) or formatLang(line.product_qty, digits=2) ]]</para>
 | 
						|
          </td>         
 | 
						|
        </tr>
 | 
						|
      </blockTable>
 | 
						|
      
 | 
						|
    <spacer length="0.5cm"/>
 | 
						|
 | 
						|
    <para style="normal">[[ (o.notes or '').split('\n\n')[0] ]]</para>
 | 
						|
    <section>[[ repeatIn((o.notes 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"> [[o.incoterm_id or removeParentNode('blockTable')  ]]
 | 
						|
      <tr>
 | 
						|
        <td>
 | 
						|
          <para style="normal">Lieferbedingung:</para>
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
          <para style="normal">[[o.incoterm_id and o.incoterm_id.name or '' ]]</para>
 | 
						|
        </td>
 | 
						|
      </tr>
 | 
						|
     </blockTable>
 | 
						|
    <blockTable colWidths="110,300" style="Struktur" hAlign="LEFT"> [[o.payment_term_id or removeParentNode('blockTable')  ]]
 | 
						|
      <tr>
 | 
						|
        <td>
 | 
						|
          <para style="normal">Zahlungsbedingungen:</para>
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
          <para style="normal">[[o.payment_term_id and o.payment_term_id.note or '' ]]</para>
 | 
						|
        </td>
 | 
						|
      </tr>
 | 
						|
     </blockTable> 
 | 
						|
 | 
						|
 | 
						|
    <spacer length="0.5cm"/>
 | 
						|
 | 
						|
    
 | 
						|
  </story>
 | 
						|
</document>
 |