You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -434,20 +509,25 @@ func (a *App) sendInvoiceReminderToUser(userID, userEmail, userName string, now
434
509
435
510
mailBody:="We hope this message finds you well.\n"
436
511
mailBody+=fmt.Sprintf("Our records show that there is an outstanding invoice for %v %s associated with your account (%d). ", invoice.Total, currencyName, invoice.ID)
437
-
mailBody+=fmt.Sprintf("As of today, the payment for this invoice is %d days overdue.", overDueDays)
512
+
ifoverDueDays>0 {
513
+
mailBody+=fmt.Sprintf("As of today, the payment for this invoice is %d days overdue.", overDueDays)
514
+
}
438
515
mailBody+="To avoid any interruptions to your services and the potential deletion of your deployments, "
439
516
mailBody+=fmt.Sprintf("we kindly ask that you make the payment within the next %d days. If the invoice remains unpaid after this period, ", gracePeriod)
440
517
mailBody+="please be advised that the associated deployments will be deleted from our system.\n\n"
441
518
442
519
mailBody+="You can easily pay your invoice by charging balance, activating voucher or using cards.\n\n"
443
520
mailBody+="If you have already made the payment or need any assistance, "
444
521
mailBody+="please don't hesitate to reach out to us.\n\n"
445
-
mailBody+="We appreciate your prompt attention to this matter and thank you fosr being a valued customer."
522
+
mailBody+="We appreciate your prompt attention to this matter and thank you for being a valued customer."
0 commit comments