// Stock & StockMvt : added round()
This commit is contained in:
@@ -73,7 +73,7 @@ class StockCore extends ObjectModel
|
||||
$fields['id_product_attribute'] = (int)$this->id_product_attribute;
|
||||
$fields['physical_quantity'] = (int)$this->physical_quantity;
|
||||
$fields['usable_quantity'] = (int)$this->usable_quantity;
|
||||
$fields['price_te'] = (float)$this->price_te;
|
||||
$fields['price_te'] = (float)round($this->price_te, 6);
|
||||
$fields['id_currency'] = (int)$this->id_currency;
|
||||
return $fields;
|
||||
}
|
||||
|
||||
@@ -143,9 +143,9 @@ class StockMvtCore extends ObjectModel
|
||||
$fields['id_stock_mvt_reason'] = (int)$this->id_stock_mvt_reason;
|
||||
$fields['id_order'] = (int)$this->id_order;
|
||||
$fields['sign'] = (int)$this->sign;
|
||||
$fields['last_wa'] = (float)$this->last_wa;
|
||||
$fields['current_wa'] = (float)$this->current_wa;
|
||||
$fields['price_te'] = (float)$this->price_te;
|
||||
$fields['last_wa'] = (float)round($this->last_wa, 6);
|
||||
$fields['current_wa'] = (float)round($this->current_wa, 6);
|
||||
$fields['price_te'] = (float)round($this->price_te, 6);
|
||||
$fields['referer'] = (int)$this->referer;
|
||||
return $fields;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user