fix date on pdf report

This commit is contained in:
Ruidy 2024-04-11 14:59:27 +02:00
parent f764e1007c
commit 0b059ac991
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -107,8 +107,8 @@ func (ps PdfService) BuildReport(r *booking.Report, period string, month, year i
return map[string]any{
"id": l.Id,
"name": l.CustomerName,
"from": l.From.Format("02 01 2006"),
"to": l.To.Format("02 02 2006"),
"from": l.From.Format("02/01/2006"),
"to": l.To.Format("02/01/2006"),
"total": strconv.FormatFloat(l.Total, 'f', 2, 64),
"platform": l.Platform,
"platform_fees": strconv.FormatFloat(l.PlatformFees, 'f', 2, 64),