X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fic.pl;h=3765f64a51c323da97ab26fb19f6939621540401;hb=09335d0f463d5fff5b1b620ffc61f3ad48ab793a;hp=0e7fdf533149cf957f77d1017a8f158cd9273ad0;hpb=010ec97da07a51f2dc0d11fa326fbed1328082ce;p=kivitendo-erp.git
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 0e7fdf533..3765f64a5 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -30,11 +30,14 @@
# Inventory Control module
#
#======================================================================
+#$locale->text('ea');
use SL::IC;
+
#use SL::PE;
-require "$form->{path}/io.pl";
+require "bin/mozilla/io.pl";
+require "bin/mozilla/common.pl";
1;
@@ -46,11 +49,11 @@ 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;
@@ -77,7 +80,7 @@ sub search {
# $locale->text('Services')
# use JavaScript Calendar or not
- $form->{jsscript} = $jscalendar;
+ $form->{jsscript} = 1;
$jsscript = "";
if ($form->{jsscript}) {
@@ -183,7 +186,7 @@ sub search {
|
| . $locale->text('From') . qq| |
$button1
- | . $locale->text('To') . qq| |
+ | . $locale->text('To (time)') . qq| |
$button2
@@ -233,7 +236,7 @@ sub search {
| . $locale->text('From') . qq| |
$button1
- | . $locale->text('To') . qq| |
+ | . $locale->text('To (time)') . qq| |
$button2
@@ -267,6 +270,8 @@ sub search {
| . $locale->text('Part Number') . qq| |
|
+ | . $locale->text('EAN') . qq| |
+ |
|
@@ -324,7 +329,7 @@ sub search {
. $locale->text('List Price') . qq|
| |
. $locale->text('Sell Price') . qq| |
- |
+ | |
. $locale->text('Last Cost') . qq| |
|
. $locale->text('Line Total') . qq| |
@@ -354,6 +359,8 @@ sub search {
. $locale->text('Subtotal') . qq|
|
. $locale->text('soldtotal') . qq| |
+ |
+ . $locale->text('deliverydate') . qq| |
@@ -368,12 +375,12 @@ $jsscript
-{path}>
{login}>
{password}>
+
@@ -390,6 +397,230 @@ $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} = 1;
+# $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| |
+ |
+
+|;
+
+ $serialnumber = qq|
+ | . $locale->text('Serial Number') . qq| |
+ |
+|;
+
+ $l_serialnumber = qq|
+ |
+ . $locale->text('Serial Number') . qq| |
+|;
+
+
+
+ $form->header;
+
+ print qq|
+
+
+