X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=56c698e80e472cb4db65d76efff583b823de33a4;hb=a25ac4907df1aca0db5fd0017b96e5d0bc5eadf1;hp=62758be3efbdbd2ef29902ba10befc444cf455a1;hpb=66881e5e25590cf9a71b2df6f408efaad144c984;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 62758be3e..56c698e80 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -185,7 +185,7 @@ sub search {   | . $locale->text('From') . qq| $button1 - | . $locale->text('To') . qq| + | . $locale->text('To (time)') . qq| $button2 @@ -235,7 +235,7 @@ sub search { | . $locale->text('From') . qq| $button1 - | . $locale->text('To') . qq| + | . $locale->text('To (time)') . qq| $button2 @@ -313,7 +313,7 @@ sub search { - @@ -1471,14 +1471,8 @@ sub addtop100 { |; + . $locale->text('choice') . qq|"> - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - - print qq| @@ -1596,7 +1590,7 @@ sub generate_report { if ($form->{transdateto}) { $callback .= "&transdateto=$form->{transdateto}"; $option .= "\n
" - . $locale->text('To') + . $locale->text('To (time)') . " " . $locale->date(\%myconfig, $form->{transdateto}, 1); } @@ -2009,14 +2003,8 @@ sub generate_report { print qq| |; + . $locale->text('Add') . qq|"> - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - - print qq| @@ -2071,6 +2059,8 @@ sub edit { IC->get_part(\%myconfig, \%$form); + $form->{"original_partnumber"} = $form->{"partnumber"}; + $form->{title} = $locale->text('Edit ' . ucfirst $form->{item}); &link_part; @@ -2222,7 +2212,7 @@ sub form_header { } $notes = - qq||; + qq||; if (($rows = $form->numtextrows($form->{description}, 40)) > 1) { $description = qq||; @@ -2256,27 +2246,6 @@ sub form_header { |; - $form->{selectadr} = ""; - if (@{ $form->{ADR} }) { - foreach $item (@{ $form->{ADR} }) { - if ($item->{id} == $form->{adr_id}) { - $form->{selectadr} .= - " - - - |; - - # set option foreach $item (qw(IC IC_income IC_expense)) { if ($form->{$item}) { @@ -2353,11 +2322,6 @@ sub form_header { -
 | +  | . $locale->text('Part Number') . qq|  | . $locale->text('Part Description') . qq|
| . $locale->text('ADR') . qq|
{weight}> -   - $form->{weightunit} - {weightunit}> -
@@ -2388,11 +2352,6 @@ sub form_header {  $form->{weight} {weight}> - -   - $form->{weightunit} - {weightunit}> - @@ -2474,15 +2433,6 @@ sub form_header { {gv}> |; - $aluok = $form->{alu} == 1 ? "checked" : ""; - - $alu .= qq| - - | - . $locale->text('Aluartikel') . qq| - - |; - $notdiscountableok = ($form->{not_discountable}) == 1 ? "checked" : ""; $notdiscountable .= qq| @@ -2493,8 +2443,7 @@ sub form_header { |; $formel = - qq||; - $formel = ""; + qq||; $imagelinks = qq| @@ -2592,6 +2541,7 @@ sub form_header { {rowcount}> + @@ -2629,16 +2579,19 @@ sub form_header {
$buchungsgruppe $linkaccounts - $adr
| . $locale->text('Notes') . qq| + | . $locale->text('Formula') . qq| $notes + + $formel + @@ -2683,7 +2636,6 @@ sub form_header { $notdiscountable $vegv $shop - $alu $obsolete @@ -2776,13 +2728,6 @@ sub form_footer { } } - if (!$form->{previousform}) { - if ($form->{menubar}) { - require "$form->{path}/menu.pl"; - &menubar; - } - } - print qq| @@ -3064,9 +3009,12 @@ sub update { sub save { $lxdebug->enter_sub(); - # check if there is a part number + # check if there is a part number - commented out, cause there is an automatic allocation of numbers # $form->isblank("partnumber", $locale->text(ucfirst $form->{item}." Part Number missing!")); + # check if there is a description + $form->isblank("description", $locale->text("Part Description missing!")); + if ($form->{obsolete}) { $form->error( $locale->text( @@ -3215,6 +3163,10 @@ sub save_as_new { $lxdebug->enter_sub(); $form->{id} = 0; + if ($form->{"original_partnumber"} && + ($form->{"partnumber"} eq $form->{"original_partnumber"})) { + $form->{partnumber} = ""; + } &save; $lxdebug->leave_sub();