X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=c96fa6c817b87612eb107bc0a2365a922dc2fd44;hb=2419a740ea77d7c1fd2151dbf8822fc40fd94053;hp=94682d0a6540e50aac630a6f11ec77b54a583e9e;hpb=89cb729e71c400307f47eef8e9e0b295db2dfca0;p=freeside.git
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index 94682d0a6..c96fa6c81 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -1,11 +1,14 @@
-<% include("/elements/header-popup.html", 'One-time charge entry', '',
+<% include("/elements/header-popup.html", 'One-time charge', '',
( $cgi->param('error') ? '' : 'onload="addRow()"' ),
)
%>
-% if ( $cgi->param('error') ) {
- <% $cgi->param('error') %>
-% }
+
+
+
+
+
+<% include('/elements/error.html') %>
+function bill_now_changed (what) {
+ var form = what.form;
+ if ( what.checked ) {
+ form.start_date_text.disabled = true;
+ form.start_date.style.backgroundColor = '#dddddd';
+ form.start_date_button.style.display = 'none';
+ form.start_date_button_disabled.style.display = '';
+ form.invoice_terms.disabled = false;
+ } else {
+ form.start_date_text.disabled = false;
+ form.start_date.style.backgroundColor = '#ffffff';
+ form.start_date_button.style.display = '';
+ form.start_date_button_disabled.style.display = 'none';
+ form.invoice_terms.disabled = true;
+ }
+}
+
+