From 09589754a8926ef064ea1d3d474a0fc3a8590101 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Sun, 31 May 2015 18:17:28 -0500 Subject: RT#17828: Additional invoice fields on invoice view in selfservice portal --- fs_selfservice/FS-SelfService/cgi/invoices.html | 26 +++++++++++++++------- fs_selfservice/FS-SelfService/cgi/myaccount.html | 28 ++++++++++++++---------- 2 files changed, 35 insertions(+), 19 deletions(-) (limited to 'fs_selfservice/FS-SelfService/cgi') diff --git a/fs_selfservice/FS-SelfService/cgi/invoices.html b/fs_selfservice/FS-SelfService/cgi/invoices.html index 752805123..ffc44ec85 100644 --- a/fs_selfservice/FS-SelfService/cgi/invoices.html +++ b/fs_selfservice/FS-SelfService/cgi/invoices.html @@ -3,24 +3,34 @@ <%= if ( @invoices ) { - $OUT .= ''. - ''; - my $col1 = "ffffff"; - my $col2 = "dddddd"; + my $th = q!
All Invoices
!; + my $thr = q!!; + $OUT .= ''. + ''.$th.'Invoice #'.$th.'Date'.$thr.'Charges' + .$th.'Date Paid'.$thr.'Owed'; + my $col1 = "#ffffff"; + my $col2 = "#dddddd"; my $col = $col1; foreach my $invoice ( @invoices ) { - my $td = qq!$td${a}Invoice #". $invoice->{'invnum'}. "$td ". - "$td$a". $invoice->{'date'}. "$td". + "". + $td . $a . $invoice->{'invnum'}. "" . + $td . $a . $invoice->{'date'} . "" . + $tdr . $a . $money_char . $invoice->{'charged'} . "" . + $td . $a . $invoice->{'lastpay'} . "" . + $tdr . $a . $money_char . $invoice->{'owed'} . "" . ''; $col = $col eq $col1 ? $col2 : $col1; } + my $tht = ''.$tht.'BALANCE DUE'.$tht.$money_char.$balance.''; $OUT .= '
!; + my $td = qq!!; + my $tdr = qq!!; my $a=qq!'; $OUT .= - "
'; + $OUT .= '

'; } else { - $OUT .= 'You have no invoices.

'; + $OUT .= '

You have no invoices.

'; } %> diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index 66e2c692e..309021a87 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -28,28 +28,34 @@ Hello <%= $name %>!

} %> <%= if ( @open_invoices ) { - $OUT .= ''. - ''; - my $link = qq!!; + my $thr = q!
Open Invoices
!; + $OUT .= ''. + ''. + ''.$th.'Invoice #'.$th.'Date'.$thr.'Charges' + .$thr.'Owed'; + my $col1 = "#ffffff"; + my $col2 = "#dddddd"; my $col = $col1; foreach my $invoice ( @open_invoices ) { - my $td = qq!$td${a}Invoice #". $invoice->{'invnum'}. "$td". - "$td$a". $invoice->{'date'}. "$td". - qq!'. + "". + $td . $a . $invoice->{'invnum'}. "" . + $td . $a . $invoice->{'date'} . "" . + $tdr . $a . $money_char . $invoice->{'charged'} . "" . + $tdr . $a . $money_char . $invoice->{'owed'} . "" . ''; $col = $col eq $col1 ? $col2 : $col1; } $OUT .= '
Open Invoices
!; + my $td = qq!!; + my $tdr = qq!!; my $a=qq!'; $OUT .= - "
$a\$!. $invoice->{'owed'}. - '

'; } else { - $OUT .= 'You have no outstanding invoices.

'; + $OUT .= '

You have no outstanding invoices.

'; } + %> <%= -- cgit v1.2.1