X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Finvoice.html;h=3028f0f6943feb4fa0823b1281b37440d5a4a17d;hp=d7ee0047af31f2e9e4b01f382942f6efeeb92af3;hb=3ab9b93b970353bfddc44b65bbb79d3aa586ded7;hpb=5df49c99a8c9cb241910b2cf262d19bdbae1f612
diff --git a/httemplate/view/cust_main/payment_history/invoice.html b/httemplate/view/cust_main/payment_history/invoice.html
index d7ee0047a..3028f0f69 100644
--- a/httemplate/view/cust_main/payment_history/invoice.html
+++ b/httemplate/view/cust_main/payment_history/invoice.html
@@ -1,4 +1,4 @@
-<% $link %><% $invoice %><% $link ? '' : '' %><% $delete %><% $events %>
+<% $link %><% $invoice %><% $link ? '' : '' %><% $delete %><% $under %>
<%init>
my( $cust_bill, %opt ) = @_;
@@ -8,10 +8,17 @@ my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
my $invoice = emt("Invoice #[_1] (Balance [_2])",$cust_bill->display_invnum,$cust_bill->owed);
-$invoice = '' .
+
+my $under = '';
+if ( $cust_bill->owed > 0 ) {
+ $invoice = '' .
emt("Open Invoice #[_1] (Balance [_2])",$cust_bill->display_invnum,$cust_bill->owed) .
- ''
-if ( $cust_bill->owed > 0 );
+ '';
+ if ( $cust_bill->promised_date ) {
+ $under .= '
'. emt('Payment promised on [_1]',
+ time2str($opt{'date_format'}, $cust_bill->promised_date));
+ }
+} #if $cust_bill->owed
my $invnum = $cust_bill->invnum;
@@ -34,10 +41,10 @@ if ( $cust_bill->num_cust_event
|| $curuser->access_right('View customer billing events')
)
) {
- $events =
- qq!
( '.emt('View invoice events').' )';
+ $under .=
+ qq!
( !.
+ emt('View invoice events').' )';
}
-#
+$under = ''.$under.'' if length($under);
%init>