(format_last_entry): Output tr:cost as an amount, not as an amount
string.
This commit is contained in:
parent
93d8d2c811
commit
8f63d2d172
1 changed files with 5 additions and 2 deletions
|
|
@ -654,8 +654,11 @@ void format_xml_entries::format_last_entry()
|
||||||
xml_write_value(output_stream, value_t((*i)->amount), 10);
|
xml_write_value(output_stream, value_t((*i)->amount), 10);
|
||||||
output_stream << " </tr:amount>\n";
|
output_stream << " </tr:amount>\n";
|
||||||
|
|
||||||
if ((*i)->cost)
|
if ((*i)->cost) {
|
||||||
output_stream << " <tr:cost>" << *(*i)->cost << "</tr:cost>\n";
|
output_stream << " <tr:cost>\n";
|
||||||
|
xml_write_value(output_stream, value_t(*(*i)->cost), 10);
|
||||||
|
output_stream << " </tr:cost>\n";
|
||||||
|
}
|
||||||
|
|
||||||
if (! (*i)->note.empty())
|
if (! (*i)->note.empty())
|
||||||
output_stream << " <tr:note>" << xml_string((*i)->note)
|
output_stream << " <tr:note>" << xml_string((*i)->note)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue