# HG changeset patch # User Michiel Broek # Date 1557588358 -7200 # Node ID 74d56bed75b96a72504bb7e6cc6b4fc6c2145591 # Parent 36c72e368948fa0a7c5f2c3a47d50d1ab974fb8b One more decimal digit for misc ingredients. Updated the README. diff -r 36c72e368948 -r 74d56bed75b9 README.design --- 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. diff -r 36c72e368948 -r 74d56bed75b9 www/prod_forum.php --- 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; diff -r 36c72e368948 -r 74d56bed75b9 www/prod_print.php --- 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);