www/includes/db_inventory_yeasts.php

changeset 512
4451af8b6295
parent 313
9f45d09c2071
child 514
3c680d1dea35
--- a/www/includes/db_inventory_yeasts.php	Sat Oct 12 14:00:33 2019 +0200
+++ b/www/includes/db_inventory_yeasts.php	Sun Oct 13 22:02:49 2019 +0200
@@ -33,6 +33,13 @@
 	$sql .= "', max_reuse='" . $_POST['max_reuse'];
 	$sql .= "', cells='" . floatval($_POST['cells']) * 1000000000.0;
 	$sql .= "', tolerance='" . $_POST['tolerance'];
+	($_POST['sta1'] == 'true') ? $sql .= "', sta1='1" : $sql .= "', sta1='0";
+	($_POST['bacteria'] == 'true') ? $sql .= "', bacteria='1" : $sql .= "', bacteria='0";
+	($_POST['harvest_top'] == 'true') ? $sql .= "', harvest_top='1" : $sql .= "', harvest_top='0";
+	$sql .= "', harvest_time='" . $_POST['harvest_time'];
+	$sql .= "', pitch_temperature='" . floatval($_POST['pitch_temperature']);
+	($_POST['pofpos'] == 'true') ? $sql .= "', pofpos='1" : $sql .= "', pofpos='0";
+	$sql .= "', zymocide='" . $_POST['zymocide'];
 	$sql .= "', inventory='" . $_POST['inventory'];
 	$sql .= "', cost='" . $_POST['cost'] . "'";
 	if ($_POST['production_date'] == '')
@@ -99,7 +106,14 @@
 			'production_date' => $row['production_date'],
 			'tht_date' => $row['tht_date'],
 			'cells' => floatval($row['cells']) / 1000000000.0,
-			'tolerance' => $row['tolerance']
+			'tolerance' => $row['tolerance'],
+			'sta1' => $row['sta1'],
+			'bacteria' => $row['bacteria'],
+			'harvest_top' => $row['harvest_top'],
+			'harvest_time' => $row['harvest_time'],
+			'pitch_temperature' => floatval($row['pitch_temperature']),
+			'pofpos' => $row['pofpos'],
+			'zymocide' => $row['zymocide']
 		);
 	}
 	header("Content-type: application/json");

mercurial