Skip to content

Commit

Permalink
Show posted AA transaction after "Post"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ehuelsmann committed Nov 11, 2023
1 parent 79436e1 commit 5211ae5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions old/bin/aa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1329,7 +1327,7 @@ sub approve {
. qq|here</a>.</body></html>|;

} else {
$form->info($locale->text('Draft Posted'));
update();
}
}

Expand Down

0 comments on commit 5211ae5

Please sign in to comment.