Reworking the reports

This commit is contained in:
Karl Cordes 2011-05-11 09:44:56 +10:00
parent cd61a550e6
commit dd0f4adb59
3 changed files with 27 additions and 4 deletions

View file

@ -166,6 +166,21 @@ class JobsController extends AppController {
}
/**
* Generate aggregates for the financial data in $jobs.
*
* Procedure:
* 1. Loop over the $jobs.
* 2. Check if this job is cancelled or on hold.
* 3. If not, add each $job[$field] to the total.
*
* @param <type> $jobs
*/
function getTotals($jobs, $fields) {
}
function getFinancialYears() {
}

View file

@ -149,13 +149,15 @@ class ShipmentsController extends AppController {
}
print_r($boxIDs);*/
/*foreach($this->data['Job'] as $job) {
$jobIDs = array();
foreach($this->data['Job'] as $job) {
foreach($job as $index => $id) {
echo $id."\n";
$jobIDs[] = $id;
}
}*/
}
print_r($this->data);
$this->Shipment->Job->updateAll(array('Job.all_sent' => 1), array('Job.id'=>$jobIDs));
//print_r($this->data);
echo "SUCCESS";

View file

@ -62,6 +62,12 @@
$class ='';
$doCount = true;
}
?>
<tr class="<?=$class?>">