Browse Source

Merge branch 'needstesting' into development

Neal Wilson 8 years ago
parent
commit
ff5bf962a9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      config/Windows/newsamplebatch.xml

+ 2
- 1
config/Windows/newsamplebatch.xml View File

@@ -314,9 +314,10 @@
314 314
 				query.exec();
315 315
 				query.next();
316 316
 				var roastedId = query.value(0);
317
-				query.prepare("INSERT INTO roasting_log (time, unroasted_id, unroasted_quantity, unroasted_total_quantity, roasted_id, roasted_quantity, transaction_type, annotation, machine, duration, approval, humidity, barometric, indoor_air, outdoor_air, files) VALUES(:time, :unroastedids, NULL, :green, :roastedid, :roasted, 'SAMPLEROAST', :note, :machine, :duration, TRUE, NULL, NULL, NULL, NULL, :files)");
317
+				query.prepare("INSERT INTO roasting_log (time, unroasted_id, unroasted_quantity, unroasted_total_quantity, roasted_id, roasted_quantity, transaction_type, annotation, machine, duration, approval, humidity, barometric, indoor_air, outdoor_air, files) VALUES(:time, :unroastedids, :greens, :green, :roastedid, :roasted, 'SAMPLEROAST', :note, :machine, :duration, TRUE, NULL, NULL, NULL, NULL, :files)");
318 318
 				query.bind(":time", timefield.text);
319 319
 				query.bind(":unroastedids", "{" + greenId + "}");
320
+                                query.bind(":greens", "{" + convertToPounds(parseFloat(green.text), GunitBox.currentText) + "}");
320 321
 				query.bind(":green", convertToPounds(parseFloat(green.text), GunitBox.currentText));
321 322
 				query.bind(":roastedid", Number(roastedId));
322 323
 				query.bind(":roasted", convertToPounds(parseFloat(roasted.text), GunitBox.currentText));

Loading…
Cancel
Save