summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-03-10 23:00:27 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-03-10 23:00:27 +0000
commit3f470cf971b570b1cad74e413466eba34eb33297 (patch)
tree5b8c19b1c543de74c68d1f6580d92afbbd288afd /LedgerSMB
parent62d77db4b9504fd0dd28a677bebb064fc584c79c (diff)
Adding an option to search for batches for any user
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2103 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Batch.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Batch.pm b/LedgerSMB/Batch.pm
index 127ee791..142a6bb4 100644
--- a/LedgerSMB/Batch.pm
+++ b/LedgerSMB/Batch.pm
@@ -17,6 +17,7 @@ sub delete_voucher {
$self->{dbh}->commit;
}
+
sub get_search_criteria {
$self = shift @_;
@{$self->{batch_classes}} = $self->exec_method(
@@ -26,6 +27,7 @@ sub get_search_criteria {
@{$self->{batch_users}} = $self->exec_method(
funcname => 'batch_get_users'
);
+ unshift @{$self->{batch_users}}, {username => $self->{_locale}->text('Any'), id => '0', entity_id => ''};
}
sub get_search_results {