Compare commits

..

No commits in common. "3273d5b32857de4a029d2f1fd71f6dfcf73dd914" and "44421e39d6f9c73aa73dfc284ee28cc0677cb134" have entirely different histories.

1 changed files with 15 additions and 10 deletions

View File

@ -144,8 +144,10 @@ 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(
shamsiYear,
shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1,
shamsiMounth + 1 > 12 ? 30 : 1)
.addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian();
Gregorian eMiladiDate = endDate.toGregorian();
@ -171,8 +173,10 @@ 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(
shamsiYear,
shamsiMounth + 1 > 12 ? 12 : shamsiMounth + 1,
shamsiMounth + 1 > 12 ? 30 : 1)
.addDays(-1);
Gregorian sMiladiDate = startDate.toGregorian();
@ -242,8 +246,7 @@ 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 }
@ -256,3 +259,5 @@ class AuthRepository {
}
}
}