X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fic.pl;h=bccac308a16fbb2b3cef1ed5a872d78b4a30659f;hb=0925bc9f366038b578167a1837098ebe837012c1;hp=81db7674172595f06a9d040ff258d48b9bb33006;hpb=0576299f2aa98125991c4ffcd2f75073ea583d7d;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 81db76741..bccac308a 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -30,10 +30,20 @@ # Inventory Control module # #====================================================================== +#$locale->text('ea'); use SL::IC; -require "$form->{path}/io.pl"; +#use SL::PE; + +# use strict; +#use warnings; + +# global imports +our ($form, $locale, %myconfig, $lxdebug); + +require "bin/mozilla/io.pl"; +require "bin/mozilla/common.pl"; 1; @@ -45,12 +55,12 @@ sub add { $form->{title} = $locale->text('Add ' . ucfirst $form->{item}); $form->{callback} = - "$form->{script}?action=add&item=$form->{item}&path=$form->{path}&login=$form->{login}&password=$form->{password}" + "$form->{script}?action=add&item=$form->{item}&login=$form->{login}&password=$form->{password}" unless $form->{callback}; - $form->{unit} = - ($form->{item} eq 'service') ? $locale->text('hr') : $locale->text('ea'); + $form->{"unit_changeable"} = 1; + IC->get_pricegroups(\%myconfig, \%$form); &link_part; &display_form; @@ -60,6 +70,8 @@ sub add { sub search { $lxdebug->enter_sub(); + my ($button1, $button2, $onhand, $makemodel, $serialnumber, $l_serialnumber, $toplevel, $bought); + $form->{title} = (ucfirst $form->{searchitems}) . "s"; $form->{title} = $locale->text($form->{title}); @@ -76,22 +88,20 @@ sub search { # $locale->text('Services') # use JavaScript Calendar or not - $form->{jsscript} = $jscalendar; - $jsscript = ""; + $form->{jsscript} = 1; + my $jsscript = ""; if ($form->{jsscript}) { # with JavaScript Calendar $button1 = qq|
| - . $locale->text('Part Number') - . qq| | + . $locale->text('Part Number') . qq|| - . $locale->text('Part Description') - . qq| | + . $locale->text('Part Description') . qq| $l_serialnumber| - . $locale->text('Unit of measure') - . qq| | + . $locale->text('Unit of measure') . qq|||
| - . $locale->text('List Price') - . qq| | + . $locale->text('List Price') . qq|| - . $locale->text('Sell Price') - . qq| | -| - . $locale->text('Last Cost') - . qq| | + . $locale->text('Sell Price') . qq| +| + . $locale->text('Last Cost') . qq| | | - . $locale->text('Line Total') - . qq| | + . $locale->text('Line Total') . qq|
| - . $locale->text('Updated') - . qq| | + . $locale->text('Updated') . qq|| - . $locale->text('Bin') - . qq| | + . $locale->text('Bin') . qq|| - . $locale->text('ROP') - . qq| | + . $locale->text('ROP') . qq|| - . $locale->text('Weight') - . qq| | + . $locale->text('Weight') . qq||
| - . $locale->text('Image') - . qq| | + . $locale->text('Image') . qq|| - . $locale->text('Drawing') - . qq| | + . $locale->text('Drawing') . qq|| - . $locale->text('Microfiche') - . qq| | + . $locale->text('Microfiche') . qq|| - . $locale->text('Group') - . qq| | + . $locale->text('Group') . qq||
| - . $locale->text('Subtotal') - . qq| | + . $locale->text('Subtotal') . qq|| - . $locale->text('soldtotal') - . qq| | + . $locale->text('soldtotal') . qq| +| + . $locale->text('deliverydate') . qq| |