Fixed country order
This commit is contained in:
parent
67680e8e2f
commit
da25c0b0a0
|
|
@ -83,6 +83,9 @@ class LineItemsController extends AppController {
|
|||
/* Copy all the data from the Product to the new LineItem */
|
||||
|
||||
$this->data['LineItem']['description'] = $product['Product']['description'];
|
||||
|
||||
|
||||
|
||||
$this->data['LineItem']['title'] = $product['Product']['title'];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ class Country extends AppModel {
|
|||
|
||||
var $name = 'Country';
|
||||
|
||||
var $order = "Country.name ASC";
|
||||
|
||||
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
||||
var $belongsTo = array(
|
||||
'Currency' => array('className' => 'Currency',
|
||||
|
|
|
|||
13
vendors/xtcpdf.php
vendored
13
vendors/xtcpdf.php
vendored
|
|
@ -357,7 +357,13 @@ class XTCPDF extends TCPDF {
|
|||
foreach($page as $productID) {
|
||||
$product = array_shift($products);
|
||||
|
||||
if($product['Principle']['id'] != null) {
|
||||
$fullDesc = "<b>".$product['Principle']['name']."</b><br>"."<b>".$product[$docType]['title'].'</b><br>'.$product[$docType]['description'];
|
||||
}
|
||||
else {
|
||||
$fullDesc = "<b>".$product[$docType]['title'].'</b><br>'.$product[$docType]['description'];
|
||||
|
||||
}
|
||||
|
||||
if($product[$docType]['option'] == 1) {
|
||||
$options = 1;
|
||||
|
|
@ -541,13 +547,6 @@ ENDHTMLCONTENTS;
|
|||
}
|
||||
|
||||
|
||||
function termsAndConditions() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function totals($currency, $subTotal, $gst, $options) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue