summaryrefslogtreecommitdiff
path: root/FS/bin/freeside-prepaidd
diff options
context:
space:
mode:
Diffstat (limited to 'FS/bin/freeside-prepaidd')
-rw-r--r--FS/bin/freeside-prepaidd8
1 files changed, 5 insertions, 3 deletions
diff --git a/FS/bin/freeside-prepaidd b/FS/bin/freeside-prepaidd
index 73f7523c4..a68db3913 100644
--- a/FS/bin/freeside-prepaidd
+++ b/FS/bin/freeside-prepaidd
@@ -52,9 +52,11 @@ while (1) {
warn "Error billing customer #". $cust_main->custnum;
next;
}
- #$b_error = $cust_main->apply_payments_and_credits;
- $b_error = $cust_main->apply_payments;
- $b_error = $cust_main->apply_credits;
+ $b_error = $cust_main->apply_payments_and_credits;
+ if ( $b_error ) {
+ warn "Error applying payments&credits, customer #". $cust_main->custnum;
+ next;
+ }
$work_cust_pkg = qsearchs('cust_pkg', { 'pkgnum' => $work_cust_pkg->pkgnum } );