PatrickLuhmann / arcCouatl3

Yet another re-write of the venerable Couatl project
GNU General Public License v3.0
1 stars 0 forks source link

Display full precision in transaction detail view #16

Closed PatrickLuhmann closed 5 years ago

PatrickLuhmann commented 5 years ago

The precision has been set to 2 decimal places throughout. This is fine for the summary in the ledger (even though the numbers might not add up exactly) but the user needs to be able to see the actual amount somewhere, For a transaction, this should be in the details view.

PatrickLuhmann commented 5 years ago

I don't see a standard format specifier that will do what I want. Maybe I can create my own. Maybe I should make the fields strings that are formatted by the ViewModel. This would require parsing on input, but this might not be too bad since there is support for that in C#.

PatrickLuhmann commented 5 years ago

"StringFormat=G" seems to be what I want. This does not include a '$' character automatically, but this might not be a bad thing. The Detail View doesn't need to look pretty.

PatrickLuhmann commented 5 years ago

Turns out the default format for the decimal type is the same as 'G' so I just took out the StringFormat entirely.

commit 4597a4d354d2cd39a8cfb0dc165c9b56640f3b17