www/import/from_brouwhulp.php

changeset 842
897bf2a43253
parent 840
ba607babc468
equal deleted inserted replaced
841:60bb365fb48d 842:897bf2a43253
455 $sql .= "', tun_material='3"; 455 $sql .= "', tun_material='3";
456 else 456 else
457 echo "Unknown TUN_SPECIFIC_HEAT" . $equipment->TUN_SPECIFIC_HEAT . PHP_EOL; 457 echo "Unknown TUN_SPECIFIC_HEAT" . $equipment->TUN_SPECIFIC_HEAT . PHP_EOL;
458 $sql .= "', tun_height='" . floatval($equipment->TUN_HEIGHT); 458 $sql .= "', tun_height='" . floatval($equipment->TUN_HEIGHT);
459 $sql .= "', top_up_water='" . floatval($equipment->TOP_UP_WATER); 459 $sql .= "', top_up_water='" . floatval($equipment->TOP_UP_WATER);
460 $sql .= "', trub_chiller_loss='" . floatval($equipment->TRUB_CHILLER_LOSS); 460 $sql .= "', trub_loss='" . floatval($equipment->TRUB_CHILLER_LOSS);
461 /* 461 /*
462 * Brouwhulp uses a percentage for the evaporation rate. This is wrong 462 * Brouwhulp uses a percentage for the evaporation rate. This is wrong
463 * but was made so because the beerxml standard requires this. What we 463 * but was made so because the beerxml standard requires this. What we
464 * do is calculate the actual evaporation and store that. 464 * do is calculate the actual evaporation and store that.
465 * This is what we use. Brouwhulp calculates this on the fly. 465 * This is what we use. Brouwhulp calculates this on the fly.
1566 $sql .= "', eq_tun_specific_heat='" . floatval($recipe->EQUIPMENT->TUN_SPECIFIC_HEAT); 1566 $sql .= "', eq_tun_specific_heat='" . floatval($recipe->EQUIPMENT->TUN_SPECIFIC_HEAT);
1567 $sql .= "', eq_tun_material='" . $recipe->EQUIPMENT->TUN_MATERIAL; 1567 $sql .= "', eq_tun_material='" . $recipe->EQUIPMENT->TUN_MATERIAL;
1568 $sql .= "', eq_tun_height='" . floatval($recipe->EQUIPMENT->TUN_HEIGHT); 1568 $sql .= "', eq_tun_height='" . floatval($recipe->EQUIPMENT->TUN_HEIGHT);
1569 if ($recipe->EQUIPMENT->TOP_UP_WATER) 1569 if ($recipe->EQUIPMENT->TOP_UP_WATER)
1570 $sql .= "', eq_top_up_water='" . floatval($recipe->EQUIPMENT->TOP_UP_WATER); 1570 $sql .= "', eq_top_up_water='" . floatval($recipe->EQUIPMENT->TOP_UP_WATER);
1571 $sql .= "', eq_trub_chiller_loss='" . floatval($recipe->EQUIPMENT->TRUB_CHILLER_LOSS); 1571 $sql .= "', eq_trub_loss='" . floatval($recipe->EQUIPMENT->TRUB_CHILLER_LOSS);
1572 /* 1572 /*
1573 * Brouwhulp uses a percentage for the evaporation rate. This is wrong 1573 * Brouwhulp uses a percentage for the evaporation rate. This is wrong
1574 * but was made so because the beerxml standard requires this. What we 1574 * but was made so because the beerxml standard requires this. What we
1575 * do is calculate the actual evaporation and store that. 1575 * do is calculate the actual evaporation and store that.
1576 * This is what we use. Brouwhulp calculates this on the fly. 1576 * This is what we use. Brouwhulp calculates this on the fly.

mercurial