]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ar.pl
history für Zahlungen ar/ap/is/ir und Zahlungsein- und ausgang
[mfinanz.git] / bin / mozilla / ar.pl
index 6a024a3cffaf8aaa9a6baba84d62b9c5ac723c39..25ef7cee2412372983f3ad3aabcc414258795faf 100644 (file)
@@ -620,8 +620,15 @@ sub post_payment {
 
   ($form->{AR})      = split /--/, $form->{AR};
   ($form->{AR_paid}) = split /--/, $form->{AR_paid};
-  $form->redirect($locale->text('Payment posted!')) if (AR->post_payment(\%myconfig, \%$form));
-  $form->error($locale->text('Cannot post payment!'));
+  if (AR->post_payment(\%myconfig, \%$form)) {
+    $form->{snumbers}  = qq|invnumber_| . $form->{invnumber};
+    $form->{what_done} = 'invoice';
+    $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();
 }