Some cleanup, setup improvements and other misc items

This commit is contained in:
Deon George
2013-10-09 16:43:41 +11:00
parent 638d123739
commit c473bf6e7d
54 changed files with 477 additions and 3991 deletions

View File

@@ -11,7 +11,7 @@
*/
class Task_Invoice_Complete extends Minion_Task {
protected function _execute(array $params) {
$c = 0;
$c = array();
$o = ORM::factory('Invoice')
->where_unprocessed();
@@ -23,10 +23,10 @@ class Task_Invoice_Complete extends Minion_Task {
$io->save();
if ($io->saved())
$c++;
array_push($c,$io->id);
}
return sprintf('%s invoices updated',$c);
return sprintf('%s invoices updated (%s)',count($c),join('|',$c));
}
}
?>

View File

@@ -11,7 +11,7 @@
*/
class Task_Invoice_Service extends Minion_Task {
protected $_options = array(
'days'=>1, // Days in advance to generate for
'days'=>0, // Days in advance to generate for
'id'=>NULL, // Service invoice to generate for
);