[-] BO : BugFix : #PSCFV-3069 : OrderDetail->purchase_supplier_price is not saved in DB
This commit is contained in:
1 parent
9530acef8f
commit
4abdea08d6
2 files changed
+6
-1
No files matched your search
@@ -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_product = '.(int)$id_product.' AND id_product_attribute = '.(int)$id_product_attribute);
|
||||||
$query->where('id_supplier = '.(int)$id_supplier);
|
$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 */
|
/** @var float additional shipping price tax incl */
|
||||||
public $total_shipping_price_tax_incl;
|
public $total_shipping_price_tax_incl;
|
||||||
|
|
||||||
|
/** @var float */
|
||||||
|
public $purchase_supplier_price;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see ObjectModel::$definition
|
* @see ObjectModel::$definition
|
||||||
*/
|
*/
|
||||||
@@ -183,6 +186,7 @@ class OrderDetailCore extends ObjectModel
|
|||||||
'unit_price_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
|
'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_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'),
|
||||||
'total_price_tax_excl' => 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