summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2009-06-10 07:58:21 +0000
committerivan <ivan>2009-06-10 07:58:21 +0000
commit586a2e2c99956f17899e2fbb52b11a0ac0293a17 (patch)
treeff8b9190a7e0f57f4bca0d96f05feff5b5ca8da0 /httemplate
parentfa71778349c136623f0755bf30ce9f65fbaabf14 (diff)
this should add the info s1 was looking for, RT#5539
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/search/cust_pkg.cgi21
1 files changed, 19 insertions, 2 deletions
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index bd4a9466f..e797e35e9 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -10,6 +10,8 @@
'Package',
'Class',
'Status',
+ 'Setup',
+ 'Base Recur',
'Freq.',
'Setup',
'Last bill',
@@ -33,6 +35,14 @@
},
'classname',
sub { ucfirst(shift->status); },
+ sub { sprintf( $money_char.'%.2f',
+ shift->part_pkg->option('setup_fee'),
+ );
+ },
+ sub { sprintf( $money_char.'%.2f',
+ shift->part_pkg->base_recur
+ );
+ },
sub { #shift->part_pkg->freq_pretty;
#my $part_pkg = $part_pkg{shift->pkgpart};
@@ -99,13 +109,15 @@
'',
'',
'',
+ '',
+ '',
FS::UI::Web::cust_colors(),
'',
],
- 'style' => [ '', '', '', '', 'b', '', '', '', '', '', '', '', '', '',
+ 'style' => [ '', '', '', '', 'b', '', '', '', '', '', '', '', '', '', '', '',
FS::UI::Web::cust_styles() ],
'size' => [ '', '', '', '', '-1' ],
- 'align' => 'rrlcclrrrrrrrl'. FS::UI::Web::cust_aligns(). 'r',
+ 'align' => 'rrlccrrlrrrrrrrl'. FS::UI::Web::cust_aligns(). 'r',
'links' => [
$link,
$link,
@@ -121,6 +133,8 @@
'',
'',
'',
+ '',
+ '',
( map { $_ ne 'Cust. Status' ? $clink : '' }
FS::UI::Web::cust_header(
$cgi->param('cust_fields')
@@ -136,6 +150,9 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('List packages');
+my $conf = new FS::Conf;
+my $money_char = $conf->config('money_char') || '$';
+
# my %part_pkg = map { $_->pkgpart => $_ } qsearch('part_pkg', {});
my %search_hash = ();