diff -r af136d9eb3c5 -r d702a41a7021 www/includes/db_inventory_equipments.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www/includes/db_inventory_equipments.php Sat Aug 18 21:29:54 2018 +0200 @@ -0,0 +1,142 @@ + $row['record'], + 'name' => $row['name'], + 'boil_size' => $row['boil_size'], + 'batch_size' => $row['batch_size'], + 'tun_volume' => $row['tun_volume'], + 'tun_weight' => $row['tun_weight'], + 'top_up_water' => $row['top_up_water'], + 'trub_chiller_loss' => $row['trub_chiller_loss'], + 'evap_rate' => $row['evap_rate'], + 'boil_time' => $row['boil_time'], + 'lauter_deadspace' => $row['lauter_deadspace'], + 'top_up_kettle' => $row['top_up_kettle'], + 'hop_utilization' => $row['hop_utilization'], + 'notes' => $row['notes'], + 'lauter_volume' => $row['lauter_volume'], + 'kettle_volume' => $row['kettle_volume'], + 'tun_material' => $row['tun_material'], + 'tun_height' => $row['tun_height'] * 100.0, + 'kettle_height' => $row['kettle_height'] * 100.0, + 'lauter_height' => $row['lauter_height'] * 100.0, + 'mash_volume' => $row['mash_volume'], + 'efficiency' => $row['efficiency'] + ); + } + echo json_encode($equipments); +} +?>