|
|
|
|
@ -181,7 +181,7 @@ class AddSickLeavScreen extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
AppText(TranslationBase.of(context).daysSickleave + ": "),
|
|
|
|
|
AppText(
|
|
|
|
|
item.sickLeaveDays ?? item.noOfDays.toString(),
|
|
|
|
|
item.sickLeaveDays.toString() ?? item.noOfDays.toString(),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -211,10 +211,11 @@ class AddSickLeavScreen extends StatelessWidget {
|
|
|
|
|
child: AppText(
|
|
|
|
|
AppDateUtils.getDayMonthYearDateFormatted(
|
|
|
|
|
item.startDate.contains("/Date(")
|
|
|
|
|
? AppDateUtils.convertStringToDate(item.endDate)
|
|
|
|
|
.add(Duration(days: item.noOfDays))
|
|
|
|
|
: DateTime.parse(item.startDate)
|
|
|
|
|
.add(Duration(days: item.noOfDays))),
|
|
|
|
|
? AppDateUtils.convertStringToDate(item.endDate ?? "")
|
|
|
|
|
.add(Duration(
|
|
|
|
|
days: item.noOfDays ?? item.sickLeaveDays))
|
|
|
|
|
: DateTime.parse(item.startDate ?? "")
|
|
|
|
|
.add(Duration(days: item.noOfDays ?? ""))),
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
|