From a2198456079f5205681f61e1132a089a8c92c9b1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 1 Aug 2017 11:25:35 +0200 Subject: [PATCH] Debitoren/Kreditorenbuchungen. Buchungsnummer als Info ausgeben MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 6 +++++- bin/mozilla/ar.pl | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 790cb69c0..fe978cb2c 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -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!')); } diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 9d1784f78..ec028e886 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -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(); } -- 2.20.1