summaryrefslogtreecommitdiff
path: root/httemplate/edit/quick-charge.html
diff options
context:
space:
mode:
authorJustin DeVuyst <justin@devuyst.com>2017-03-03 19:20:40 -0500
committerJustin DeVuyst <justin@devuyst.com>2017-03-03 19:20:40 -0500
commit62157b20f819936d8287f12689c3b5cb34efe7ae (patch)
tree94af69cf3ac48901e6d804226f480b4675902f77 /httemplate/edit/quick-charge.html
parent51e2a2439d923d63a5a2321864c69f82272cd362 (diff)
Add quantity validation for one-time charge. See RT#37675.
Diffstat (limited to 'httemplate/edit/quick-charge.html')
-rw-r--r--httemplate/edit/quick-charge.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index af6fd417d..2d38203fa 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -449,10 +449,19 @@ function bill_now_changed (what) {
</SCRIPT>
+%my %footer_args = (
+% formvalidation => {
+% QuickChargeForm => {
+% validate_fields => {
+% quantity => 'digits: true, min: 1, required: true',
+% },
+% },
+% },
+%);
% if ( $quotationnum ) {
- <& /elements/footer.html &>
+ <& /elements/footer.html, %footer_args &>
% } else {
- <& /elements/footer-cust_main.html &>
+ <& /elements/footer-cust_main.html, %footer_args &>
% }
<%init>