[% USE HTML %][% USE LxERP %]
-<div class="listtop">Überfällige Angebote</div>
+<div class="listtop">Überfällige Angebote und Preisanfragen</div>
<p>
<table width="100%">
<tr>
<td class="listheading">Datum</td>
<td class="listheading">gültig bis</td>
- <td class="listheading">Auftrag</td>
- <td class="listheading">Kunde</td>
+ <td class="listheading">Angebot / Preisanfrage</td>
+ <td class="listheading">Kunde / Lieferant</td>
<td class="listheading">Vorgangsbezeichnung</td>
<td class="listheading">Betrag</td>
<td class="listheading">Bearbeiter</td>
<tr class="listrow[% loop.count % 2 %]">
<td>[% HTML.escape(row.transdate) %]</td>
<td>[% HTML.escape(row.reqdate) %]</td>
- <td><a href="[% edit_url %]&id=[% HTML.url(row.id) %]">[% HTML.escape(row.quonumber) %]</a></td>
- <td>[% HTML.escape(row.customer) %]</td>
+ <td>
+ <a href="[% edit_url %]&vc=[% HTML.url(row.vc) %]&type=[% IF row.vc == 'customer' %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.url(row.id) %]">
+ [% IF row.vc == 'customer' %]
+ Angebot
+ [% ELSE %]
+ Preisanfrage
+ [% END %]
+ [% HTML.escape(row.quonumber) %]
+ </a>
+ </td>
+ <td>
+ [% IF row.vc == 'customer' %]
+ [% HTML.escape(row.customer) %]
+ [% ELSE %]
+ [% HTML.escape(row.vendor) %]
+ [% END %]
+ </td>
<td>[% HTML.escape(row.transaction_description) %]</td>
<td>[% HTML.escape(LxERP.format_amount(row.amount, 2)) %]</td>
<td>[% HTML.escape(row.employee) %]</td>