ソースを参照

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));

読み込み中…
キャンセル
保存