www/prod_beerxml.php

changeset 667
1246550451ca
parent 606
39d4b9e7b447
--- a/www/prod_beerxml.php	Fri May 01 21:37:23 2020 +0200
+++ b/www/prod_beerxml.php	Wed May 06 14:14:14 2020 +0200
@@ -293,8 +293,13 @@
 	field($xw, 'VERSION', '1');
 	field($xw, 'NAME', $item['step_name']);
 	field($xw, 'TYPE', $mashsteptype[$item['step_type']]);
-	if ($item['step_type'] == 0)
-		field($xw, 'INFUSE_AMOUNT', sprintf("%.1f",floatval($item['step_infuse_amount'])));
+	if ($item['step_type'] == 0) {
+		field($xw, 'INFUSE_AMOUNT', sprintf("%.3f",floatval($item['step_infuse_amount'])));
+		field($xw, 'INFUSE_TEMP', sprintf("%.3f",floatval($item['step_infuse_temp'])));
+	}
+	if ($item['step_type'] == 2) {
+		field($xw, 'DECOCTION_AMT', sprintf("%.3f",floatval($item['step_infuse_amount'])));
+	}
 	field($xw, 'STEP_TEMP', sprintf("%.1f",floatval($item['step_temp'])));
 	field($xw, 'STEP_TIME', sprintf("%.1f",floatval($item['step_time'])));
 	field($xw, 'RAMP_TIME', sprintf("%.1f",floatval($item['ramp_time'])));

mercurial