- # departments
-# if ($form->{all_departments}) {
-# $form->{selectdepartment} = "<option>\n";
-# $form->{department} = "$form->{department}--$form->{department_id}";
-#
-# map {
-# $form->{selectdepartment} .= "<option>$_->{description}--$_->{id}</option>\n"
-# } @{ $form->{all_departments} };
-# }
+ if ($form->{"oldcustomer"} !~ m/--\d+$/ && $form->{"customer_id"}) {
+ $form->{"oldcustomer"} .= qq|--$form->{"customer_id"}|
+ }
+
+
+# $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}";
+# $form->{selectcustomer} = 1;