This commit is contained in:
SamSys
2025-05-30 19:06:21 +03:30
parent 8d78ea548a
commit 46833f93da

View File

@@ -158,8 +158,9 @@ public class CheckoutRepository : RepositoryBase<long, Checkout>, ICheckoutRepos
if (month == "0" && year == "0")
{
DateTime now = DateTime.Now;
startSreach = now;
endSearch = (now.ToFarsi().FindeEndOfMonth()).ToGeorgianDateTime();
string startStr = $"{now.ToFarsi().Substring(0, 8)}01";
startSreach = startStr.ToGeorgianDateTime();
endSearch = (startStr.FindeEndOfMonth()).ToGeorgianDateTime();
}
else if (month == "0" && year != "0")
{