summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-05-25 18:27:28 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-05-25 18:27:28 +0000
commitdd779e7ff888ad90d0cefff239b5e77fc80d991e (patch)
tree4cea8b5691ba1bccbdbe092f1cec15527b42cefa /bin
parent6bff0e985bd6e56bf31184df4d5ca460d5545f34 (diff)
Fixes to per-transaction separation of duties
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2155 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r--bin/aa.pl5
-rw-r--r--bin/gl.pl5
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/aa.pl b/bin/aa.pl
index b02d69a8..9d4d5ed1 100644
--- a/bin/aa.pl
+++ b/bin/aa.pl
@@ -889,6 +889,11 @@ sub form_footer {
{ ndx => 8, key => 'D', value => $locale->text('Delete') },
);
+ if ($form->{separate_duties}){
+ $button{post}->{value} = $locale->text('Save');
+ $form->hide_form('separate_duties');
+ }
+
if ( $form->{id} ) {
if ( $form->{locked} || ( $transdate && $transdate <= $closedto ) )
diff --git a/bin/gl.pl b/bin/gl.pl
index c79d56d2..9a0d8572 100644
--- a/bin/gl.pl
+++ b/bin/gl.pl
@@ -1256,6 +1256,11 @@ sub form_footer {
{ ndx => 8, key => 'D', value => $locale->text('Delete') },
);
+ if ($form->{separate_duties}){
+ $form->hide_form('separate_duties');
+ $button{post}->{value} = $locale->text('Save');
+ }
+
%a = ();
if ( $form->{id} ) {