From: Sven Schöling Date: Wed, 3 Mar 2010 10:45:13 +0000 (+0100) Subject: Lieferungen für Lieferanten in der Stammdaten->Lieferantenmaske hatte ein paar Daten... X-Git-Tag: release-2.6.1beta1~44^2~13 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5ee57de8a130f13418e9013102963e4336e72f6d;p=kivitendo-erp.git Lieferungen für Lieferanten in der Stammdaten->Lieferantenmaske hatte ein paar Daten nicht korrekt auf Lieferant geändert. Fix für Bug 1130. --- 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) || ' ' %]