Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

history.xml 728B

1234567891011121314151617
  1. <window id="history">
  2. <layout type="vertical">
  3. <sqlview id="table" />
  4. </layout>
  5. <program>
  6. <![CDATA[
  7. var q = "SELECT time, machine, (SELECT name FROM items WHERE id = roasted_id) AS name, unroasted_total_quantity AS green, roasted_quantity AS roasted, ((unroasted_total_quantity - roasted_quantity) / unroasted_total_quantity * 100::numeric)::numeric(12,2) AS weight_loss, duration, annotation FROM roasting_log ORDER BY time DESC";
  8. var table = findChildObject(this, 'table');
  9. table.setQuery(q);
  10. table.hideColumn(1);
  11. table.openEntryRow.connect(function(arg) {
  12. var details = createWindow("batchDetails");
  13. details.loadData(table, arg);
  14. });
  15. ]]>
  16. </program>
  17. </window>