Reworking the reports
This commit is contained in:
parent
cd61a550e6
commit
dd0f4adb59
|
|
@ -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() {
|
function getFinancialYears() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -149,13 +149,15 @@ class ShipmentsController extends AppController {
|
||||||
}
|
}
|
||||||
print_r($boxIDs);*/
|
print_r($boxIDs);*/
|
||||||
|
|
||||||
/*foreach($this->data['Job'] as $job) {
|
$jobIDs = array();
|
||||||
|
foreach($this->data['Job'] as $job) {
|
||||||
foreach($job as $index => $id) {
|
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";
|
echo "SUCCESS";
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,12 @@
|
||||||
$class ='';
|
$class ='';
|
||||||
$doCount = true;
|
$doCount = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr class="<?=$class?>">
|
<tr class="<?=$class?>">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue