Skip to content

Commit

Permalink
Merge pull request #7702 from ehuelsmann/feature/new-button
Browse files Browse the repository at this point in the history
Consistent New button to GL/AR/AP transactions
  • Loading branch information
ehuelsmann authored Nov 11, 2023
2 parents 49f25b8 + c6b48ac commit 9fea0e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion old/bin/aa.pl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ sub copy_to_new{
}

sub new_screen {
my @reqprops = qw(ARAP vc dbh stylesheet batch_id script type _locale _wire);
my @reqprops = qw(
ARAP vc dbh stylesheet batch_id script type _locale _wire invdate
);
$oldform = $form;
$form = {};
bless $form, 'Form';
Expand Down
2 changes: 1 addition & 1 deletion old/bin/gl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ sub new {
}
for my $fld (
qw(description reference rowcount id workflow_id
transdate notes reversing reversing_reference )
notes reversing reversing_reference )
) {
delete $form->{$fld};
}
Expand Down
1 change: 1 addition & 0 deletions workflows/ar-ap.workflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
<state name="POSTED">
<action name="save_info" resulting_state="NOCHANGE" />
<action name="copy_to_new" resulting_state="NOCHANGE" />
<action name="new_screen" resulting_state="NOCHANGE" />
<action name="void" resulting_state="VOIDED">
<condition name="is_sales_invoice" />
</action>
Expand Down
2 changes: 2 additions & 0 deletions workflows/gl.workflow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<condition name="acl-draft-modify" />
</action>
<action name="copy_to_new" resulting_state="NOCHANGE" />
<action name="new" resulting_state="NOCHANGE" />
<action name="update" resulting_state="NOCHANGE" />
<action name="schedule" resulting_state="NOCHANGE">
<condition name="!is-batch-member" />
Expand All @@ -52,6 +53,7 @@
<state name="POSTED">
<action name="save_info" resulting_state="NOCHANGE" />
<action name="copy_to_new" resulting_state="NOCHANGE" />
<action name="new" resulting_state="NOCHANGE" />
<action name="reverse" resulting_state="REVERSED" />
<action name="schedule" resulting_state="NOCHANGE" />
<action name="print" resulting_state="NOCHANGE" />
Expand Down

0 comments on commit 9fea0e5

Please sign in to comment.