]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/is.pl
history für Zahlungen ar/ap/is/ir und Zahlungsein- und ausgang
[mfinanz.git] / bin / mozilla / is.pl
index c330ec2f5220d0edfce9a6cd7def07715db2a060..c2fc22b34c7b7674934e7e7f5bd35a4cb17a84ee 100644 (file)
@@ -689,10 +689,15 @@ sub post_payment {
   ($form->{AR})      = split /--/, $form->{AR};
   ($form->{AR_paid}) = split /--/, $form->{AR_paid};
   relink_accounts();
-  $form->redirect($locale->text('Payment posted!'))
-      if (IS->post_payment(\%myconfig, \%$form));
-    $form->error($locale->text('Cannot post payment!'));
-
+  if ( IS->post_payment(\%myconfig, \%$form) ) {
+    $form->{snumbers}  = qq|invnumber_| . $form->{invnumber};
+    $form->{what_done} = $form->{type};
+    $form->{addition}  = "PAYMENT POSTED";
+    $form->save_history;
+    $form->redirect($locale->text('Payment posted!'))
+  } else {
+   $form->error($locale->text('Cannot post payment!'));
+  };
 
   $main::lxdebug->leave_sub();
 }