Trying to fix issue #10 shipment register ordering. Testing
This commit is contained in:
parent
13f322a1d6
commit
b248b495f9
|
|
@ -9,7 +9,6 @@ class ShipmentsController extends AppController {
|
|||
|
||||
'contain' => false,
|
||||
'limit' => 300,
|
||||
'order'=>array('Shipment.id' => 'desc'),
|
||||
'recursive' => 1
|
||||
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -38,14 +38,9 @@ foreach($document['DocPage'] as $page) {
|
|||
$pdfdoc->AddPage();
|
||||
$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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue