projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
72393: High-priority: Tags history
[freeside.git]
/
httemplate
/
search
/
cust_bill_pay_pkg.html
diff --git
a/httemplate/search/cust_bill_pay_pkg.html
b/httemplate/search/cust_bill_pay_pkg.html
index
5a3be75
..
e2ffd12
100644
(file)
--- a/
httemplate/search/cust_bill_pay_pkg.html
+++ b/
httemplate/search/cust_bill_pay_pkg.html
@@
-14,6
+14,7
@@
#payment
'Date',
#payment
'Date',
+ @on_header,
'By',
#application
'By',
#application
@@
-43,6
+44,7
@@
? cardtype($cust_pay->paymask) : '';
},
sub { time2str('%b %d %Y', shift->get('cust_pay_date') ) },
? cardtype($cust_pay->paymask) : '';
},
sub { time2str('%b %d %Y', shift->get('cust_pay_date') ) },
+ @on_field,
sub { shift->cust_bill_pay->cust_pay->otaker },
sub { sprintf($money_char.'%.2f', shift->amount ) },
sub { shift->cust_bill_pay->cust_pay->otaker },
sub { sprintf($money_char.'%.2f', shift->amount ) },
@@
-64,6
+66,7
@@
'', #payinfo/paymask
'', #cardtype
'cust_pay_date',
'', #payinfo/paymask
'', #cardtype
'cust_pay_date',
+ @on_null, #order_number
'', #'otaker',
'', #amount
'', #line item description
'', #'otaker',
'', #amount
'', #line item description
@@
-80,6
+83,7
@@
'',
'',
'',
'',
'',
'',
+ @on_null,
'',
'',
'',
'',
'',
'',
@@
-92,10
+96,9
@@
FS::UI::Web::cust_header()
),
],
FS::UI::Web::cust_header()
),
],
- 'align' => 'rcrlrlrlll',
-#original value before cardtype & package were added
-#why are there 13 cols?
-#'rcrrlrlllrrcl'.
+ 'align' => 'rcrlr'.
+ $on_align.
+ 'lrlll'.
$post_desc_align.
'rr'.
FS::UI::Web::cust_aligns(),
$post_desc_align.
'rr'.
FS::UI::Web::cust_aligns(),
@@
-105,6
+108,7
@@
'',
'',
'',
'',
'',
'',
+ @on_null,
'',
'',
'',
'',
'',
'',
@@
-121,6
+125,7
@@
'',
'',
'',
'',
'',
'',
+ @on_null,
'',
'',
'',
'',
'',
'',
@@
-142,6
+147,17
@@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+my @on_header = ();
+my @on_field = ();
+my @on_null = ();
+my $on_align = '';
+if ($cgi->param('show_order_number')) {
+ @on_header = ('Order Number');
+ @on_field = (sub { shift->cust_bill_pay->cust_pay->order_number });
+ @on_null = ('');
+ $on_align = 'r';
+}
+
my $conf = new FS::Conf;
my %payby = FS::payby->payby2shortname;
my $conf = new FS::Conf;
my %payby = FS::payby->payby2shortname;