Fixed checklist for dried Kveik

Wed, 04 Mar 2020 20:04:50 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 04 Mar 2020 20:04:50 +0100
changeset 624
7509f9ed5686
parent 623
4aee10bcb94e
child 625
57bc32b5f411

Fixed checklist for dried Kveik

www/prod_checklist.php file | annotate | diff | comparison | revisions
--- a/www/prod_checklist.php	Wed Mar 04 14:15:45 2020 +0100
+++ b/www/prod_checklist.php	Wed Mar 04 20:04:50 2020 +0100
@@ -347,10 +347,11 @@
 			if ($item['y_use'] == 0) { // primary
 				if ($item['y_form'] == 0) { // Liquid
 					$this->Checkline(($item['y_amount']*$factor).' pak '.$product_id.', '.$name.' gist');
-				} else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry
+				} else if ($item['y_form'] == 1 || $item['y_form'] == 6) { // Dry or dried Kveik
 					$s = sprintf("%.1f",$item['y_amount']*$factor*1000).' gram '.$product_id.', '.$name;
 					$s .= ' gist';
-					$dry += $item['y_amount']*$factor*10000;
+					if ($item['y_form'] == 1)
+						$dry += $item['y_amount']*$factor*10000;
 					$this->Checkline($s);
 				} else { // Slant/Culture/Frozen/Bottle
 					$s = sprintf("%.0f",$item['y_amount']*$factor*1000).' ml '.$product_id.', '.$name.' gist';

mercurial