www/rec_print.php

changeset 86
e977a505ea8c
parent 85
ca7a37586551
child 87
7f1d0abe5571
--- a/www/rec_print.php	Sun Nov 11 16:36:38 2018 +0100
+++ b/www/rec_print.php	Sun Nov 11 17:53:33 2018 +0100
@@ -142,7 +142,7 @@
 		$this->ProcessingTable=true;
 
 		$sugf = 0;
-		$tot = 0;
+//		$tot = 0;
 		$this->SetFont('Helvetica','',9);
 		$this->SetFillColor(250, 195, 65);
 		$arr = json_decode($row['json_fermentables'], true);
@@ -164,7 +164,7 @@
 			if ($added == "Mash")
 				$d = floatval($row['efficiency']) / 100 * $d;
 			$sugf += $d;
-			$tot += $amount;
+//			$tot += $amount;
 			//$plato = 100 * $d / $amount;
 			//$this->Cell(0,5,$tot.' sugf: '.$sugf.' d: '.$d.' pt: '.$plato.' moisture: '.$moisture,0,0,'L',false);
 			//$this->Ln();
@@ -182,7 +182,7 @@
 
 		$plato = 100 * $sugf / floatval($row['batch_size']);
 		$sg = plato_to_sg($plato);
-		/* Average loops, HansH 5x. Brouwhulp 20x, about 10x is enough so keep 20. */ 
+		/* Average loops, HansH 5x. Brouwhulp 20x, about 10x is enough so keep 20. */
 		for ($i = 0; $i < 20; $i++) {
 			if ($sg > 0)
 				$plato = 100 * $sugf / (floatval($row['batch_size']) * $sg);

mercurial