X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fic.pl;h=add189593c1f15cdfc24eb6e00c304f508a8ce13;hb=0459dded82ee2c88499f4e46a9f3facba519f4f6;hp=346f7ad59a2cd9e02bd0b64132955fc95205da9b;hpb=6be015fafb81c9553f44b8e06ec3812ba6befe9e;p=kivitendo-erp.git
diff --git a/bin/mozilla/ic.pl b/bin/mozilla/ic.pl
index 346f7ad59..add189593 100644
--- a/bin/mozilla/ic.pl
+++ b/bin/mozilla/ic.pl
@@ -290,14 +290,14 @@ sub update_prices {
#
| . $locale->text('choice part') . qq| |
#
#
-#
-# |
-# | . $locale->text('Part Number') . qq| |
-# | . $locale->text('Part Description') . qq| |
-# | . $locale->text('Unit of measure') . qq| |
-# | . $locale->text('Sell Price') . qq| |
-# | . $locale->text('soldtotal') . qq| |
-#
|;
+#
+# |
+# | . $locale->text('Part Number') . qq| |
+# | . $locale->text('Part Description') . qq| |
+# | . $locale->text('Unit of measure') . qq| |
+# | . $locale->text('Sell Price') . qq| |
+# | . $locale->text('soldtotal') . qq| |
+#
|;
#
# my $j = 0;
# my $i = $form->{rows};
@@ -308,20 +308,20 @@ sub update_prices {
# |;
# if ($j == 1) {
# print qq|
-# | |;
+# | |;
# } else {
# print qq|
-# | |;
+# | |;
# }
# print qq|
-# $form->{"partnumber_$j"} |
-# $form->{"description_$j"} |
-# $form->{"unit_$j"} |
-# $form->{"sellprice_$j"} |
-# $form->{"soldtotal_$j"} |
+# $form->{"partnumber_$j"} |
+# $form->{"description_$j"} |
+# $form->{"unit_$j"} |
+# $form->{"sellprice_$j"} |
+# $form->{"soldtotal_$j"} |
#
#
-# |;
+# |;
# }
#
# print qq|
@@ -1781,8 +1781,8 @@ sub save {
# saving the history
if(!exists $form->{addition}) {
$form->{snumbers} = qq|partnumber_| . $form->{partnumber};
- $form->{addition} = "SAVED";
- $form->save_history($form->dbconnect(\%myconfig));
+ $form->{addition} = "SAVED";
+ $form->save_history($form->dbconnect(\%myconfig));
}
# /saving the history
$parts_id = $form->{id};
@@ -1914,8 +1914,8 @@ sub save_as_new {
# saving the history
if(!exists $form->{addition}) {
$form->{snumbers} = qq|partnumber_| . $form->{partnumber};
- $form->{addition} = "SAVED AS NEW";
- $form->save_history($form->dbconnect(\%myconfig));
+ $form->{addition} = "SAVED AS NEW";
+ $form->save_history($form->dbconnect(\%myconfig));
}
# /saving the history
$form->{id} = 0;
@@ -1935,8 +1935,8 @@ sub delete {
# saving the history
if(!exists $form->{addition}) {
$form->{snumbers} = qq|partnumber_| . $form->{partnumber};
- $form->{addition} = "DELETED";
- $form->save_history($form->dbconnect(\%myconfig));
+ $form->{addition} = "DELETED";
+ $form->save_history($form->dbconnect(\%myconfig));
}
# /saving the history
my $rc = IC->delete(\%myconfig, \%$form);
@@ -2016,7 +2016,7 @@ sub ajax_autocomplete {
my $form = $main::form;
my %myconfig = %main::myconfig;
- $form->{column} ||= 'description';
+ $form->{column} = 'description' unless $form->{column} =~ /^partnumber|description$/;
$form->{$form->{column}} = $form->{q} || '';
$form->{limit} = ($form->{limit} * 1) || 10;
$form->{searchitems} ||= '';