fixed report

This commit is contained in:
Mohamad Mahdi Jebeli 2026-02-28 10:37:01 +03:30
parent 457e43f5b9
commit 3273d5b328
1 changed files with 10 additions and 15 deletions

View File

@ -144,10 +144,8 @@ class AuthRepository {
final shamsiMounth = startDate.month;
startDate = Jalali(shamsiYear, shamsiMounth, 1);
Jalali endDate = Jalali(
shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth == 12 ? 1 : shamsiMounth + 1,
1)
Jalali endDate = Jalali(shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth == 12 ? 1 : shamsiMounth + 1, 1)
.addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian();
Gregorian eMiladiDate = endDate.toGregorian();
@ -173,10 +171,8 @@ class AuthRepository {
final shamsiMounth = startDate.month;
startDate = Jalali(shamsiYear, shamsiMounth, 1);
Jalali endDate = Jalali(
shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth == 12 ? 1 : shamsiMounth + 1,
1)
Jalali endDate = Jalali(shamsiMounth == 12 ? shamsiYear + 1 : shamsiYear,
shamsiMounth == 12 ? 1 : shamsiMounth + 1, 1)
.addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian();
@ -246,7 +242,8 @@ class AuthRepository {
static Future<List<Map<String, dynamic>>> getSubUsers() async {
try {
Response response = await _dioService.sendRequest().get(DioService.getSubUsers);
Response response =
await _dioService.sendRequest().get(DioService.getSubUsers);
// استخراج لیست کاربران از پاسخ جیسون
// ساختار: { "sub_users": [...], "total_count": 1 }
@ -259,5 +256,3 @@ class AuthRepository {
}
}
}