|
@@ -97,9 +97,9 @@
|
97
|
97
|
{
|
98
|
98
|
output.writeStartElement("tr");
|
99
|
99
|
output.writeTextElement("td", query.value(0));
|
100
|
|
- output.writeTextElement("td", query.value(1) / conversion);
|
101
|
|
- output.writeTextElement("td", query.value(2) / conversion);
|
102
|
|
- output.writeTextElement("td", query.value(3) / conversion);
|
|
100
|
+ output.writeTextElement("td", (query.value(1) / conversion).toFixed(2));
|
|
101
|
+ output.writeTextElement("td", (query.value(2) / conversion).toFixed(2));
|
|
102
|
+ output.writeTextElement("td", (query.value(3) / conversion).toFixed(2));
|
103
|
103
|
output.writeEndElement();
|
104
|
104
|
}
|
105
|
105
|
output.writeEndElement();
|
|
@@ -107,9 +107,9 @@
|
107
|
107
|
output.writeTextElement("th", "Totals");
|
108
|
108
|
query.exec("SELECT sum(p), sum(c), sum(c-p) FROM comp");
|
109
|
109
|
query.next();
|
110
|
|
- output.writeTextElement("td", query.value(0) / conversion);
|
111
|
|
- output.writeTextElement("td", query.value(1) / conversion);
|
112
|
|
- output.writeTextElement("td", query.value(2) / conversion);
|
|
110
|
+ output.writeTextElement("td", (query.value(0) / conversion).toFixed(2));
|
|
111
|
+ output.writeTextElement("td", (query.value(1) / conversion).toFixed(2));
|
|
112
|
+ output.writeTextElement("td", (query.value(2) / conversion).toFixed(2));
|
113
|
113
|
output.writeEndElement();
|
114
|
114
|
query.exec("ABORT");
|
115
|
115
|
output.writeEndElement();
|