Rechnungen sollen noch am selben Tag bearbeitbar sein. Fix für Bug1256. Anzeige für...
[kivitendo-erp.git] / templates / webpages / ct / get_delivery_de.html
index 17a7588..b7b1823 100644 (file)
           <th class="listheading">Beschreibung</th>
           <th class="listheading">Menge</th>
           <th class="listheading">Einheit</th>
+[%- IF is_customer %]
           <th class="listheading">Verkaufspreis</th>
+[%- ELSE %]
+          <th class="listheading">Einkaufspreis</th>
+[%- END %]
         </tr>
 [%- FOREACH row = DELIVERY %]
         <tr class="listrow[% loop.count % 2 %]">
           <td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]&nbsp;</td>
-          <td>[% HTML.escape(row.invnumber)   %]&nbsp;</td>
-          <td>[% HTML.escape(row.ordnumber)   %]&nbsp;</td>
-          <td>[% HTML.escape(row.transdate)   %]&nbsp;</td>
-          <td>[% HTML.escape(row.description) %]&nbsp;</td>
-          <td>[% HTML.escape(row.qty)         %]&nbsp;</td>
-          <td>[% HTML.escape(row.unit)        %]&nbsp;</td>
-          <td>[% LxERP.format_amount(row.sellprice, 2) %]&nbsp;</td>
+          <td>[% IF row.id %]<a href='[% IF is_customer %]is[% ELSE %]ir[% END %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+          <td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.oe_id %]</a>[% END %]</td>
+          <td>[% HTML.escape(row.transdate)   || '&nbsp;' %]</td>
+          <td>[% HTML.escape(row.description) || '&nbsp;' %]</td>
+          <td>[% HTML.escape(row.qty)         || '&nbsp;' %]</td>
+          <td>[% HTML.escape(row.unit)        || '&nbsp;' %]</td>
+          <td>[% LxERP.format_amount(row.sellprice, 2) || '&nbsp;' %]</td>
         </tr>
 [%- END %]
 
      </table>
+[%- IF DELIVERY.size == 15 %]
+     <p>Diese Liste ist auf 15 Zeilen begrenzt. Wenn Sie eine vollständige Liste benötigen, erstellen Sie bitte einen Bericht.</p>
+[%- END %]