X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fic.pl;h=3765f64a51c323da97ab26fb19f6939621540401;hb=991315859c7b0f25da49baad4822492510b6b3bb;hp=3df2e51ed60d680415ea750787642b39997b9196;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index 3df2e51ed..3765f64a5 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -30,13 +30,17 @@ # Inventory Control module # #====================================================================== - +#$locale->text('ea'); use SL::IC; -require "$form->{path}/io.pl"; +#use SL::PE; + +require "bin/mozilla/io.pl"; +require "bin/mozilla/common.pl"; 1; + # end of main sub add { @@ -44,10 +48,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}&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 +64,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}) - { + $form->{jsscript} = 1; + $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| |
|
@@ -331,35 +375,260 @@ $jsscript
-{path}>
{login}>
{password}>
+