]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Debitoren/Kreditorenbuchungen. Buchungsnummer als Info ausgeben
authorJan Büren <jan@kivitendo-premium.de>
Tue, 1 Aug 2017 09:25:35 +0000 (11:25 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Tue, 1 Aug 2017 09:25:35 +0000 (11:25 +0200)
Buchungsnummer ist im gesamten Programm eindeutig und
für die Verknüpfung vom Papierbeleg zur Buchung ein sinnvoller
Nummernkreis. Dementsprechend wie bei den Dialogbuchungen diese
an den Bearbeiter zurückmelden.

bin/mozilla/ap.pl
bin/mozilla/ar.pl

index 790cb69c0b3af3028210631dcc1fac43bf98e5eb..fe978cb2c9f4ae4b9b97fc3b9a9bac65de0dd1fa 100644 (file)
@@ -826,7 +826,11 @@ sub post {
     # no restore_from_session_id needed. we like to have a newly generated
     # list of invoices for bank transactions
     print $form->redirect_header($form->{callback}) if ($form->{callback} =~ /BankTransaction/);
-    $form->redirect($locale->text('AP transaction posted.')) unless $inline;
+    $form->redirect($locale->text('AP transaction posted.') . ' ' . $locale->text('ID') . ': ' . $form->{id}) unless $inline;
+    # TODO Add callback/return flag in myconfig
+    # With version 3.5 we can add documents, but only after posting. there should be a flag in myconfig for the user
+    # $form->{callback} ||= 'ap.pl?action=edit&id=' . $form->{id} if $myconfig{no_reset_arap};
+
   } else {
     $form->error($locale->text('Cannot post transaction!'));
   }
index 9d1784f78f2d3d6d70a073959a9ed854e0435afc..ec028e886dfc52bcc046256fa3042c83ebed93e9 100644 (file)
@@ -792,7 +792,7 @@ sub post {
   }
   # /saving the history
 
-  $form->redirect($locale->text("AR transaction posted.")) unless $inline;
+  $form->redirect($locale->text('AR transaction posted.') . ' ' . $locale->text('ID') . ': ' . $form->{id}) unless $inline;
 
   $main::lxdebug->leave_sub();
 }