Neue Verkaufsberichtvariante mit Umsatz-Sortierung
[kivitendo-erp.git] / bin / mozilla / gl.pl
index d2e0f9c..89359ad 100644 (file)
@@ -967,7 +967,7 @@ sub yes {
   if (GL->delete_transaction(\%myconfig, \%$form)){
     # saving the history
       if(!exists $form->{addition} && $form->{id} ne "") {
-        $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
+        $form->{snumbers} = qq|glnumber_| . $form->{id};
         $form->{addition} = "DELETED";
         $form->save_history;
       }
@@ -1139,8 +1139,9 @@ sub post_transaction {
   }
   undef($form->{callback});
   # saving the history
+  
   if(!exists $form->{addition} && $form->{id} ne "") {
-    $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
+    $form->{snumbers} = qq|glnumber_| . $form->{id};
     $form->{addition} = "SAVED";
     $form->{what_done} = $locale->text("Buchungsnummer") . " = " . $form->{id};
     $form->save_history;
@@ -1209,7 +1210,7 @@ sub storno {
 
   # saving the history
   if(!exists $form->{addition} && $form->{id} ne "") {
-    $form->{snumbers} = "ordnumber_$form->{ordnumber}";
+    $form->{snumbers} = "glnumber_$form->{id}";
     $form->{addition} = "STORNO";
     $form->save_history;
   }