Skip to content

Commit

Permalink
Merge pull request #7718 from ehuelsmann/fix/master/arap-failing-reve…
Browse files Browse the repository at this point in the history
…rsed

Fix transaction reversal failing REVERSED state
  • Loading branch information
ehuelsmann authored Nov 16, 2023
2 parents 0ee34b0 + aabdf0b commit 2b1ed3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions old/bin/aa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ sub reverse {
$form->{title} = $locale->text('Add');
$form->{reversing_reference} = $form->{invnumber};
$form->{invnumber} .= '-VOID';
my $wf = $form->{_wire}->get( 'workflows' )
->fetch_workflow( 'AR/AP', $form->{workflow_id} );
$wf->execute_action( 'reverse' );

&create_links;

Expand Down

0 comments on commit 2b1ed3f

Please sign in to comment.