From 5211ae5ae66fe02dfd9e594ed5c3b5c77a23337c Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Sat, 11 Nov 2023 13:42:48 +0100 Subject: [PATCH] Show posted AA transaction after "Post" When separation of duties is disabled, the transaction is shown after clicking "Post". When enabled, the resulting page shows "Draft posted". With this change, the posted transaction is shown in both cases. --- old/bin/aa.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/old/bin/aa.pl b/old/bin/aa.pl index 6ca2854575..090376f7c4 100644 --- a/old/bin/aa.pl +++ b/old/bin/aa.pl @@ -120,8 +120,6 @@ sub new_screen { sub add { $form->{title} = "Add"; - $form->{callback} = "$form->{script}?__action=add" - unless $form->{callback}; if (defined $form->{type} and $form->{type} eq "credit_note"){ $form->{reverse} = 1; @@ -1329,7 +1327,7 @@ sub approve { . qq|here.|; } else { - $form->info($locale->text('Draft Posted')); + update(); } }