|
|
|
@ -81,8 +81,8 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
Utils.showLoading(context);
|
|
|
|
Utils.showLoading(context);
|
|
|
|
CalculateAbsenceDuration duration = await LeaveBalanceApiClient()
|
|
|
|
CalculateAbsenceDuration duration = await LeaveBalanceApiClient()
|
|
|
|
.calculateAbsenceDuration(selectedAbsenceType!.aBSENCEATTENDANCETYPEID!, Utils.getMonthNamedFormat(startDateTime!), Utils.getMonthNamedFormat(endDateTime!), -999);
|
|
|
|
.calculateAbsenceDuration(selectedAbsenceType!.aBSENCEATTENDANCETYPEID!, Utils.getMonthNamedFormat(startDateTime!), Utils.getMonthNamedFormat(endDateTime!), -999);
|
|
|
|
print(duration.toJson());
|
|
|
|
|
|
|
|
totalDays = duration.pABSENCEDAYS;
|
|
|
|
totalDays = duration.pABSENCEDAYS?.toInt();
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
} catch (ex) {
|
|
|
|
} catch (ex) {
|
|
|
|
|