1 <& elements/search.html,
2 'title' => 'Payables summary by vendor',
5 'count_query' => $count_query,
6 'count_addl' => [ '$%.2f total', ],
14 sub { shift->vendname },
15 sub { shift->vend_class->classname },
23 unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
27 # begin/end/beginning/ending
28 my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, '_date');
29 $search{'_date'} = [ $beginning, $ending ];
31 ($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, 'payment_date');
32 $search{'payment_date'} = [ $beginning, $ending ];
34 $search{'classnum'} = $cgi->param('classnum');
36 my $query = FS::vend_main->search( \%search );
37 my $count_query = delete( $query->{'count_query'} );