Minor fixes from live site.

This commit is contained in:
Deon George
2013-06-05 13:42:55 +10:00
parent 3ba7eea48d
commit 2322a802de
8 changed files with 17 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ class Task_Invoice_Reminddue extends Minion_Task {
foreach (ORM::factory('Invoice')->list_due(time()+86400*$days) 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) AND (is_null($x=$this->request->param('id')) OR $x != 'again')) OR ($io->account->invoice_delivery != 1))
if ($io->remind($key) OR ($io->account->invoice_delivery != 1))
continue;
// Generate a token to view the invoice online