X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_credit_bill_pkg.html;h=fef295e621898dcc72e9792d285ec6025cd3c0ea;hb=5b73387992a96f7b80e40b5ecb2fedabd8a78d6b;hp=19a9869dd0fb099bf2945be846f11705b0cc866e;hpb=26b237b61bb5340e92edb033f48371c8e8d2de55;p=freeside.git diff --git a/httemplate/search/cust_credit_bill_pkg.html b/httemplate/search/cust_credit_bill_pkg.html index 19a9869dd..fef295e62 100644 --- a/httemplate/search/cust_credit_bill_pkg.html +++ b/httemplate/search/cust_credit_bill_pkg.html @@ -27,7 +27,7 @@ sub { sprintf($money_char.'%.2f', shift->amount ) }, sub { time2str('%b %d %Y', shift->get('cust_credit_date') ) }, - 'otaker', + sub { shift->cust_credit_bill->cust_credit->otaker }, sub { shift->cust_credit_bill->cust_credit->reason }, sub { $_[0]->pkgnum > 0 @@ -38,8 +38,16 @@ sub { time2str('%b %d %Y', shift->_date ) }, \&FS::UI::Web::cust_fields, ], - #'sort_fields' => [ #XXX add - #], + 'sort_fields' => [ + 'amount', + 'cust_credit_date', + '', #'otaker', + '', #reason + '', #line item description + 'invnum', + '_date', + #cust fields + ], 'links' => [ '', '', @@ -256,7 +264,10 @@ if ( $cgi->param('out') ) { #warn "neither nottax nor istax parameters specified"; } - if ( $cgi->param('taxclassNULL') ) { + if ( $cgi->param('taxclassNULL') + && ! $cgi->param('istax') #no taxclass in this case + ) + { my %hash = ( 'country' => scalar($cgi->param('country')) ); foreach (qw( state county )) {