Closed PatrickLuhmann closed 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#.
"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.
Turns out the default format for the decimal type is the same as 'G' so I just took out the StringFormat entirely.
commit 4597a4d354d2cd39a8cfb0dc165c9b56640f3b17
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.