Sat, 11 May 2019 17:25:58 +0200
One more decimal digit for misc ingredients. Updated the README.
README.design | file | annotate | diff | comparison | revisions | |
www/prod_forum.php | file | annotate | diff | comparison | revisions | |
www/prod_print.php | file | annotate | diff | comparison | revisions |
--- a/README.design Sat May 11 16:55:41 2019 +0200 +++ b/README.design Sat May 11 17:25:58 2019 +0200 @@ -122,12 +122,9 @@ Extra: -Gisten alcohol_tolerance veld toevoegen. DONE. Gisten diastaticus bit toevoegen. -Waarschuwing voor te zwaar voor de gist. Waarschuwing voor overschrijden moutstort. Gist typen: kveik en brett? Apart of niet. -Automatisch ingredienten afboeken afhankelijk van de project fase. Controle ingredienten voor het brouwen.
--- a/www/prod_forum.php Sat May 11 16:55:41 2019 +0200 +++ b/www/prod_forum.php Sat May 11 17:25:58 2019 +0200 @@ -150,8 +150,8 @@ } echo PHP_EOL . PHP_EOL; -echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; -echo "------------------------------ --------------- -------------------- ----------" . PHP_EOL; +echo "Specerij, kruid, brouwzout etc Type grondstof Gebruik tijdens Hoeveel" . PHP_EOL; +echo "------------------------------ --------------- -------------------- -----------" . PHP_EOL; $arr = json_decode($row['json_miscs'], true); foreach($arr as $item) { $amount = floatval($item['m_amount']) * 1000; @@ -163,9 +163,9 @@ $gebruik = sprintf("%s %d min",$miscuse[$use_use],$time); else $gebruik = $miscuse[$use_use]; - $hoeveel = sprintf("%.1f %s",$amount,$aiw ? "gr":"ml"); + $hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml"); - echo sprintf("%s %-15s %-20s %10s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; + echo sprintf("%s %-15s %-20s %11s", formatstr($item['m_name'], 30), $misctype[$item['m_type']], $gebruik, $hoeveel) . PHP_EOL; } echo PHP_EOL . PHP_EOL;
--- a/www/prod_print.php Sat May 11 16:55:41 2019 +0200 +++ b/www/prod_print.php Sat May 11 17:25:58 2019 +0200 @@ -373,7 +373,7 @@ else $gebruik = $miscuse[$use_use]; - $hoeveel = sprintf("%.1f %s",$amount,$aiw ? "gr":"ml"); + $hoeveel = sprintf("%.2f %s",$amount,$aiw ? "gr":"ml"); $this->Cell($vul,5,$name,0,0,'L',true); $this->Cell(30,5,$misctype[$type],0,0,'L',true); $this->Cell(30,5,$gebruik,0,0,'L',true);