X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fic.pl;h=df330d3ac58e86fa7484ad8136f4d9dd66f0ee44;hb=eaf4d4830c5b449170dbef0d0ad5f88863f1e8bd;hp=3df2e51ed60d680415ea750787642b39997b9196;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 3df2e51ed..df330d3ac 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -30,13 +30,16 @@ # Inventory Control module # #====================================================================== - +#$locale->text('ea'); use SL::IC; +#use SL::PE; + require "$form->{path}/io.pl"; 1; + # end of main sub add { @@ -44,10 +47,13 @@ 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}" unless $form->{callback}; + $form->{callback} = + "$form->{script}?action=add&item=$form->{item}&path=$form->{path}&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; @@ -57,68 +63,77 @@ sub add { sub search { $lxdebug->enter_sub(); - $form->{title} = (ucfirst $form->{searchitems})."s"; + $form->{title} = (ucfirst $form->{searchitems}) . "s"; $form->{title} = $locale->text($form->{title}); # switch for backward sorting $form->{revers} = 0; + # memory for which table was sort at last time $form->{lastsort} = ""; + # counter for added entries to top100 $form->{ndxs_counter} = 0; -# $locale->text('Parts') -# $locale->text('Services') + # $locale->text('Parts') + # $locale->text('Services') # use JavaScript Calendar or not $form->{jsscript} = $jscalendar; - $jsscript = ""; - if ($form->{jsscript}) - { + $jsscript = ""; + if ($form->{jsscript}) { + # with JavaScript Calendar $button1 = qq|
- | |.$locale->text('Sold').qq| | +| . $locale->text('Sold') . qq| | |
- | |.$locale->text('Ordered').qq| | +| . $locale->text('Ordered') . qq| | |
- | |.$locale->text('Quoted').qq| | +| . $locale->text('Quoted') . qq| |
- | |.$locale->text('Bought').qq| | +| . $locale->text('Bought') . qq| | - | |.$locale->text('Sold').qq| | +| . $locale->text('Sold') . qq| |
- | |.$locale->text('On Order').qq| | +| . $locale->text('On Order') . qq| | - | |.$locale->text('Ordered').qq| | +| . $locale->text('Ordered') . qq| |
- | |.$locale->text('RFQ').qq| | +| . $locale->text('RFQ') . qq| | - | |.$locale->text('Quoted').qq| | +| . $locale->text('Quoted') . qq| |
|.$locale->text('From').qq| | +| . $locale->text('From') . qq| | $button1 -|.$locale->text('To').qq| | +| . $locale->text('To (time)') . qq| | $button2
---|
|.$locale->text('Part Number').qq| | +| . $locale->text('Part Number') . qq| | + | | . $locale->text('EAN') . qq| | +||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|.$locale->text('Part Description').qq| | +| + . $locale->text('Part Description') . qq| | ||||||||||||||||||||||||||||||||||||||
|.$locale->text('Group').qq| | +| . $locale->text('Group') . qq| | $serialnumber | |||||||||||||||||||||||||||||||||||||
|.$locale->text('Drawing').qq| | +| . $locale->text('Drawing') . qq| | - | |.$locale->text('Microfiche').qq| | +| . $locale->text('Microfiche') . qq| | |||||||||||||||||||||||||||||||||||
- |.$locale->text('Active').qq| + | + . $locale->text('Active') . qq| $onhand - |.$locale->text('Obsolete').qq| - |.$locale->text('Orphaned').qq| + | + . $locale->text('Obsolete') . qq| + | + . $locale->text('Orphaned') . qq| | |||||||||||||||||||||||||||||||||||||||
|.$locale->text('Include in Report').qq| | +| + . $locale->text('Include in Report') . qq| |
|
@@ -337,29 +380,257 @@ $jsscript
+