X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=a6237fab3bd7e4b2e78b12a1d255e2ec73592598;hb=19be3a57dbffa4a66be9f1cffdf5fc2a18332567;hp=62758be3efbdbd2ef29902ba10befc444cf455a1;hpb=66881e5e25590cf9a71b2df6f408efaad144c984;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 62758be3e..a6237fab3 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -313,7 +313,7 @@ sub search { - @@ -2222,7 +2222,7 @@ sub form_header { } $notes = - qq||; + qq||; if (($rows = $form->numtextrows($form->{description}, 40)) > 1) { $description = qq||; @@ -2256,27 +2256,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}) { @@ -2474,15 +2453,6 @@ sub form_header { |; - $aluok = $form->{alu} == 1 ? "checked" : ""; - - $alu .= qq| - - - - |; - $notdiscountableok = ($form->{not_discountable}) == 1 ? "checked" : ""; $notdiscountable .= qq| @@ -2493,8 +2463,7 @@ sub form_header { |; $formel = - qq||; - $formel = ""; + qq||; $imagelinks = qq| + +
 | +  | . $locale->text('Part Number') . qq|  | . $locale->text('Part Description') . qq|
| . $locale->text('ADR') . qq|
{gv}>
| - . $locale->text('Aluartikel') . qq|
@@ -2629,16 +2598,19 @@ sub form_header { $buchungsgruppe $linkaccounts - $adr
| . $locale->text('Notes') . qq|| . $locale->text('Formula') . qq|
$notes + $formel +
@@ -2683,7 +2655,6 @@ sub form_header { $notdiscountable $vegv $shop - $alu $obsolete
@@ -3064,9 +3035,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 +3189,7 @@ sub save_as_new { $lxdebug->enter_sub(); $form->{id} = 0; + $form->{partnumber} = ""; &save; $lxdebug->leave_sub();