www/prod_checklist.php

changeset 554
c62ff53cfc3d
parent 535
1f0059cfb6fe
child 599
1460c92927b2
equal deleted inserted replaced
553:481dbe0af222 554:c62ff53cfc3d
336 if ($this->GetY() > 240) 336 if ($this->GetY() > 240)
337 $this->AddPage(); 337 $this->AddPage();
338 else 338 else
339 $this->Ln(5); 339 $this->Ln(5);
340 340
341 $climate = $row['brew_cooling_to'];
341 $this->Checkheader('Gist enten'); 342 $this->Checkheader('Gist enten');
342 $dry = 0; 343 $dry = 0;
343 foreach ($yeasts as $item) { 344 foreach ($yeasts as $item) {
344 if ($item['y_use'] == 0) { // primary 345 if ($item['y_use'] == 0) { // primary
345 if ($item['y_form'] == 0) { // Liquid 346 if ($item['y_form'] == 0) { // Liquid
350 $dry += $item['y_amount']*$factor*10000; 351 $dry += $item['y_amount']*$factor*10000;
351 $this->Checkline($s); 352 $this->Checkline($s);
352 } else { // Slant/Culture/Frozen/Bottle 353 } else { // Slant/Culture/Frozen/Bottle
353 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$item['y_product_id'].', '.$item['y_name'].' gist'; 354 $s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$item['y_product_id'].', '.$item['y_name'].' gist';
354 $this->Checkline($s); 355 $this->Checkline($s);
356 }
357 if ($item['y_type'] == 6 && floatval($item['y_pitch_temperature']) > 0) {
358 $s = 'Gist enten bij ' . sprintf("%.1f",floatval($item['y_pitch_temperature'])) . DEG . 'C';
359 $this->Checkline($s);
360 $climate = $item['y_pitch_temperature'];
355 } 361 }
356 } 362 }
357 } 363 }
358 if ($dry > 0) { 364 if ($dry > 0) {
359 $this->Checkline(' gist hydrateren in '.$dry.' ml gedesinfecteerd water van 32 '.DEG.'C'); 365 $this->Checkline(' gist hydrateren in '.$dry.' ml gedesinfecteerd water van 32 '.DEG.'C');
379 $this->AddPage(); 385 $this->AddPage();
380 else 386 else
381 $this->Ln(5); 387 $this->Ln(5);
382 388
383 $this->Checkheader('Vergisting starten'); 389 $this->Checkheader('Vergisting starten');
384 $this->Checkline('klimaatkast instellen op '.sprintf("%.1f",$row['brew_cooling_to']).' '.DEG.'C'); 390 $this->Checkline('klimaatkast instellen op '.sprintf("%.1f",$climate).' '.DEG.'C');
385 391
386 /* 392 /*
387 * During primary fermentation: fermentables, misc 393 * During primary fermentation: fermentables, misc
388 */ 394 */
389 $lines = 0; 395 $lines = 0;
424 * During secondary fermentation: yeast 430 * During secondary fermentation: yeast
425 */ 431 */
426 $lines = 0; 432 $lines = 0;
427 foreach ($yeasts as $item4) { 433 foreach ($yeasts as $item4) {
428 if ($item4['y_use'] == 1) 434 if ($item4['y_use'] == 1)
435 $lines++;
436 if ($item4['y_harvest_time'] > 0)
429 $lines++; 437 $lines++;
430 } 438 }
431 if ($lines) { 439 if ($lines) {
432 if ($this->GetY() > (270 - (5 * $lines))) 440 if ($this->GetY() > (270 - (5 * $lines)))
433 $this->AddPage(); 441 $this->AddPage();
445 $this->Checkline($s); 453 $this->Checkline($s);
446 } else { // Slant/Culture/Frozen/Bottle 454 } else { // Slant/Culture/Frozen/Bottle
447 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$item4['y_product_id'].', '.$item4['y_name'].' gist (eventueel met starter)'; 455 $s = sprintf("%.0f",$item4['y_amount']*$factor*1000).' ml '.$item4['y_product_id'].', '.$item4['y_name'].' gist (eventueel met starter)';
448 $this->Checkline($s); 456 $this->Checkline($s);
449 } 457 }
458 }
459 if ($item4['y_harvest_time'] > 0) {
460 $s = 'Na ' . $item4['y_harvest_time'] . ' uur gist oogsten vanaf de ';
461 if ($item4['y_harvest_top'] > 0)
462 $s .= 'bovenzijde';
463 else
464 $s .= 'bodem';
465 $this->Checkline($s);
450 } 466 }
451 } 467 }
452 if ($this->Checksplit(5, $row)) 468 if ($this->Checksplit(5, $row))
453 $factor = 1; 469 $factor = 1;
454 470

mercurial