Revision 31a84730
Von Bernd Bleßmann vor mehr als 10 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
470 | 470 |
ON p.id = i.parts_id |
471 | 471 |
|
472 | 472 |
LEFT JOIN oe |
473 |
ON (oe.ordnumber = ${arap}.ordnumber AND NOT ${arap}.ordnumber = '') |
|
473 |
ON (oe.ordnumber = ${arap}.ordnumber AND NOT ${arap}.ordnumber = '' |
|
474 |
AND ". ($arap eq 'ar' ? 'oe.customer_id IS NOT NULL' : 'oe_vendor_id IS NOT NULL') ." ) |
|
474 | 475 |
|
475 | 476 |
${where} |
476 | 477 |
ORDER BY ${arap}.transdate DESC LIMIT 15"; |
templates/webpages/customer_vendor/get_delivery.html | ||
---|---|---|
27 | 27 |
<tr class="listrow[% loop.count % 2 %]"> |
28 | 28 |
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td> |
29 | 29 |
<td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td> |
30 |
<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) || ' ' %][% IF row.oe_id %]</a>[% END %]</td> |
|
30 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
|
31 | 31 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
32 | 32 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
33 | 33 |
<td>[% HTML.escape(row.qty) || ' ' %]</td> |
Auch abrufbar als: Unified diff
Aufträge bei Anzeige der Lieferungen in Kundenstammdaten richtig zuordnen.
Und richtigen Beleg (VK/EK) öffnen.
Behebt #2467.