diff options
| author | ivan <ivan> | 2011-08-11 00:38:14 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2011-08-11 00:38:14 +0000 | 
| commit | ace15413d2fe16ac9eeac3e7e292025b60d40d22 (patch) | |
| tree | 3f4f54eec968d013139c4ebcdc2a7524841d9353 /httemplate/elements/tr-select-cust-part_pkg.html | |
| parent | 49974e4c9aab71fea5f315160eb4f4b01186b49c (diff) | |
hide start date on package order for specific package definitions, RT#13783
Diffstat (limited to 'httemplate/elements/tr-select-cust-part_pkg.html')
| -rw-r--r-- | httemplate/elements/tr-select-cust-part_pkg.html | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/httemplate/elements/tr-select-cust-part_pkg.html b/httemplate/elements/tr-select-cust-part_pkg.html index e55cbee30..767d23264 100644 --- a/httemplate/elements/tr-select-cust-part_pkg.html +++ b/httemplate/elements/tr-select-cust-part_pkg.html @@ -7,9 +7,10 @@    <SCRIPT TYPE="text/javascript"> -    function part_pkg_opt(what,value,text,can_discount) { +    function part_pkg_opt(what, value, text, can_discount, can_start_date) {        var optionName = new Option(text, value, false, false); -      optionName.setAttribute('data-can_discount', can_discount); +      optionName.setAttribute('data-can_discount',   can_discount); +      optionName.setAttribute('data-can_start_date', can_start_date);        var length = what.length;        what.options[length] = optionName;      } @@ -37,11 +38,12 @@          // add the new packages          opt(what.form.pkgpart, '', 'Select package');          var packagesArray = eval('(' + part_pkg + ')' ); -        for ( var s = 0; s < packagesArray.length; s=s+3 ) { -          var packagesLabel = packagesArray[s+1]; -          var can_discount  = packagesArray[s+2]; +        for ( var s = 0; s < packagesArray.length; s=s+4 ) { +          var packagesLabel  = packagesArray[s+1]; +          var can_discount   = packagesArray[s+2]; +          var can_start_date = packagesArray[s+3];            part_pkg_opt( -            what.form.pkgpart, packagesArray[s], packagesLabel, can_discount +            what.form.pkgpart, packagesArray[s], packagesLabel, can_discount, can_start_date            );          } @@ -75,7 +77,7 @@                   'curr_value' => $opt{'curr_value'}, #$pkgpart                   'classnum'   => $opt{'classnum'},                   'cust_main'  => $opt{'cust_main'},  #$cust_main -                 'onchange'   => 'enable_order_pkg', +                 'onchange'   => 'pkg_changed',      &>    </TD>  </TR> | 
