From 269526288e3a87468074e92e320a253d4cd8d28a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sat, 12 Aug 2017 16:54:31 +0200 Subject: [PATCH] Kontoauszug verbuchen -> Buchung erstellen -> Dialogbuchung nur abs() Ob die Zahlung positiv oder negativ ist, bestimmt die Soll und Haben in der Maske Dialogbuchung und liegt somit in der Hand des Anwenders, in welche Vorlage er buchen will. --- SL/Controller/BankTransaction.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 6684b8afd..85e96749f 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -888,7 +888,7 @@ sub load_gl_record_template_url { controller => 'gl.pl', action => 'load_record_template', id => $template->id, - 'form_defaults.amount_1' => -1 * $self->transaction->amount, + 'form_defaults.amount_1' => abs($self->transaction->amount), # always positive 'form_defaults.transdate' => $self->transaction->transdate_as_date, 'form_defaults.callback' => $self->callback, ); -- 2.20.1