[freeside-commits] freeside/FS/FS/cust_main Billing.pm,1.45,1.46
Ivan,,,
ivan at wavetail.420.am
Mon Dec 26 13:18:26 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv25986/FS/FS/cust_main
Modified Files:
Billing.pm
Log Message:
add -o flag to freeside-daily, to only bill for one month, RT#14904
Index: Billing.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Billing.pm,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -w -d -r1.45 -r1.46
--- Billing.pm 26 Dec 2011 20:27:45 -0000 1.45
+++ Billing.pm 26 Dec 2011 21:18:24 -0000 1.46
@@ -420,11 +420,17 @@
'real_pkgpart' => $real_pkgpart,
'options' => \%options,
);
- # Stop if anything goes wrong, or if we're not incrementing
- # the bill date.
+
+ # Stop if anything goes wrong
last if $error;
+
+ # or if we're not incrementing the bill date.
last if ($cust_pkg->getfield('bill') || 0) == $next_bill;
+
$next_bill = $cust_pkg->getfield('bill') || 0;
+
+ #stop if -o was passed to freeside-daily
+ last if $options{'one_recur'};
}
if ($error) {
$dbh->rollback if $oldAutoCommit && !$options{no_commit};
More information about the freeside-commits
mailing list