Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent New button to GL/AR/AP transactions #7702

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading