From 22b722e3dc727c1b1b3bb22737b1d050bd45c829 Mon Sep 17 00:00:00 2001 From: MahanCh Date: Sun, 11 May 2025 17:20:12 +0330 Subject: [PATCH] show the TimeDifferences in Customize Checkout to three number --- CompanyManagment.EFCore/Repository/RollCallRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CompanyManagment.EFCore/Repository/RollCallRepository.cs b/CompanyManagment.EFCore/Repository/RollCallRepository.cs index 71e58423..34f6fdc2 100644 --- a/CompanyManagment.EFCore/Repository/RollCallRepository.cs +++ b/CompanyManagment.EFCore/Repository/RollCallRepository.cs @@ -469,12 +469,12 @@ public class RollCallRepository : RepositoryBase, IRollCallRepos } else if (late != TimeSpan.Zero) { - var minutes = late.TotalMinutes > 99 ? "99" : late.TotalMinutes.ToString(); + var minutes = late.TotalMinutes > 999 ? "999" : late.TotalMinutes.ToString(); return $"{minutes}+"; } else if (early != TimeSpan.Zero) { - var minutes = early.TotalMinutes > 99 ? "99" : early.TotalMinutes.ToString(); + var minutes = early.TotalMinutes > 999 ? "999" : early.TotalMinutes.ToString(); return $"{minutes}-"; } else @@ -491,12 +491,12 @@ public class RollCallRepository : RepositoryBase, IRollCallRepos } else if (late != TimeSpan.Zero) { - var minutes = late.TotalMinutes > 99 ? "99" : late.TotalMinutes.ToString(); + var minutes = late.TotalMinutes > 999 ? "999" : late.TotalMinutes.ToString(); return $"{minutes}-"; } else if (early != TimeSpan.Zero) { - var minutes = early.TotalMinutes > 99 ? "99" : early.TotalMinutes.ToString(); + var minutes = early.TotalMinutes > 999 ? "999" : early.TotalMinutes.ToString(); return $"{minutes}+"; } else