Browse Source

Remove legacy invoice list

Neal Wilson 9 years ago
parent
commit
86eb5345b5
2 changed files with 0 additions and 29 deletions
  1. 0
    28
      config/Windows/invoicelist.xml
  2. 0
    1
      config/config.xml

+ 0
- 28
config/Windows/invoicelist.xml View File

@@ -1,28 +0,0 @@
1
-<window id="invoicelist">
2
-	<layout type="vertical">
3
-		<sqlview id="table" />
4
-	</layout>
5
-	<program>
6
-		<![CDATA[
7
-			this.windowTitle = "Typica - Invoice List";
8
-			var table = findChildObject(this, 'table');
9
-			table.setQuery("SELECT id, time, invoice, vendor, (SELECT sum(cost) FROM invoice_items WHERE invoice_id = id) AS cost FROM invoices ORDER BY time DESC");
10
-			table.openEntry.connect(function(arg) {
11
-				var info = createWindow("invoiceinfo");
12
-				info.setInvoiceID(arg);
13
-				var query = new QSqlQuery();
14
-				query.exec("SELECT time, invoice, vendor FROM invoices WHERE id = " + arg);
15
-				query.next();
16
-				var timefield = findChildObject(info, 'date');
17
-				timefield.text = query.value(0);
18
-				var vendorfield = findChildObject(info, 'vendor');
19
-				vendorfield.text = query.value(2);
20
-				var invoicefield = findChildObject(info, 'invoice');
21
-				invoicefield.text = query.value(1);
22
-				var itemtable = findChildObject(info, 'itemtable');
23
-				itemtable.setQuery("SELECT record_type, item_id, description, (SELECT reference FROM items WHERE id = item_id) AS reference, (SELECT cost FROM purchase WHERE item = item_id) AS unit_cost, (SELECT quantity FROM purchase WHERE item = item_id) AS quantity, ((SELECT quantity FROM purchase WHERE item = item_id)/(SELECT conversion FROM lb_bag_conversion WHERE item = item_id))::numeric(12,2) AS sacks, cost FROM invoice_items WHERE invoice_id = " + arg + " AND record_type = 'PURCHASE' UNION SELECT record_type, NULL, description, NULL, NULL, NULL, NULL, cost FROM invoice_items WHERE invoice_id = " + arg + " AND record_type = 'FEE' ORDER BY item_id");
24
-				query = query.invalidate();
25
-			});
26
-		]]>
27
-	</program>
28
-</window>

+ 0
- 1
config/config.xml View File

@@ -22,7 +22,6 @@
22 22
     <include src="Windows/cuppingsessionsummary.xml" />
23 23
     <include src="Windows/cuppingsummary.xml" />
24 24
     <include src="Windows/purchase.xml" />
25
-    <include src="Windows/invoicelist.xml" />
26 25
     <include src="Windows/invoiceinfo.xml" />
27 26
     <include src="Windows/editinvoice.xml" />
28 27
     <include src="Windows/editinvoiceitem.xml" />

Loading…
Cancel
Save