www/includes/db_inventory_yeasts.php

changeset 313
9f45d09c2071
parent 296
69fadd1aded2
child 512
4451af8b6295
--- a/www/includes/db_inventory_yeasts.php	Sun Mar 03 13:26:58 2019 +0100
+++ b/www/includes/db_inventory_yeasts.php	Sun Mar 03 16:27:39 2019 +0100
@@ -32,6 +32,7 @@
 	$sql .= "', best_for='" . mysqli_real_escape_string($connect, $_POST['best_for']);
 	$sql .= "', max_reuse='" . $_POST['max_reuse'];
 	$sql .= "', cells='" . floatval($_POST['cells']) * 1000000000.0;
+	$sql .= "', tolerance='" . $_POST['tolerance'];
 	$sql .= "', inventory='" . $_POST['inventory'];
 	$sql .= "', cost='" . $_POST['cost'] . "'";
 	if ($_POST['production_date'] == '')
@@ -97,7 +98,8 @@
 			'cost' => $row['cost'],
 			'production_date' => $row['production_date'],
 			'tht_date' => $row['tht_date'],
-			'cells' => floatval($row['cells']) / 1000000000.0
+			'cells' => floatval($row['cells']) / 1000000000.0,
+			'tolerance' => $row['tolerance']
 		);
 	}
 	header("Content-type: application/json");

mercurial