summaryrefslogtreecommitdiff
path: root/bin/ir.pl
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-30 21:56:23 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-30 21:56:23 +0000
commit5c3b91065d9f1af0870cda321d5717dc0a21eb09 (patch)
tree0ee1581f8a62c95bc689e7347c836c1faeab50ac /bin/ir.pl
parente5e9ad4c580d9303e6edfd46ad2ad0d96b5cfd7a (diff)
Updating buttons
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@402 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/ir.pl')
-rwxr-xr-xbin/ir.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/bin/ir.pl b/bin/ir.pl
index f3f69555..3ac3b403 100755
--- a/bin/ir.pl
+++ b/bin/ir.pl
@@ -587,24 +587,24 @@ sub form_footer {
# type=submit $locale->text('Delete')
if (! $form->{readonly}) {
- %button = ('Update' => { ndx => 1, key => 'U', value => $locale->text('Update') },
- 'Post' => { ndx => 3, key => 'O', value => $locale->text('Post') },
- 'Post as new' => { ndx => 5, key => 'N', value => $locale->text('Post as new') },
- 'Purchase Order' => { ndx => 6, key => 'L', value => $locale->text('Purchase Order') },
- 'Schedule' => { ndx => 7, key => 'H', value => $locale->text('Schedule') },
- 'Delete' => { ndx => 8, key => 'D', value => $locale->text('Delete') },
+ %button = ('update' => { ndx => 1, key => 'U', value => $locale->text('Update') },
+ 'post' => { ndx => 3, key => 'O', value => $locale->text('Post') },
+ 'post_as_new' => { ndx => 5, key => 'N', value => $locale->text('Post as new') },
+ 'purchase_order' => { ndx => 6, key => 'L', value => $locale->text('Purchase Order') },
+ 'schedule' => { ndx => 7, key => 'H', value => $locale->text('Schedule') },
+ 'delete' => { ndx => 8, key => 'D', value => $locale->text('Delete') },
);
if ($form->{id}) {
if ($form->{locked}) {
- for ("Post", "Delete") { delete $button{$_} }
+ for ("post", "delete") { delete $button{$_} }
}
} else {
if ($transdate > $closedto) {
- for ('Update', 'Post', 'Schedule') { $a{$_} = 1 }
+ for ('update', 'post', 'schedule') { $a{$_} = 1 }
}
for (keys %button) { delete $button{$_} if ! $a{$_} }
}