From 3f470cf971b570b1cad74e413466eba34eb33297 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 10 Mar 2008 23:00:27 +0000 Subject: 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 --- LedgerSMB/Batch.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'LedgerSMB') 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 { -- cgit v1.2.3