Bugfix für Bug 1127. webpages/ct/get_delivery_master ist nicht customer/vendor sicher...
[kivitendo-erp.git] / templates / webpages / ct / get_delivery_master.html
index 42dd804..0ca76e1 100644 (file)
@@ -1,4 +1,4 @@
-[% USE LxERP %]
+[% USE HTML %][% USE LxERP %]
 <table width="100%">
   <tr>
     <td>
 [%- 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=sales_order&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><translate>This list is capped at 15 items to keep it fast. If you need a full list, please use reports.</translate></p>
+[%- END %]