projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contact self-service pw changes, RT#37023
[freeside.git]
/
httemplate
/
search
/
vend_bill.html
diff --git
a/httemplate/search/vend_bill.html
b/httemplate/search/vend_bill.html
index
ddcc0c9
..
9bc74cf
100644
(file)
--- a/
httemplate/search/vend_bill.html
+++ b/
httemplate/search/vend_bill.html
@@
-7,6
+7,7
@@
'count_query' => $count_query,
'count_addl' => [ '$%.2f total', ],
'header' => [ 'Date',
'count_query' => $count_query,
'count_addl' => [ '$%.2f total', ],
'header' => [ 'Date',
+ 'Payment date',
'Vendor',
'Class',
'Amount',
'Vendor',
'Class',
'Amount',
@@
-14,6
+15,7
@@
],
'fields' => [
sub { time2str('%D', shift->_date) },
],
'fields' => [
sub { time2str('%D', shift->_date) },
+ sub { time2str('%D', shift->payment_date) },
sub { shift->vend_main->vendname },
sub { shift->vend_main->vend_class->classname },
'charged',
sub { shift->vend_main->vendname },
sub { shift->vend_main->vend_class->classname },
'charged',
@@
-32,9
+34,14
@@
die "access denied"
my %search = ();
# begin/end/beginning/ending
my %search = ();
# begin/end/beginning/ending
-my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, '');
+my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, '
_date
');
$search{'_date'} = [ $beginning, $ending ];
$search{'_date'} = [ $beginning, $ending ];
+($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi, 'payment_date');
+$search{'payment_date'} = [ $beginning, $ending ];
+
+$search{'classnum'} = $cgi->param('classnum');
+
my $query = FS::vend_bill->search( \%search );
my $count_query = delete( $query->{'count_query'} );
my $query = FS::vend_bill->search( \%search );
my $count_query = delete( $query->{'count_query'} );