[-] BO : BugFix : #PSCFV-3069 : OrderDetail->purchase_supplier_price is not saved in DB
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user