1 package FS::part_pkg::bulk_simple;
2 use base qw( FS::part_pkg::bulk_Common );
5 use vars qw($DEBUG $me %info);
8 use FS::cust_svc_option;
11 $me = '[FS::part_pkg::bulk]';
14 'name' => 'Bulk billing based on number of active services (at invoice generation)',
15 'inherit_fields' => [ 'bulk_Common', 'global_Mixin' ],
20 my( $self, $cust_pkg, $sdate ) = @_;
25 my( $self, $cust_pkg, $cust_svc ) = @_;
26 return 0 if $cust_svc->option('bulk_setup');
28 my $bulk_setup = new FS::cust_svc_option {
29 'svcnum' => $cust_svc->svcnum,
30 'optionname' => 'bulk_setup',
31 'optionvalue' => time, #invoice date?
33 my $error = $bulk_setup->insert;
36 $self->option('svc_setup_fee');
40 my( $self, $cust_pkg, $cust_svc ) = @_;
41 ( $self->option('svc_recur_fee'), '' );