www/prod_r_yeast.php

Wed, 14 Jul 2021 20:51:45 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 14 Jul 2021 20:51:45 +0200
changeset 772
f9d266eb0ec6
parent 655
f4e00869f39f
permissions
-rw-r--r--

In product editor calculate fermentables before the first IBU calculation. In recipe editor changed to the new water calculations like in the product editor.

454
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 <?php
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3 require_once($_SERVER['DOCUMENT_ROOT'].'/includes/formulas.php');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 require_once($_SERVER['DOCUMENT_ROOT'].'/fpdf/fpdf.php');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
6
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
7 $link = mysqli_connect(DBASE_HOST,DBASE_USER,DBASE_PASS,DBASE_NAME);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
8 if (! $link) {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
9 die('Connect Error (' . mysqli_connect_errno() . ') ' . mysqli_connect_error());
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
10 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
11 if (! mysqli_set_charset($link, "utf8" )) {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
12 echo "error";
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
13 return 1;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
14 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
15
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
16 setlocale ( LC_ALL, 'nl_NL.UTF-8');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
17
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
18 date_default_timezone_set('Europe/Amsterdam');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 $prdate = date(DATE_RFC2822);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 class PDF_MySQL_Table extends FPDF
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22 {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23 protected $ProcessingTable=false;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 protected $aCols=array();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25 protected $TableX;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27 function Header() {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 // Print the table header if necessary
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29 if ($this->ProcessingTable)
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30 $this->TableHeader();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
32
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
33 function TableHeader() {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
34 $this->SetFont('Helvetica','B',9);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
35 $this->SetX($this->TableX);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
36 $this->SetFillColor(255,150,100);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
37 foreach($this->aCols as $col)
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
38 $this->Cell($col['w'],5,$col['c'],0,0,$col['a'],true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
39 $this->Ln();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
40 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
41
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
42 function AddCol($width=-1, $caption='', $align='L') {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
43 $this->aCols[]=array('c'=>$caption,'w'=>$width,'a'=>$align);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
44 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
45
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
46 function TableTotals() {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
47
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
48 global $link;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
49
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
50 $vul = $this->w - $this->rMargin - $this->lMargin - 151;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
51 $this->AddCol(16,'Code','L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
52 $this->AddCol($vul,'Naam','L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
53 $this->AddCol(35,'Gist','L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
54 $this->AddCol(20,'Hoofdgisting','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
55 $this->AddCol(20,'Nagisten','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
56 $this->AddCol(20,'Lageren','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
57 $this->AddCol(10,'Duur','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
58 $this->AddCol(10,'OG','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
59 $this->AddCol(10,'FG','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
60 $this->AddCol(12,'SVG','R');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
61
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
62 $cMargin=$this->cMargin;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
63 $this->cMargin=2;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
64 $this->TableX=$this->lMargin;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
65 $this->TableHeader();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
66 $this->ProcessingTable=true;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
67
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
68 $this->SetFont('Helvetica','',9);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
69 $this->SetFillColor(210,245,255);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
70
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
71 $result = mysqli_query($link, "SELECT * FROM products WHERE package_date AND type='2' ORDER BY json_yeasts");
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
72 while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
73 /*
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
74 * Data is not always available, try to calculate the mssing pieces.
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
75 */
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
76 $y_name = $y_lab = $y_product = '';
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
77 $yeasts = json_decode($row['json_yeasts'], true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
78 foreach($yeasts as $item) {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
79 if ($item['y_use'] == 0) {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
80 $y_name = iconv('UTF-8','windows-1252',$item['y_name']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
81 $y_lab = iconv('UTF-8','windows-1252',$item['y_laboratory']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
82 $y_product = iconv('UTF-8','windows-1252',$item['y_product_id']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
83 break;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
84 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
85 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
86
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
87 // name,brew_date_end,primary_end_date,secondary_end_date,package_date
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
88 $d1 = new DateTime($row['brew_date_end']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
89 $d2 = new DateTime($row['primary_end_date']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
90 $d3 = new DateTime($row['secondary_end_date']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
91 $d4 = new DateTime($row['package_date']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
92
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
93 $diff = $d2->diff($d1);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
94 $primary_days = $diff->days;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
95 $diff = $d3->diff($d2);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
96 $secondary_days = $diff->days;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
97 $diff = $d4->diff($d3);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
98 $tertiary_days = $diff->days;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
99 $diff = $d4->diff($d1);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
100 $total_days = $diff->days;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
101
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
102 $og = floatval($row['brew_fermenter_sg']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
103 $fg = floatval($row['fg']);
655
f4e00869f39f Calculate the svg using Brew by the Numbers, Micahel L. Hall.
Michiel Broek <mbroek@mbse.eu>
parents: 454
diff changeset
104 $svg = calc_svg($og, $fg);
454
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
105
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
106 $name = iconv('UTF-8','windows-1252',$row['name']);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
107 $this->SetX($this->TableX);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
108 $this->Cell(16,5,$row['code'],0,0,'L',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
109 $this->Cell($vul,5,$name,0,0,'L',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
110 $this->Cell(35,5,$y_lab.' '.$y_product,0,0,'L',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
111 $this->Cell(13,5,sprintf("%.1f",$row['primary_end_temp']).DEG,0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
112 $this->Cell( 7,5,sprintf("%d",$primary_days),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
113 $this->Cell(13,5,sprintf("%.1f",$row['secondary_temp']).DEG,0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
114 $this->Cell( 7,5,sprintf("%d",$secondary_days),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
115 $this->Cell(13,5,sprintf("%.1f",$row['tertiary_temp']).DEG,0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
116 $this->Cell( 7,5,sprintf("%d",$tertiary_days),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
117 $this->Cell(10,5,sprintf("%d",$total_days),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
118 $this->Cell(10,5,sprintf("%.3f",$og),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
119 $this->Cell(10,5,sprintf("%.3f",$fg),0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
120 $this->Cell(12,5,sprintf("%.1f",$svg).'%',0,0,'R',true);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
121 $this->Ln();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
122 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
123 $this->ProcessingTable=false;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
124 $this->cMargin=$cMargin;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
125 $this->aCols=array();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
126 $this->Ln();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
127 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
128 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
129
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
130
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
131
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
132 class PDF extends PDF_MySQL_Table {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
133 function Header() {
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
134 global $prdate;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
135 global $my_brewery_name;
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
136 $this->Image('images/logo.png',10,10,30);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
137 // Title
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
138 $this->SetFont('Helvetica','B',18);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
139 $this->SetX(45);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
140 $this->Cell(0,8,"Vergisting ".$my_brewery_name,0,1,'L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
141 $this->Ln(1);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
142 $this->SetFont('Helvetica','',10);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
143 $this->SetX(45);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
144 $this->Cell(17,5,'Datum:',0,0,'L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
145 $this->Cell(0,5,$prdate,0,1,'L');
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
146 $this->Ln(20);
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
147 // Ensure table header is printed
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
148 parent::Header();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
149 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
150 }
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
151
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
152
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
153
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
154 /*
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
155 * Generate PDF
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
156 */
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
157 $pdf = new PDF();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
158 $pdf->AddPage();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
159 $pdf->TableTotals();
f05ced2b5124 Added yeast performance report.
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
160 $pdf->Output();

mercurial