The transaction Export function appears to output bitcoin in the same units as selected in settings (BTC/mBTC/uBTC.) and displayed on the transaction listing, but there is no indication of what unit is used in the csv file. Either the cvs file should output in btc or the units used needs to appear in the file.
-
deeb33 commented at 7:29 AM on March 28, 2014: none
- laanwj added the label GUI on Mar 28, 2014
- laanwj added the label Priority Medium on Mar 28, 2014
-
laanwj commented at 8:35 AM on March 28, 2014: member
Yes, the unit should be in the table header.
- laanwj added the label Improvement on Mar 28, 2014
-
bardiharborow commented at 10:13 PM on March 30, 2014: contributor
The issue comes from the fact that the export system exports from the qt table, not from the underlying data source, so whatever is displayed on the table is outputted. See src/qt/csvmodelwriter.cpp. If we were to specify the units in the table header, they would be included in the .cvs file. Not sure how to do that though. Still researching, I'll get back to you.
-
Telepatheic commented at 11:15 AM on April 6, 2014: contributor
This just needs
writer.addColumn(tr("Amount"), 0, TransactionTableModel::FormattedAmountRole);changing in src/qt/transactionview.cpp.I'm not entirely sure on the best way of including the unit maybe:
BitcoinUnits::name(model->getOptionsModel()->getDisplayUnit()) -
laanwj commented at 5:53 AM on April 7, 2014: member
Yeah, something like
if (!model->getOptionsModel()) /* add null pointer check */ return; ... writer.addColumn(tr("Amount") + " [" + BitcoinUnits::name(model->getOptionsModel()->getDisplayUnit()) + "]", 0, TransactionTableModel::FormattedAmountRole); -
gubatron commented at 2:43 PM on June 4, 2014: contributor
I've gone ahead and added this to the amount column both here on the export writer, as well as on the columns of the recent transaction and recent payment request UI tables as part of a patch I'll be submitting soon.
- cozz referenced this in commit 910e60a060 on Jun 18, 2014
- cozz referenced this in commit 88cc74a64d on Jun 18, 2014
- wtogami referenced this in commit 535a7f89f4 on Sep 19, 2014
- laanwj closed this on Sep 25, 2014
- wtogami referenced this in commit d6b0b267fa on Oct 2, 2014
- MathyV referenced this in commit 42d8a144a0 on Nov 3, 2014
- wtogami referenced this in commit cbe6e7cd18 on Nov 14, 2014
- wtogami referenced this in commit 420fb3747c on Dec 23, 2014
- reddink referenced this in commit b062a0a12b on May 27, 2020
- DrahtBot locked this on Sep 8, 2021