X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fic.pl;h=16205a7b183fe7ddcb68a10f2f71a4589a8431c8;hb=ebef09a8bde1d401fc7b0d60cfe09393e9a84c0f;hp=0e7fdf533149cf957f77d1017a8f158cd9273ad0;hpb=07d71c33315605fcfc450d3b9abf0fd10e92bed5;p=kivitendo-erp.git
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 0e7fdf533..16205a7b1 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -30,8 +30,10 @@
# Inventory Control module
#
#======================================================================
+#$locale->text('ea');
use SL::IC;
+
#use SL::PE;
require "$form->{path}/io.pl";
@@ -49,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;
@@ -183,7 +185,7 @@ sub search {
|
| . $locale->text('From') . qq| |
$button1
- | . $locale->text('To') . qq| |
+ | . $locale->text('To (time)') . qq| |
$button2
@@ -233,7 +235,7 @@ sub search {
| . $locale->text('From') . qq| |
$button1
- | . $locale->text('To') . qq| |
+ | . $locale->text('To (time)') . qq| |
$button2
@@ -267,6 +269,8 @@ sub search {
| . $locale->text('Part Number') . qq| |
|
+ | . $locale->text('EAN') . qq| |
+ |
|
@@ -324,7 +328,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 +358,8 @@ sub search {
. $locale->text('Subtotal') . qq|
|
. $locale->text('soldtotal') . qq| |
+ |
+ . $locale->text('deliverydate') . qq| |
@@ -374,6 +380,7 @@ $jsscript
+
@@ -390,6 +397,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| |
+ |
+
+|;
+
+ $serialnumber = qq|
+ | . $locale->text('Serial Number') . qq| |
+ |
+|;
+
+ $l_serialnumber = qq|
+ |
+ . $locale->text('Serial Number') . qq| |
+|;
+
+
+
+ $form->header;
+
+ print qq|
+
+
+