projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
recover better from mysql's deadlock stupidity, grr, RT#10574
[freeside.git]
/
FS
/
bin
/
freeside-daily
diff --git
a/FS/bin/freeside-daily
b/FS/bin/freeside-daily
index
e16cc5c
..
2c9dd8b
100755
(executable)
--- a/
FS/bin/freeside-daily
+++ b/
FS/bin/freeside-daily
@@
-12,6
+12,10
@@
getopts("p:a:d:vl:sy:nmrkg:u", \%opt);
my $user = shift or die &usage;
adminsuidsetup $user;
my $user = shift or die &usage;
adminsuidsetup $user;
+#you can skip this by not having a NetworkMonitoringSystem configured
+use FS::Cron::nms_report qw(nms_report);
+nms_report(%opt);
+
#you can skip this by setting the disable_cron_billing config
use FS::Cron::bill qw(bill);
bill(%opt);
#you can skip this by setting the disable_cron_billing config
use FS::Cron::bill qw(bill);
bill(%opt);
@@
-50,6
+54,15
@@
if ( $opt{u} ) {
use FS::Cron::backup qw(backup_scp);
backup_scp();
use FS::Cron::backup qw(backup_scp);
backup_scp();
+#same
+use FS::Cron::rt_tasks qw(rt_escalate);
+rt_escalate(%opt);
+
+my $deldir = "$FS::UID::cache_dir/cache.$FS::UID::datasrc/";
+unlink <${deldir}.invoice*>;
+unlink <${deldir}.letter*>;
+unlink <${deldir}.CGItemp*>;
+
###
# subroutines
###
###
# subroutines
###
@@
-99,7
+112,7
@@
the bill and collect methods of a cust_main object. See L<FS::cust_main>.
with today's date, irregardless of the pretend date used to pre-generate
the invoices.
with today's date, irregardless of the pretend date used to pre-generate
the invoices.
- -p: Only process customers with the specified payby (
I<CARD>, I<DCRD>, I<CHEK>, I<DCHK>, I<BILL>, I<COMP>, I<LECB>
)
+ -p: Only process customers with the specified payby (
CARD, DCRD, CHEK, DCHK, BILL, COMP, LECB
)
-a: Only process customers with the specified agentnum. Multiple agentnums can be specified, separated with commas.
-a: Only process customers with the specified agentnum. Multiple agentnums can be specified, separated with commas.