chore: put currency labels in proper CSV/PDF columns, not jammed into number cells
This commit is contained in:
parent
95762cd1ae
commit
24451b4f4f
1 changed files with 3 additions and 3 deletions
|
|
@ -638,7 +638,7 @@ func generateCSV(eventName string, expenses []database.Expense, userName, userDe
|
|||
break
|
||||
}
|
||||
}
|
||||
writer.Write([]string{"TOTAL", "", "", fmt.Sprintf("%.2f", totalOrig), "", fmt.Sprintf("%.2f %s", totalConv, baseCur), "", "", ""})
|
||||
writer.Write([]string{"TOTAL", "", "", fmt.Sprintf("%.2f", totalOrig), "", fmt.Sprintf("%.2f", totalConv), baseCur, "", ""})
|
||||
} else {
|
||||
writer.Write([]string{"TOTAL", "", "", fmt.Sprintf("%.2f", totalOrig), "", "", "", ""})
|
||||
}
|
||||
|
|
@ -763,8 +763,8 @@ func generatePDF(eventName string, expenses []database.Expense, userName, userDe
|
|||
pdf.Cell(colWidths[2], 8, "TOTAL")
|
||||
pdf.Cell(colWidths[3], 8, fmt.Sprintf("%.2f", totalOrig))
|
||||
pdf.Cell(colWidths[4], 8, "")
|
||||
pdf.Cell(colWidths[5], 8, fmt.Sprintf("%.2f %s", totalConv, baseCur))
|
||||
pdf.Cell(colWidths[6], 8, "")
|
||||
pdf.Cell(colWidths[5], 8, fmt.Sprintf("%.2f", totalConv))
|
||||
pdf.Cell(colWidths[6], 8, baseCur)
|
||||
pdf.Cell(colWidths[7], 8, "")
|
||||
} else {
|
||||
pdf.Cell(colWidths[0], 8, "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue