X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=1f45b3a34acc6cd3a75b2e50cdc74b0cb1102b89;hb=aacd5750af1d2371dff2abd2db5f6f5f0cca02e6;hp=ef246fa3dd41073cdecb6c07208366eb15eee7f3;hpb=9b3c19f327c600ad9bd08a373176b1cf100dbd61;p=kivitendo-erp.git diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl index ef246fa3d..1f45b3a34 100644 --- a/bin/mozilla/ic.pl +++ b/bin/mozilla/ic.pl @@ -51,8 +51,8 @@ sub add { "$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; @@ -313,7 +313,7 @@ sub search {
| + | | . $locale->text('Part Number') . qq| | | . $locale->text('Part Description') . qq| | @@ -326,7 +326,7 @@ sub search { . $locale->text('List Price') . qq|| . $locale->text('Sell Price') . qq| | -| + | | . $locale->text('Last Cost') . qq| | | . $locale->text('Line Total') . qq| | @@ -378,6 +378,7 @@ $jsscript + @@ -394,6 +395,232 @@ $jsscript $lxdebug->leave_sub(); } #end search() + +sub search_update_prices { + $lxdebug->enter_sub(); + + $form->{title} = $locale->text('Update prices'); + IC->get_pricegroups(\%myconfig, \%$form); + + # use JavaScript Calendar or not +# $form->{jsscript} = $jscalendar; +# $jsscript = ""; +# if ($form->{jsscript}) { +# +# # with JavaScript Calendar +# $button1 = qq| +#+# | text('button') . qq|> | +# |; +# $button2 = qq| +#+# | text('button') . qq|> | +# |; +# +# #write Trigger +# $jsscript = +# Form->write_trigger(\%myconfig, "2", "transdatefrom", "BL", "trigger1", +# "transdateto", "BL", "trigger2"); +# } else { +# +# # without JavaScript Calendar +# $button1 = qq| +#|; +# $button2 = qq| +# | |; +# } + + $onhand = qq| + | + . $locale->text('On Hand') . qq| + | + . $locale->text('Short') . qq| +|; + + $makemodel = qq| + |
| . $locale->text('Make') . qq| | ++ | | . $locale->text('Model') . qq| | ++ | | . $locale->text('Serial Number') . qq| | ++|; + + $l_serialnumber = qq| + | | + . $locale->text('Serial Number') . qq| | +|; + + + + $form->header; + + print qq| + + +
---|