// Stock & StockMvt : added round()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9415 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-10-18 12:11:31 +00:00
parent 6e2827418f
commit 54e25793fd
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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;
}