projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change "support time" to use regular ticket time + a custom field, #30921
[freeside.git]
/
httemplate
/
search
/
cust_tax_exempt.cgi
diff --git
a/httemplate/search/cust_tax_exempt.cgi
b/httemplate/search/cust_tax_exempt.cgi
index
7212726
..
005d77c
100644
(file)
--- a/
httemplate/search/cust_tax_exempt.cgi
+++ b/
httemplate/search/cust_tax_exempt.cgi
@@
-1,4
+1,4
@@
-<
% include( 'elements/search.html'
,
+<
& elements/search.html
,
'title' => 'Legacy tax exemptions',
'name' => 'legacy tax exemptions',
'query' => $query,
'title' => 'Legacy tax exemptions',
'name' => 'legacy tax exemptions',
'query' => $query,
@@
-7,12
+7,16
@@
'header' => [
'#',
'Month',
'header' => [
'#',
'Month',
+ 'Inserted',
'Amount',
FS::UI::Web::cust_header(),
],
'fields' => [
'Amount',
FS::UI::Web::cust_header(),
],
'fields' => [
- 'exempt
pkg
num',
+ 'exemptnum',
sub { $_[0]->month. '/'. $_[0]->year; },
sub { $_[0]->month. '/'. $_[0]->year; },
+ sub { my $h = $_[0]->h_search('insert');
+ $h ? time2str('%L/%d/%Y', $h->history_date ) : ''
+ },
sub { $money_char. $_[0]->amount; },
\&FS::UI::Web::cust_fields,
sub { $money_char. $_[0]->amount; },
\&FS::UI::Web::cust_fields,
@@
-21,31
+25,32
@@
'',
'',
'',
'',
'',
'',
+ '',
( map { $_ ne 'Cust. Status' ? $clink : '' }
FS::UI::Web::cust_header()
),
],
( map { $_ ne 'Cust. Status' ? $clink : '' }
FS::UI::Web::cust_header()
),
],
- 'align' => 'rrr'.FS::UI::Web::cust_aligns(),
+ 'align' => 'rrr
r
'.FS::UI::Web::cust_aligns(),
'color' => [
'',
'',
'',
'color' => [
'',
'',
'',
+ '',
FS::UI::Web::cust_colors(),
],
'style' => [
'',
'',
'',
FS::UI::Web::cust_colors(),
],
'style' => [
'',
'',
'',
+ '',
FS::UI::Web::cust_styles(),
],
FS::UI::Web::cust_styles(),
],
- )
-
%
>
+
+
&
>
<%init>
<%init>
-my $join_cust = "
- LEFT JOIN cust_main USING ( custnum )
-";
+my $join_cust = FS::UI::Web::join_cust_main('cust_tax_exempt');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('View customer tax exemptions');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('View customer tax exemptions');