Преглед изворни кода

Merge branch 'needstesting' into development

Neal Wilson пре 9 година
родитељ
комит
ff5bf962a9
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      config/Windows/newsamplebatch.xml

+ 2
- 1
config/Windows/newsamplebatch.xml Прегледај датотеку

@@ -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…
Откажи
Сачувај