From 93f69128b5f9fce7c0db75ad740e8d88ac87b826 Mon Sep 17 00:00:00 2001 From: venbaittech Date: Wed, 28 May 2025 12:40:58 +0530 Subject: [PATCH] travel policy --- .../authentication/login/login_widget.dart | 2 +- lib/Screens/forex/forexDetails.dart | 4 +- lib/Screens/myTemplates/template.dart | 248 ++++-- lib/Screens/policy/policy.dart | 339 +++++-- lib/Screens/policy/policyCriteria.dart | 840 +++++++++--------- lib/Screens/policy/policy_list.dart | 50 +- .../create_user/personal_details.dart | 4 +- lib/routes/custom_appBar.dart | 14 +- lib/services/apiService.dart | 45 + pubspec.lock | 8 + pubspec.yaml | 1 + 11 files changed, 1003 insertions(+), 552 deletions(-) diff --git a/lib/Screens/authentication/login/login_widget.dart b/lib/Screens/authentication/login/login_widget.dart index baf9eb2..5ccf7d7 100644 --- a/lib/Screens/authentication/login/login_widget.dart +++ b/lib/Screens/authentication/login/login_widget.dart @@ -116,7 +116,7 @@ class _LoginWidgetState extends State { if (userRole == "Travel Agent") { context.go('/listTravelAgentPlan'); } else if (userRole == "Org Admin" || userRole == "Travel Admin") { - context.go('/listAllPlan'); + context.go('/StatusDashboard'); } else { context.go('/listPlan'); } diff --git a/lib/Screens/forex/forexDetails.dart b/lib/Screens/forex/forexDetails.dart index 8265de8..45230f8 100644 --- a/lib/Screens/forex/forexDetails.dart +++ b/lib/Screens/forex/forexDetails.dart @@ -346,7 +346,9 @@ class ForexDataState extends State { Row( children: [ Text( - (forexDataId != null) ? 'Edit Perdiem Amount' : 'Create Perdiem Amount', + (forexDataId != null) + ? 'Update Perdiem Amount' + : 'Create Perdiem Amount', style: GoogleFonts.poppins(fontSize: 15, color: Colors.black), ), const Spacer(), diff --git a/lib/Screens/myTemplates/template.dart b/lib/Screens/myTemplates/template.dart index 8bcca16..26bec9a 100644 --- a/lib/Screens/myTemplates/template.dart +++ b/lib/Screens/myTemplates/template.dart @@ -39,9 +39,34 @@ class Template extends StatefulWidget { class TemplateState extends State