- for ( var s = 0; s < packagesArray.length; s=s+2 ) {
- var packagesLabel = packagesArray[s+1];
- opt(what.form.pkgpart, packagesArray[s], packagesLabel);
+ 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, can_start_date
+ );