From 62157b20f819936d8287f12689c3b5cb34efe7ae Mon Sep 17 00:00:00 2001 From: Justin DeVuyst Date: Fri, 3 Mar 2017 19:20:40 -0500 Subject: Add quantity validation for one-time charge. See RT#37675. --- httemplate/edit/quick-charge.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'httemplate/edit/quick-charge.html') 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) { +%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> -- cgit v1.2.1