From 5ee57de8a130f13418e9013102963e4336e72f6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 3 Mar 2010 11:45:13 +0100 Subject: [PATCH] =?utf8?q?Lieferungen=20f=C3=BCr=20Lieferanten=20in=20der?= =?utf8?q?=20Stammdaten->Lieferantenmaske=20hatte=20ein=20paar=20Daten=20n?= =?utf8?q?icht=20korrekt=20auf=20Lieferant=20ge=C3=A4ndert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1130. --- bin/mozilla/ct.pl | 19 +++++++++---------- templates/webpages/ct/get_delivery_de.html | 8 ++++++-- .../webpages/ct/get_delivery_master.html | 8 ++++++-- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 8abe73a12..b0f72b43a 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -659,20 +659,19 @@ sub get_shipto { } sub get_delivery { - $main::lxdebug->enter_sub(); + $::lxdebug->enter_sub; - $main::auth->assert('customer_vendor_edit'); - $main::auth->assert('sales_all_edit'); + $::auth->assert('customer_vendor_edit'); + $::auth->assert('sales_all_edit'); - my $form = $main::form; - my %myconfig = %main::myconfig; + CT->get_delivery(\%::myconfig, $::form ); - CT->get_delivery(\%myconfig, \%$form ); - $form->{IS_CUSTOMER} = $form->{db} eq 'customer'; - - print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery'); + print $::form->ajax_response_header, + $::form->parse_html_template('ct/get_delivery', { + is_customer => $::form->{db} eq 'customer', + }); - $main::lxdebug->leave_sub(); + $::lxdebug->leave_sub; } sub delete_shipto { diff --git a/templates/webpages/ct/get_delivery_de.html b/templates/webpages/ct/get_delivery_de.html index ddfd0750a..b7b1823c7 100644 --- a/templates/webpages/ct/get_delivery_de.html +++ b/templates/webpages/ct/get_delivery_de.html @@ -11,13 +11,17 @@ Beschreibung Menge Einheit +[%- IF is_customer %] Verkaufspreis +[%- ELSE %] + Einkaufspreis +[%- END %] [%- FOREACH row = DELIVERY %] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% 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 %] + [% 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) || ' ' %] [% HTML.escape(row.qty) || ' ' %] diff --git a/templates/webpages/ct/get_delivery_master.html b/templates/webpages/ct/get_delivery_master.html index 0ca76e103..1d1833c62 100644 --- a/templates/webpages/ct/get_delivery_master.html +++ b/templates/webpages/ct/get_delivery_master.html @@ -11,13 +11,17 @@ Description Qty Unit +[%- IF is_customer %] Sell Price +[%- ELSE %] + Last Cost +[%- END %] [%- FOREACH row = DELIVERY %] [% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %]  - [% 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 %] + [% 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) || ' ' %] [% HTML.escape(row.qty) || ' ' %] -- 2.20.1