Kundenstatistik: Links bei Orders waren noch falsch
[kivitendo-erp.git] / templates / webpages / customer_vendor_turnover / quotation_statistic.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE HTML %]
5 <div id="invoice_statistic">
6   <table width="100%">
7     <tbody>
8       <tr>
9         <td class="listheading">[% IF FORM.db == 'customer' %][% 'Quotation Number' | $T8 %][% ELSE %][% 'RFQ Number' | $T8 %][% END %]</td>
10         <td class="listheading">[% IF FORM.db == 'customer' %][% 'Quotation Date' | $T8 %][% ELSE %][% 'RFQ Date' | $T8 %][% END %]</td>
11         <td class="listheading">[% 'Amount' | $T8 %]</td>
12         <td class="listheading">[% 'Delivery Date' | $T8 %]</td>
13         <td class="listheading">[% 'Transaction description' | $T8 %]</td>
14       </tr>
15
16       [%- FOREACH row = orders %]
17       <tr class="listrow[% loop.count % 2 %]">
18         [%- IF INSTANCE_CONF.get_feature_experimental -%]
19           <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
20               [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
21         [%- ELSE -%]
22           <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
23               [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
24         [%- END -%]
25         <td>[% row.transdate.to_kivitendo | html %]</td>
26         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
27         <td>[% row.reqdate.to_kivitendo | html %]</td>
28         <td>[% row.transaction_description %]</td>
29       </tr>
30       [% END %]
31     </tbody>
32   </table>
33
34
35     </tbody>
36   </table>
37 </div>