X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pkg_discount.html;h=e814c96c5fd442b59f903389557110814f6e5d87;hb=08e9b7ea8e912dfa70de6d08eb7849d3bd9c68b5;hp=22d8c632fed45ba24598c35c642b0ae9fb21bf43;hpb=481011e14852aa62181bed0c7ae34b1e37ebff18;p=freeside.git diff --git a/httemplate/edit/cust_pkg_discount.html b/httemplate/edit/cust_pkg_discount.html index 22d8c632f..e814c96c5 100755 --- a/httemplate/edit/cust_pkg_discount.html +++ b/httemplate/edit/cust_pkg_discount.html @@ -28,7 +28,9 @@ <% include('/elements/tr-select-discount.html', 'empty_label' => ( $pkgdiscountnum ? '' : 'Select discount' ), - 'onchange' => 'enable_discount_pkg', + 'onchange' => 'enable_discount_pkg()', + 'cgi' => $cgi, + 'setup_only' => $setup_only, ) %> @@ -71,5 +73,6 @@ my $cust_pkg = # " ( pkgnum ". cust_pkg->pkgnum. ")"; my $part_pkg = $cust_pkg->part_pkg; +my $setup_only = ($part_pkg->freq eq '0') ? 1 : 0;