From 873e9570789ed18b8722b4bd95595a0c9c0ac423 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Wed, 20 Mar 2024 17:03:18 +0100 Subject: [PATCH] format platform fees value --- internal/pdf/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pdf/service.go b/internal/pdf/service.go index ca4439e..0cc5ace 100644 --- a/internal/pdf/service.go +++ b/internal/pdf/service.go @@ -98,7 +98,7 @@ func (ps PdfService) BuildReport(r *booking.Report, period string, month, year i "month": month, "year": year, "total": strconv.FormatFloat(r.Total, 'f', 2, 64), - "platform_fees": r.PlatformFees, + "platform_fees": strconv.FormatFloat(r.PlatformFees, 'f', 2, 64), "fee": strconv.FormatFloat(r.Fee, 'f', 2, 64), "profit": strconv.FormatFloat(r.Profit, 'f', 2, 64), "card_total": strconv.FormatFloat(r.CardTotal, 'f', 2, 64),