瀏覽代碼

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…
取消
儲存