Typica is a free program for professional coffee roasters. https://typica.us
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

invoiceinfo.xml 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <window id="invoiceinfo">
  2. <layout type="vertical">
  3. <layout type="horizontal">
  4. <label>Date:</label>
  5. <line id="date" writable="false" />
  6. <label>Vendor:</label>
  7. <line id="vendor" writable="false" />
  8. <label>Invoice:</label>
  9. <line id="invoice" writable="false" />
  10. <button id="edit" name="Edit" type="push" />
  11. </layout>
  12. <sqlview id="itemtable" />
  13. </layout>
  14. <program>
  15. <![CDATA[
  16. var window = this;
  17. var invoiceID = 0;
  18. var table = findChildObject(this, 'itemtable');
  19. this.setInvoiceID = function(arg) {
  20. window.invoiceID = arg;
  21. invoiceID = arg;
  22. window.windowTitle = "Typica - Invoice Details " + arg;
  23. };
  24. button = findChildObject(this, 'edit');
  25. button.clicked.connect(function() {
  26. var editInvoiceDetails = createWindow("editinvoice");
  27. editInvoiceDetails.invoiceID = window.invoiceID;
  28. var invoiceLine = findChildObject(editInvoiceDetails, 'invoice');
  29. var localInvoiceLine = findChildObject(window, 'invoice');
  30. invoiceLine.text = localInvoiceLine.text;
  31. editInvoiceDetails.invoiceID = window.invoiceID;
  32. });
  33. table.openEntryRow.connect(function(arg) {
  34. if(table.data(arg, 0) == 'PURCHASE') {
  35. var itemWindow = createWindow("invoiceitemdetail");
  36. itemWindow.rowData = [];
  37. for(var i = 0; i < 8; i++) {
  38. itemWindow.rowData[i] = table.data(arg, i);
  39. }
  40. itemWindow.dataSet();
  41. }
  42. else {
  43. var feeWindow = createWindow("invoicefeedetail");
  44. feeWindow.rowData = [];
  45. for(var i = 0; i < 8; i++) {
  46. feeWindow.rowData[i] = table.data(arg, i);
  47. }
  48. feeWindow.invoiceID = invoiceID;
  49. feeWindow.dataSet();
  50. }
  51. });
  52. ]]>
  53. </program>
  54. </window>