|
|
|
|
@ -96,7 +96,7 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void validateAbsenceTransaction(selectedID) async {
|
|
|
|
|
try {
|
|
|
|
|
//try {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
Map<String, String?> dffDataMap = {};
|
|
|
|
|
for (int i = 1; i <= 20; i++) {
|
|
|
|
|
@ -145,10 +145,10 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
}
|
|
|
|
|
await LeaveBalanceApiClient().cancelHrTransaction(submit.pTRANSACTIONID!);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
} catch (ex) {
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
Utils.handleException(ex, context, null);
|
|
|
|
|
}
|
|
|
|
|
// } catch (ex) {
|
|
|
|
|
// Utils.hideLoading(context);
|
|
|
|
|
// Utils.handleException(ex, context, null);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -159,10 +159,7 @@ class _AddLeaveBalanceScreenState extends State<AddLeaveBalanceScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
if (dynamicParams == null) {
|
|
|
|
|
dynamicParams = ModalRoute
|
|
|
|
|
.of(context)!
|
|
|
|
|
.settings
|
|
|
|
|
.arguments;
|
|
|
|
|
dynamicParams = ModalRoute.of(context)!.settings.arguments;
|
|
|
|
|
if (dynamicParams.isNotEmpty) {
|
|
|
|
|
AppState().postParamsJson['P_SELECTED_EMPLOYEE_NUMBER'] = dynamicParams;
|
|
|
|
|
selectedEmp = dynamicParams;
|
|
|
|
|
|