Pārlūkot izejas kodu

Merge branch 'needstesting' into development

Neal Wilson 8 gadus atpakaļ
vecāks
revīzija
ff5bf962a9
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      config/Windows/newsamplebatch.xml

+ 2
- 1
config/Windows/newsamplebatch.xml Parādīt failu

314
 				query.exec();
314
 				query.exec();
315
 				query.next();
315
 				query.next();
316
 				var roastedId = query.value(0);
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
 				query.bind(":time", timefield.text);
318
 				query.bind(":time", timefield.text);
319
 				query.bind(":unroastedids", "{" + greenId + "}");
319
 				query.bind(":unroastedids", "{" + greenId + "}");
320
+                                query.bind(":greens", "{" + convertToPounds(parseFloat(green.text), GunitBox.currentText) + "}");
320
 				query.bind(":green", convertToPounds(parseFloat(green.text), GunitBox.currentText));
321
 				query.bind(":green", convertToPounds(parseFloat(green.text), GunitBox.currentText));
321
 				query.bind(":roastedid", Number(roastedId));
322
 				query.bind(":roastedid", Number(roastedId));
322
 				query.bind(":roasted", convertToPounds(parseFloat(roasted.text), GunitBox.currentText));
323
 				query.bind(":roasted", convertToPounds(parseFloat(roasted.text), GunitBox.currentText));

Notiek ielāde…
Atcelt
Saglabāt