X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=3383316ace35b6504d51637818a490ab4a4d27fa;hb=893bff3a5c0106b467578b470deac53f87173689;hp=93758ec8f15d4c5779ea4e041c42ef5cb8912639;hpb=602a4d98939e03b3533f5b6de426ee7f719cf2e1;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 93758ec8f..3383316ac 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -1491,102 +1491,7 @@ sub form_footer { $auth->assert('part_service_assembly_edit'); - if ($form->{item} eq "assembly") { - - print qq| - - - - - - - -
| . $locale->text('Total') . qq| | . $form->format_amount(\%myconfig, $form->{assemblytotal}, 2) . qq|
- - - {assembly_rows}> -|; - } - - print qq| - - - - {vc}> - -
- - - -
- - |; - -####### moved into makemodel_row ############# -# unless ($form->{item} eq "service") { -# print qq| -# {makemodel_rows}> -# |; -# } - - print qq| - {price_rows}>|; - - print qq| - |; - - if ($form->{id}) { - - if (!$form->{previousform}) { - print qq| - |; - } - - if ($form->{orphaned}) { - if (!$form->{previousform}) { - if ($form->{item} eq 'assembly') { - if (!$form->{onhand}) { - print qq| - |; - } - } else { - print qq| - |; - } - } - } - } - - if (!$form->{previousform}) { - if ($form->{menubar}) { - require "bin/mozilla/menu.pl"; - &menubar; - } - } -# button for saving history - if($form->{id} ne "") { - print qq| - {id} - . qq|); name=history id=history value=| - . $locale->text('history') - . qq|>|; - } -# /button for saving history - print qq| - - - - - - - -|; + print $form->parse_html_template('ic/form_footer'); $lxdebug->leave_sub(); } @@ -1595,7 +1500,7 @@ sub makemodel_row { $lxdebug->enter_sub(); my ($numrows) = @_; - my @mm_data = grep { $_->{make} ne '' || $_->{model} ne '' } map +{ make => $form->{"make_$_"}, model => $form->{"model_$_"} }, 1 .. $numrows; + my @mm_data = grep { any { $_ ne '' } @$_{qw(make model)} } map +{ make => $form->{"make_$_"}, model => $form->{"model_$_"} }, 1 .. $numrows; print $form->parse_html_template('ic/makemodel', { MM_DATA => [ @mm_data, {} ], mm_rows => scalar @mm_data + 1 }); $lxdebug->leave_sub();