X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a2546588a9aaf775e7724e9a7b90928933150d9e..fc2f81b98f7a7308d71202c47d98611df6be1a7e:/bin/mozilla/ic.pl diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 563ea5fb7..6218c8e8e 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -38,7 +38,7 @@ use List::MoreUtils qw(any); use SL::AM; use SL::CVar; use SL::IC; -use SL::Helper::Flash; +use SL::Helper::Flash qw(flash); use SL::HTML::Util; use SL::ReportGenerator; @@ -115,9 +115,7 @@ sub search { $form->header; $form->get_lists('partsgroup' => 'ALL_PARTSGROUPS'); - print $form->parse_html_template('ic/search', { %is_xyz, - dateformat => $myconfig{dateformat}, - limit => $myconfig{vclimit}, }); + print $form->parse_html_template('ic/search', { %is_xyz, }); $lxdebug->leave_sub(); } #end search() @@ -1045,7 +1043,7 @@ sub generate_report { 'transdate' => { 'text' => $locale->text('Transdate'), }, 'unit' => { 'text' => $locale->text('Unit'), }, 'weight' => { 'text' => $locale->text('Weight'), }, - 'shop' => { 'text' => $locale->text('Shopartikel'), }, + 'shop' => { 'text' => $locale->text('Shop article'), }, 'projectnumber' => { 'text' => $locale->text('Project Number'), }, 'projectdescription' => { 'text' => $locale->text('Project Description'), }, ); @@ -1382,7 +1380,7 @@ sub generate_report { $row->{quonumber}{link} = $edit_oe_quo_link if (!$ref->{ordnumber}); } else { - $row->{invnumber}{link} = build_std_url("script=$ref->{module}.pl", 'action=edit', 'type=invoice', 'id=' . E($ref->{trans_id}), 'callback'); + $row->{invnumber}{link} = build_std_url("script=$ref->{module}.pl", 'action=edit', 'type=invoice', 'id=' . E($ref->{trans_id}), 'callback') if ($ref->{invnumber}); } # set properties of images @@ -1848,7 +1846,7 @@ sub update { if ($rows > 1) { $form->{makemodel_rows}--; select_item(mode => 'IC', pre_entered_qty => $form->parse_amount(\%myconfig, $form->{"qty_$i"})); - ::end_of_request(); + $::dispatcher->end_request; } else { map { $form->{item_list}[$i]{$_} =~ s/\"/"/g } qw(partnumber description unit partsgroup);