add configurable quantity decimals (#429)

This commit is contained in:
FrancescoUK
2016-04-01 00:07:05 +01:00
parent 97676f01a2
commit 6efdccfef0
33 changed files with 111 additions and 60 deletions

View File

@@ -193,7 +193,7 @@ class Items extends Secure_area implements iData_controller
foreach($locations_data as $location)
{
$quantity = $this->Item_quantity->get_item_quantity($item_id,$location['location_id'])->quantity;
$quantity = ($item_id == -1) ? null: $quantity;
$quantity = ($item_id == -1) ? 0 : $quantity;
$location_array[$location['location_id']] = array('location_name'=>$location['location_name'], 'quantity'=>$quantity);
$data['stock_locations'] = $location_array;
}