X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fquick-charge.html;h=8aca34a0de308e56e5990b5b768b7f59f78ab725;hb=73e382b838f031512684138fedb7d813684ddd28;hp=cbf1dcb745d187f8d3ea22992fca0e77cf9649ed;hpb=2d918c2c9f7685fddfb7c9bc9c54a2fee3bf3e4c;p=freeside.git diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index cbf1dcb74..8aca34a0d 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,4 +1,4 @@ -<% include("/elements/header-popup.html", 'One-time charge entry', '', +<% include("/elements/header-popup.html", 'One-time charge', '', ( $cgi->param('error') ? '' : 'onload="addRow()"' ), ) %> @@ -20,7 +20,7 @@ function validate_quick_charge () { var pkg = document.QuickChargeForm.pkg.value; var pkg_regex = /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]*)$/ ; var amount = document.QuickChargeForm.amount.value; - var amount_regex = /^\s*\$?\s*(\d+(\.\d{1,2})?)\s*$/ ; + var amount_regex = /^\s*\$?\s*(\d*(\.?\d{1,2}))\s*$/ ; var rval = true; if ( ! amount_regex.test(amount) ) { @@ -62,7 +62,7 @@ function validate_quick_charge () {
Amount: | +Amount | $ | @@ -70,7 +70,7 @@ function validate_quick_charge () { % if ( $conf->exists('invoice-unitprice') ) {
Quantity: | +Quantity | @@ -79,6 +79,12 @@ function validate_quick_charge () { <% include('/elements/tr-select-pkg_class.html', 'curr_value' => $cgi->param('classnum') ) %> + + |
Tax exempt | +param('setuptax') ? 'CHECKED' : '' %>> | +|
Description: | +Description | - + |