diff --git a/internal/handlers/file.go b/internal/handlers/file.go index 8142d4a..acfc519 100644 --- a/internal/handlers/file.go +++ b/internal/handlers/file.go @@ -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, "")