sub _bulk_cust_svc {
my( $self, $cust_pkg, $sdate ) = @_;
# END START
- $cust_pkg->h_cust_svc( $$sdate, $cust_pkg->last_bill );
+ return $self->_only_svcs_filter($cust_pkg->h_cust_svc( $$sdate, $cust_pkg->last_bill ));
}
sub _bulk_setup {
if $self->option('no_prorate',1);
my $last_bill = $cust_pkg->last_bill;
+
+ return (0, '') if $$sdate == $last_bill;
+
my $svc_start = max( $h_cust_svc->date_inserted, $last_bill);
my $svc_end = $h_cust_svc->date_deleted;
$svc_end = ( !$svc_end || $svc_end > $$sdate ) ? $$sdate : $svc_end;