// Stock: removed id_currency. Warehouse: added id_currency. StockManager: fixed

This commit is contained in:
bMancone
2011-10-18 12:31:34 +00:00
parent 5ac3b67271
commit a2f6996ced
5 changed files with 41 additions and 40 deletions
-4
View File
@@ -38,7 +38,6 @@ class StockCore extends ObjectModel
public $physical_quantity;
public $usable_quantity;
public $price_te;
public $id_currency;
protected $fieldsRequired = array(
'id_warehouse',
@@ -47,7 +46,6 @@ class StockCore extends ObjectModel
'physical_quantity',
'usable_quantity',
'price_te',
'id_currency'
);
protected $fieldsSize = array();
@@ -59,7 +57,6 @@ class StockCore extends ObjectModel
'physical_quantity' => 'isUnsignedInt',
'usable_quantity' => 'isInt',
'price_te' => 'isPrice',
'id_currency' => 'isUnsignedInt'
);
protected $table = 'stock';
@@ -74,7 +71,6 @@ class StockCore extends ObjectModel
$fields['physical_quantity'] = (int)$this->physical_quantity;
$fields['usable_quantity'] = (int)$this->usable_quantity;
$fields['price_te'] = (float)round($this->price_te, 6);
$fields['id_currency'] = (int)$this->id_currency;
return $fields;
}
}