Browse Source

Fix invoice fee editor

Neal Wilson 8 years ago
parent
commit
e10198ed63
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      config/Windows/editfee.xml

+ 3
- 3
config/Windows/editfee.xml View File

@@ -20,7 +20,7 @@
20 20
 			var costField = findChildObject(this, 'cost');
21 21
 			this.dataSet = function() {
22 22
 				descField.text = window.rowData[2];
23
-				costField.text = window.rowData[4];
23
+				costField.text = window.rowData[7];
24 24
 			};
25 25
 			button = findChildObject(this, 'submit');
26 26
 			button.clicked.connect(function() {
@@ -28,9 +28,9 @@
28 28
 				query.prepare("UPDATE invoice_items SET description = :name, cost = :cost WHERE invoice_id = :id AND record_type = 'FEE' AND item_id = NULL AND description = :oldname AND cost = :oldcost");
29 29
 				query.bind(":name", descField.text);
30 30
 				query.bind(":cost", Number(costField.text));
31
-				query.bind(":id", Number(window.rowData[1]);
31
+				query.bind(":id", Number(window.rowData[1]));
32 32
 				query.bind(":oldname", window.rowData[2]);
33
-				query.bind(":oldcost", window.rowData[4]);
33
+				query.bind(":oldcost", window.rowData[7]);
34 34
 				query.exec();
35 35
 				query = query.invalidate();
36 36
 				window.close();

Loading…
Cancel
Save