Pflichtenhefte: Anzeige von CVars über value_as_text()
[kivitendo-erp.git] / bin / mozilla / ar.pl
index 64efbc7..2960001 100644 (file)
@@ -957,6 +957,9 @@ sub ar_transactions {
   if ($form->{customer}) {
     push @options, $locale->text('Customer') . " : $form->{customer}";
   }
+  if ($form->{cp_name}) {
+    push @options, $locale->text('Contact Person') . " : $form->{cp_name}";
+  }
   if ($form->{department}) {
     my ($department) = split /--/, $form->{department};
     push @options, $locale->text('Department') . " : $department";
@@ -1096,7 +1099,7 @@ sub storno {
 
   # saving the history
   if(!exists $form->{addition} && $form->{id} ne "") {
-    $form->{snumbers} = "ordnumber_$form->{ordnumber}";
+    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
     $form->{addition} = "STORNO";
     $form->save_history;
   }