diff options
author | mark <mark> | 2011-12-08 21:13:17 +0000 |
---|---|---|
committer | mark <mark> | 2011-12-08 21:13:17 +0000 |
commit | ce1b61e7d65317a74f680afb4cb8d8306e14fa5f (patch) | |
tree | 5adb1b9b7b6afc37ebc03bc29aa32fabb8cb373e /httemplate/view/cust_bill.cgi | |
parent | d8d63a28503d40743425dceda7e0b744739eeb2a (diff) |
promised payment date for invoices, #13554
Diffstat (limited to 'httemplate/view/cust_bill.cgi')
-rwxr-xr-x | httemplate/view/cust_bill.cgi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 2ce294e9a..a8b4ac15c 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 = '<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> |