fixed report

This commit is contained in:
Mohamad Mahdi Jebeli 2026-02-28 10:32:35 +03:30
parent 44421e39d6
commit 457e43f5b9
1 changed files with 6 additions and 6 deletions

View File

@ -145,9 +145,9 @@ class AuthRepository {
startDate = Jalali(shamsiYear, shamsiMounth, 1); startDate = Jalali(shamsiYear, shamsiMounth, 1);
Jalali endDate = Jalali( Jalali endDate = Jalali(
shamsiYear, shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1, shamsiMounth == 12 ? 1 : shamsiMounth + 1,
shamsiMounth + 1 > 12 ? 30 : 1) 1)
.addDays(-1); .addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian(); Gregorian sMiladiDate = startDate.toGregorian();
Gregorian eMiladiDate = endDate.toGregorian(); Gregorian eMiladiDate = endDate.toGregorian();
@ -174,9 +174,9 @@ class AuthRepository {
startDate = Jalali(shamsiYear, shamsiMounth, 1); startDate = Jalali(shamsiYear, shamsiMounth, 1);
Jalali endDate = Jalali( Jalali endDate = Jalali(
shamsiYear, shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1, shamsiMounth == 12 ? 1 : shamsiMounth + 1,
shamsiMounth + 1 > 12 ? 30 : 1) 1)
.addDays(-1); .addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian(); Gregorian sMiladiDate = startDate.toGregorian();