ソースを参照

Fix invoice fee editor

Neal Wilson 9年前
コミット
e10198ed63
1個のファイルの変更3行の追加3行の削除
  1. 3
    3
      config/Windows/editfee.xml

+ 3
- 3
config/Windows/editfee.xml ファイルの表示

@@ -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();

読み込み中…
キャンセル
保存