From 24708fad478ce6484e7a6987e17ffa58855b7d27 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 30 Jun 2008 21:24:59 +0000 Subject: Adding batch_search_mini api Addressing issue on create batch screen of searching through all batches Adding error message in LedgerSMB::call_procedure if procname is undefined. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2178 4979c152-3d1c-0410-bac9-87ea11338e46 --- scripts/vouchers.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/vouchers.pl b/scripts/vouchers.pl index 152e43e7..7084232b 100644 --- a/scripts/vouchers.pl +++ b/scripts/vouchers.pl @@ -22,7 +22,8 @@ sub create_batch { ]; my $batch = LedgerSMB::Batch->new({base => $request}); - $batch->get_search_results; + $batch->{class_id} = $batch->get_class_id($batch->{batch_type}); + $batch->get_search_results(); my $template = LedgerSMB::Template->new( user =>$request->{_user}, -- cgit v1.2.3