Added Invoice/SSL download recording, other misc fixes
This commit is contained in:
@@ -15,7 +15,7 @@ class Task_Invoice_Reminddue extends Minion_Task {
|
||||
$key = 'remind_due';
|
||||
$days = ORM::factory('Invoice')->config(strtoupper($key));
|
||||
|
||||
foreach (ORM::factory('Invoice')->list_due(time()+86400*$days) as $io) {
|
||||
foreach (ORM::factory('Invoice')->list_overdue(time()+86400*$days,FALSE) as $io) {
|
||||
// @todo Use another option to supress reminders
|
||||
// If we have already sent a reminder, we'll skip to the next one.
|
||||
if ($io->remind($key) OR ($io->account->invoice_delivery != 1))
|
||||
|
@@ -27,7 +27,7 @@ class Task_Invoice_Remindoverdue1 extends Minion_Task {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (ORM::factory('Invoice')->list_overdue_billing(time()-86400*$days,FALSE) as $io) {
|
||||
foreach (ORM::factory('Invoice')->list_overdue_billing(time()-86400*$days,FALSE,FALSE) as $io) {
|
||||
// If we have already sent a reminder, we'll skip to the next one.
|
||||
if ($io->remind($key) OR ($io->account->invoice_delivery != 1))
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user