// clean code && fix norm

This commit is contained in:
aFolletete
2012-02-07 15:31:59 +00:00
parent 5b046ab238
commit 5b6802f3e2
6 changed files with 243 additions and 216 deletions
+3 -3
View File
@@ -185,7 +185,7 @@ class StockMvtCore extends ObjectModel
*/
public static function getNegativeStockMvts($id_order, $id_product, $id_product_attribute, $quantity, $id_warehouse = null)
{
$mvts = array();
$movements = array();
$quantity_total = 0;
$query = new DbQuery();
@@ -205,10 +205,10 @@ class StockMvtCore extends ObjectModel
if ($quantity_total >= $quantity)
break;
$quantity_total += (int)$row['physical_quantity'];
$mvts[] = $row;
$movements[] = $row;
}
return $mvts;
return $movements;
}
/**