[freeside-commits] freeside/httemplate/view cust_bill.cgi, 1.51, 1.52
Mark Wells
mark at wavetail.420.am
Thu Dec 8 13:13:19 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv3784/httemplate/view
Modified Files:
cust_bill.cgi
Log Message:
promised payment date for invoices, #13554
Index: cust_bill.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_bill.cgi,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -w -d -r1.51 -r1.52
--- cust_bill.cgi 27 May 2011 02:25:42 -0000 1.51
+++ cust_bill.cgi 8 Dec 2011 21:13:17 -0000 1.52
@@ -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 = '<A HREF="#" onclick="'.$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 %></A> )
+ <BR><BR>
+% }
+% elsif ( $cust_bill->owed > 0 ) {
+ <% $onclick %><% mt('Set promised payment date' ) |h %></A>
+ <BR><BR>
+% }
+% }
+
% if ( $curuser->access_right('Resend invoices') ) {
<A HREF="<% $p %>misc/send-invoice.cgi?method=print;<% $link %>"><% mt('Re-print this invoice') |h %></A>
More information about the freeside-commits
mailing list