www/log_brew.php

Tue, 31 Aug 2021 20:48:37 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 31 Aug 2021 20:48:37 +0200
changeset 774
92e1e8f175a2
parent 294
1e09d1d102a8
permissions
-rw-r--r--

Split batch, adjust mash step volume. In the duplicated log_brew handle the missing values. In save product, round the mash step sg to 4 decimals. In prod_edit, ingredients are stored as strings, not arrays. This triggered a memory corruption that only happened in rare circumstances. Don't fix mash step fields in the javascript, it is already done during load from the database. Calculation of the mash volume is rounded to 6 decimals. Enter mash step Brix/Plato value, the SG result is rounded to 4 decimals.

<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/global.inc.php');
page_header('Brouw sessie grafiek', "log_brew");
?>

   <div id="MainPanel">
    <div id="ContentPanel"></div>
    <div id="brew_chart" style="width:1130px; height:610px; float:left; margin-left: 10px; margin-top: 10px;"></div>
    <div style="margin-top: 10px; margin-left: 10px;">
     <input style="float: left; margin-left: 10px;" id="print" type="button" value="Print grafiek" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pdfButton" type="button" value="Maak PDF" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="pngButton" type="button" value="Maak PNG" />
     <input style="float: left; margin-left: 10px; margin-top: 10px;" id="Close" type="button" value="Sluiten" />
    </div>
   </div>

<?php
page_footer();
?>

mercurial