- 'if_pkg_class' => { label => 'Only package class',
- type => 'select-pkg_class',
- multiple => 1,
- },
+ 'if_pkg_class' => { 'label' => 'Only package class',
+ 'type' => 'select-pkg_class',
+ 'multiple' => 1,
+ },
'discountnum' => { 'label' => 'Discount',
'type' => 'select-table', #we don't handle the select-discount create a discount case
'table' => 'discount',
'discountnum' => { 'label' => 'Discount',
'type' => 'select-table', #we don't handle the select-discount create a discount case
'table' => 'discount',
my $cust_main = $self->cust_main($object);
my %if_pkgpart = map { $_=>1 } split(/\s*,\s*/, $self->option('if_pkgpart') );
my $cust_main = $self->cust_main($object);
my %if_pkgpart = map { $_=>1 } split(/\s*,\s*/, $self->option('if_pkgpart') );
return 'Package not selected'
if ! $allpkgs && ! $if_pkgpart{ $object->pkgpart };
return 'Package not of selected class'
return 'Package not selected'
if ! $allpkgs && ! $if_pkgpart{ $object->pkgpart };
return 'Package not of selected class'