Browse Source

Remove debug text

Neal Wilson 6 years ago
parent
commit
4ec8bd325f
1 changed files with 0 additions and 11 deletions
  1. 0
    11
      config/Windows/newbatch.xml

+ 0
- 11
config/Windows/newbatch.xml View File

307
             var profilebutton = findChildObject(this, 'load');
307
             var profilebutton = findChildObject(this, 'load');
308
             profilebutton.setEnabled(false);
308
             profilebutton.setEnabled(false);
309
             roasted['currentIndexChanged(int)'].connect(function() {
309
             roasted['currentIndexChanged(int)'].connect(function() {
310
-print("Roasted coffee item changed");
311
                 table.clear();
310
                 table.clear();
312
                 var query = new QSqlQuery();
311
                 var query = new QSqlQuery();
313
                 var q = "SELECT EXISTS(SELECT 1 FROM item_files WHERE item = ";
312
                 var q = "SELECT EXISTS(SELECT 1 FROM item_files WHERE item = ";
332
                 var title = "Typica - [*]New Batch (";
331
                 var title = "Typica - [*]New Batch (";
333
                 title = title + roasted.currentText;
332
                 title = title + roasted.currentText;
334
                 title = title + ")";
333
                 title = title + ")";
335
-print("Updating window title");
336
                 batch.windowTitle = title;
334
                 batch.windowTitle = title;
337
-print("Checking green coffees");
338
                 q = "SELECT unroasted_id FROM roasting_log WHERE roasted_id = ";
335
                 q = "SELECT unroasted_id FROM roasting_log WHERE roasted_id = ";
339
                 q = q + roasted.currentData();
336
                 q = q + roasted.currentData();
340
                 q = q + " AND time = (SELECT max(time) FROM roasting_log WHERE roasted_id = ";
337
                 q = q + " AND time = (SELECT max(time) FROM roasting_log WHERE roasted_id = ";
341
                 q = q + roasted.currentData();
338
                 q = q + roasted.currentData();
342
                 q = q + ")";
339
                 q = q + ")";
343
                 query.exec(q);
340
                 query.exec(q);
344
-print("Updating green table");
345
                 if(query.next())
341
                 if(query.next())
346
                 {
342
                 {
347
                     var unroasted_items = sqlToArray(query.value(0));
343
                     var unroasted_items = sqlToArray(query.value(0));
371
                         }
367
                         }
372
                     }
368
                     }
373
                 }
369
                 }
374
-print("About to query product spec");
375
                 query.prepare("SELECT loss, tolerance, notes FROM roasting_specification WHERE item = :id1 AND time = (SELECT max(time) FROM roasting_specification WHERE item = :id2)");
370
                 query.prepare("SELECT loss, tolerance, notes FROM roasting_specification WHERE item = :id1 AND time = (SELECT max(time) FROM roasting_specification WHERE item = :id2)");
376
                 query.bind(":id1", roasted.currentData());
371
                 query.bind(":id1", roasted.currentData());
377
                 query.bind(":id2", roasted.currentData());
372
                 query.bind(":id2", roasted.currentData());
378
                 query.exec();
373
                 query.exec();
379
                 var lossSpecDescription = "";
374
                 var lossSpecDescription = "";
380
-print("About to read loss spec");
381
                 if(query.next()) {
375
                 if(query.next()) {
382
                     if(query.value(0).length > 0) {
376
                     if(query.value(0).length > 0) {
383
                         lossSpecDescription += (Number(query.value(0)) * 100).toFixed(2);
377
                         lossSpecDescription += (Number(query.value(0)) * 100).toFixed(2);
399
                     lossspec.text = "";
393
                     lossspec.text = "";
400
                     specnotes.plainText = "";
394
                     specnotes.plainText = "";
401
                 }
395
                 }
402
-print("Updated roast spec");
403
-                //roastestimate.text = "";
404
-print("Cleared roast estimate");
405
                 query = query.invalidate();
396
                 query = query.invalidate();
406
-print("About to redraw tag");
407
 				drawTag();
397
 				drawTag();
408
-print("Tag redrawn");
409
             });
398
             });
410
             var validateCapacity = function() {
399
             var validateCapacity = function() {
411
                 if(checkCapacity == "true") {
400
                 if(checkCapacity == "true") {

Loading…
Cancel
Save