[-] BO : BugFix : #PSCFV-3069 : OrderDetail->purchase_supplier_price is not saved in DB

This commit is contained in:
vChabot
2012-07-12 08:01:04 +00:00
parent 9530acef8f
commit 4abdea08d6
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -221,6 +221,7 @@ class ProductSupplierCore extends ObjectModel
$query->where('id_product = '.(int)$id_product.' AND id_product_attribute = '.(int)$id_product_attribute);
$query->where('id_supplier = '.(int)$id_supplier);
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query);
$row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($query);
return $row['price_te'];
}
}
+4
View File
@@ -141,6 +141,9 @@ class OrderDetailCore extends ObjectModel
/** @var float additional shipping price tax incl */
public $total_shipping_price_tax_incl;
/** @var float */
public $purchase_supplier_price;
/**
* @see ObjectModel::$definition
*/
@@ -183,6 +186,7 @@ class OrderDetailCore extends ObjectModel
'unit_price_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
'total_price_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
'total_price_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
'purchase_supplier_price' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
),
);