-%><%= include( 'elements/search.html',
- 'title' => 'Tax exemptions',
- 'name' => 'tax exemptions',
- 'query' => $query,
- 'count_query' => $count_query,
- 'count_addl' => [ $money_char. '%.2f total', ],
- 'header' => [
- '#',
- 'Month',
- 'Amount',
- 'Line item',
- 'Invoice',
- 'Date',
- FS::UI::Web::cust_header(),
- ],
- 'fields' => [
- 'exemptpkgnum',
- sub { $_[0]->month. '/'. $_[0]->year; },
- sub { $money_char. $_[0]->amount; },
-
- sub {
- $_[0]->billpkgnum. ': '.
- ( $_[0]->pkgnum > 0
- ? $_[0]->get('pkg')
- : $_[0]->get('itemdesc')
- ).
- ' ('.
- ( $_[0]->setup > 0
- ? $money_char. $_[0]->setup. ' setup'
- : ''
- ).
- ( $_[0]->setup > 0 && $_[0]->recur > 0
- ? ' / '
- : ''
- ).
- ( $_[0]->recur > 0
- ? $money_char. $_[0]->recur. ' recur'
- : ''
- ).
- ')';
- },
-
- 'invnum',
- sub { time2str('%b %d %Y', shift->_date ) },
-
- \&FS::UI::Web::cust_fields,
- ],
- 'links' => [
- '',
- '',
- '',
-
- '',
- $ilink,
- $ilink,
-
- ( map { $clink } FS::UI::Web::cust_header() ),
- ],
- 'align' => 'rrrlrc', # 'rlrrrc',
- )
-%>
-