X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_bill.cgi;h=344030404ff23cea332eb5d5bc92ab424ccb3b2b;hb=313a3715952e448b9efda129597e83df514be4ec;hp=2ce294e9a87202d4cfcdda45bfb3352df91909bf;hpb=8ef00c68688492b2afa3dde8d3d467f89f238c40;p=freeside.git
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi
index 2ce294e9a..344030404 100755
--- a/httemplate/view/cust_bill.cgi
+++ b/httemplate/view/cust_bill.cgi
@@ -58,6 +58,27 @@
% }
+% if ( $conf->exists('cust_bill-enable_promised_date') ) {
+% my $onclick = include('/elements/popup_link_onclick.html',
+% 'action' => $p.'misc/cust_bill-promised_date.html?'.$invnum,
+% 'actionlabel' => emt('Set promised payment date'),
+% 'width' => 320,
+% 'height' => 240,
+% );
+% $onclick = '';
+% if ( $cust_bill->promised_date ) {
+% my $date_format = $conf->config('date_format') || '%b %o, %Y';
+ <% mt('Payment promised by [_1]',
+ time2str($date_format, $cust_bill->promised_date) ) %>
+ ( <% $onclick %><% mt('change') |h %> )
+
+% }
+% elsif ( $cust_bill->owed > 0 ) {
+ <% $onclick %><% mt('Set promised payment date' ) |h %>
+
+% }
+% }
+
% if ( $curuser->access_right('Resend invoices') ) {
<% mt('Re-print this invoice') |h %>
@@ -83,18 +104,41 @@
% my $br = 0;
% if ( $cust_bill->num_cust_event ) { $br++;
( <% mt('View invoice events') |h %> )
-% }
+% }
% if ( $cust_bill->num_cust_bill_event ) { $br++;
( <% mt('View deprecated, old-style invoice events') |h %> )
% }
+% my @modes = grep {! $_->disabled}
+% $cust_bill->cust_main->agent->invoice_modes;
+% if ( @modes ) {
+( <% mt('View as:') %>
+