From 5f90769d643026e9eb14155d6e339ab913210f5c Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Thu, 16 Nov 2023 21:08:12 +0100 Subject: [PATCH 1/2] Fix ISE/500 error on Reverse for AR/AP Fixes #7715 --- old/bin/aa.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/old/bin/aa.pl b/old/bin/aa.pl index 14a12960f9..63a8481862 100644 --- a/old/bin/aa.pl +++ b/old/bin/aa.pl @@ -258,6 +258,9 @@ sub post_reversing { WHERE id = ? QUERY } + + delete $form->{__action}; + display_form(); } sub display_form { From 69bf9cc090f510a1b4731371e0f42e0cbf655eae Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Thu, 16 Nov 2023 21:08:57 +0100 Subject: [PATCH 2/2] Fix missing 'Reverse' button on posted AR/AP transactions --- old/bin/aa.pl | 3 --- 1 file changed, 3 deletions(-) diff --git a/old/bin/aa.pl b/old/bin/aa.pl index 63a8481862..80c879c6d7 100644 --- a/old/bin/aa.pl +++ b/old/bin/aa.pl @@ -1127,9 +1127,6 @@ sub form_footer { if ($form->{reversing}) { delete $button{$_} for (qw(schedule update save_temp edit_and_save)); } - if (not $form->{approved}) { - delete $button{reverse}; - } for ( sort { $button{$a}->{ndx} <=> $button{$b}->{ndx} }