Trying to fix issue #10 shipment register ordering. Testing

This commit is contained in:
Karl Cordes 2011-06-23 15:55:07 +10:00
parent 13f322a1d6
commit b248b495f9
3 changed files with 3 additions and 7 deletions

View file

@ -9,7 +9,6 @@ class ShipmentsController extends AppController {
'contain' => false,
'limit' => 300,
'order'=>array('Shipment.id' => 'desc'),
'recursive' => 1
);

View file

@ -9,6 +9,8 @@ class Shipment extends AppModel {
var $recursive = 1;
var $order = array('Shipment.date_arrived' => 'DESC', 'Shipment.date_dispatched'=>'DESC');
//The Associations below have been created with all possible keys, those that are not needed can be removed
var $belongsTo = array(
'FreightForwarder' => array(

View file

@ -39,13 +39,8 @@ foreach($document['DocPage'] as $page) {
$pdfdoc->Page1Header();
if($firstPageDone == false) {
/*$pdfdoc->DetailsBox($docTypeFullName, $companyName, $emailTo, $attention, $fromName,
$fromEmail, $enquiryNumber, $your_reference, $issue_date);
*/
$pdfdoc->DetailsBoxHTML($docTypeFullName, $companyName, $emailTo, $attention, $fromName,
$fromEmail, $enquiryNumber, $your_reference, $issue_date, '30');
$fromEmail, $enquiryNumber, $your_reference, $issue_date, '30');
$firstPageDone = true;