summaryrefslogtreecommitdiff
path: root/httemplate/search/cust_bill_pay_pkg.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-07-25 22:01:03 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-07-25 22:01:03 -0500
commit1e30018837c40ce8a4daaff58018b05b9d095df2 (patch)
tree029847cfb3822541b035e7cf1af93aadd61c3efe /httemplate/search/cust_bill_pay_pkg.html
parent88e9a56677d343392416c262f976f069157b06cb (diff)
RT#71049: Add order_number to payment reports [show_order_number checkboxes]
Diffstat (limited to 'httemplate/search/cust_bill_pay_pkg.html')
-rw-r--r--httemplate/search/cust_bill_pay_pkg.html30
1 files changed, 20 insertions, 10 deletions
diff --git a/httemplate/search/cust_bill_pay_pkg.html b/httemplate/search/cust_bill_pay_pkg.html
index 7c231a65d..e2ffd1258 100644
--- a/httemplate/search/cust_bill_pay_pkg.html
+++ b/httemplate/search/cust_bill_pay_pkg.html
@@ -14,7 +14,7 @@
#payment
'Date',
- 'Order Number',
+ @on_header,
'By',
#application
@@ -44,7 +44,7 @@
? cardtype($cust_pay->paymask) : '';
},
sub { time2str('%b %d %Y', shift->get('cust_pay_date') ) },
- sub { shift->cust_bill_pay->cust_pay->order_number },
+ @on_field,
sub { shift->cust_bill_pay->cust_pay->otaker },
sub { sprintf($money_char.'%.2f', shift->amount ) },
@@ -66,7 +66,7 @@
'', #payinfo/paymask
'', #cardtype
'cust_pay_date',
- '', #order_number
+ @on_null, #order_number
'', #'otaker',
'', #amount
'', #line item description
@@ -83,7 +83,7 @@
'',
'',
'',
- '',
+ @on_null,
'',
'',
'',
@@ -96,10 +96,9 @@
FS::UI::Web::cust_header()
),
],
- 'align' => 'rcrlrrlrlll',
-#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(),
@@ -109,7 +108,7 @@
'',
'',
'',
- '',
+ @on_null,
'',
'',
'',
@@ -126,7 +125,7 @@
'',
'',
'',
- '',
+ @on_null,
'',
'',
'',
@@ -148,6 +147,17 @@
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;