Manager: display total credit with thousands separators

This commit is contained in:
David Anderson 2015-08-11 14:47:35 -07:00
parent 18fd1dab5e
commit 6613560224
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ static int DefaultShownColumns[] = { COLUMN_PROJECT, COLUMN_ACCOUNTNAME, COLUMN_
// TODO: thousands separators
// TODO: use these in simple view too.
static void format_total_credit(float credit, wxString& strBuffer) {
strBuffer.Printf(wxT("%.0f"), credit);
unsigned long x = credit;
char* p = comma_print(x);
strBuffer = wxString(p, wxConvUTF8);
}
static void format_avg_credit(float credit, wxString& strBuffer) {
strBuffer.Printf(wxT("%0.2f"), credit);