[freeside-commits] freeside/httemplate/search
cust_tax_exempt_pkg.cgi, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Thu Jan 26 17:34:00 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv9887/httemplate/search
Modified Files:
cust_tax_exempt_pkg.cgi
Log Message:
on tax exemption report, show more info on the specific line item and invoice
Index: cust_tax_exempt_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_tax_exempt_pkg.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cust_tax_exempt_pkg.cgi 26 Jan 2006 15:27:10 -0000 1.1
+++ cust_tax_exempt_pkg.cgi 27 Jan 2006 01:33:57 -0000 1.2
@@ -71,9 +71,9 @@
'hashref' => {},
'select' => join(', ',
'cust_tax_exempt_pkg.*',
- #'cust_bill_pkg.*',
- #'cust_bill._date',
- #'part_pkg.pkg',
+ 'cust_bill_pkg.*',
+ 'cust_bill.*',
+ 'part_pkg.pkg',
'cust_main.custnum',
FS::UI::Web::cust_sql_fields(),
),
@@ -94,32 +94,42 @@
'count_addl' => [ $money_char. '%.2f total', ],
'header' => [
'#',
- 'Date',
+ 'Month',
'Amount',
-
- #'Description',
- #'Setup charge',
- #'Recurring charge',
- #'Invoice',
- #'Date',
-
+ 'Line item',
+ 'Invoice',
+ 'Date',
FS::UI::Web::cust_header(),
],
'fields' => [
'exemptpkgnum',
sub { $_[0]->month. '/'. $_[0]->year; },
- 'amount',
+ sub { $money_char. $_[0]->amount; },
- #sub { $_[0]->pkgnum > 0
- # ? $_[0]->get('pkg')
- # : $_[0]->get('itemdesc')
- # },
- ##strikethrough or "N/A ($amount)" or something these when
- ## they're not applicable to pkg_tax search
- #sub { sprintf($money_char.'%.2f', shift->setup ) },
- #sub { sprintf($money_char.'%.2f', shift->recur ) },
- #'invnum',
- #sub { time2str('%b %d %Y', shift->_date ) },
+ 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,
],
@@ -128,16 +138,13 @@
'',
'',
- #'',
- #'',
- #'',
- #'',
- #$ilink,
- #$ilink,
+ '',
+ $ilink,
+ $ilink,
( map { $clink } FS::UI::Web::cust_header() ),
],
- 'align' => 'rrr', # 'rlrrrc',
+ 'align' => 'rrrlrc', # 'rlrrrc',
)
%>
More information about the freeside-commits
mailing list