From 052dbdbe21deaa9ecaeacb103cb46b7cb3db9599 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 4 Mar 2010 17:28:45 +0100 Subject: [PATCH] stammdaten -> kunden/lieferanten -> lieferungen waren nicht in der lage rechnungen und buchungen zu unterscheiden. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1299 --- SL/CT.pm | 2 +- doc/changelog | 2 +- templates/webpages/ct/get_delivery_de.html | 6 +++++- templates/webpages/ct/get_delivery_master.html | 6 +++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/SL/CT.pm b/SL/CT.pm index 1b9d91593..a661e8c58 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -941,7 +941,7 @@ sub get_delivery { qq|SELECT s.shiptoname, i.qty $qty_sign, | . qq| ${arap}.id, ${arap}.transdate, ${arap}.invnumber, ${arap}.ordnumber, | . qq| i.description, i.unit, i.sellprice, | . - qq| oe.id AS oe_id | . + qq| oe.id AS oe_id, invoice | . qq|FROM $arap | . qq|LEFT JOIN shipto s ON | . ($arap eq "ar" diff --git a/doc/changelog b/doc/changelog index 2a84350a2..7e547af99 100644 --- a/doc/changelog +++ b/doc/changelog @@ -167,7 +167,7 @@ 1051 1055 1057 1058 1072 1073 1077 1079 1081 1082 1095 1098 1100 1101 1108 1110 1118 1125 1127 1130 1133 1135 1136 1138 1144 1146 1147 1150 1151 1155 1164 1173 1177 1186 1188 1190 1191 1195 1197 1198 1199 1200 1201 1209 1213 - 1243 1248 1250 1262 1286 1287 1289 1294 + 1243 1248 1250 1262 1286 1287 1289 1294 1299 2009-06-02 - Version 2.6.0 diff --git a/templates/webpages/ct/get_delivery_de.html b/templates/webpages/ct/get_delivery_de.html index b7b1823c7..a8c0d9798 100644 --- a/templates/webpages/ct/get_delivery_de.html +++ b/templates/webpages/ct/get_delivery_de.html @@ -18,9 +18,13 @@ [%- END %] [%- FOREACH row = DELIVERY %] +[%- + row.script = is_customer ? ( row.invoice ? 'is' : 'ar' ) + : ( row.invoice ? 'ir' : 'ap' ) +-%] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] + [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] diff --git a/templates/webpages/ct/get_delivery_master.html b/templates/webpages/ct/get_delivery_master.html index 1d1833c62..156bd11e8 100644 --- a/templates/webpages/ct/get_delivery_master.html +++ b/templates/webpages/ct/get_delivery_master.html @@ -18,9 +18,13 @@ [%- END %] [%- FOREACH row = DELIVERY %] +[%- + row.script = is_customer ? ( row.invoice ? 'is' : 'ar' ) + : ( row.invoice ? 'ir' : 'ap' ) +-%] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] + [% IF row.id %][% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %][% END %] [% IF row.oe_id %][% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %][% END %] [% HTML.escape(row.transdate) || ' ' %] [% HTML.escape(row.description) || ' ' %] -- 2.20.1