Skip to content

Commit

Permalink
New entry screen instead of empty 'Draft Posted' screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Jul 17, 2023
1 parent 6b1d1c5 commit aad8098
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions old/bin/gl.pl
Expand Up @@ -117,18 +117,11 @@ sub approve {
. qq|here</a>.</body></html>|;

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

sub new {
if ($form->{workflow_id}) {
my $wf = $form->{_wire}->get('workflows')->fetch_workflow(
'GL', $form->{workflow_id}
);
$wf->context->param( transdate => $form->{transdate} );
$wf->execute_action( $form->{__action} );
}
for my $row (0 .. $form->{rowcount}){
for my $fld(qw(accno projectnumber acc debit credit source memo)){
delete $form->{"${fld}_${row}"};
Expand Down

0 comments on commit aad8098

Please sign in to comment.