From 7908c2278f6111306e773ee20a1b5328fbeff2e9 Mon Sep 17 00:00:00 2001 From: "sanjeev.p" Date: Fri, 2 Jan 2026 09:51:32 +0530 Subject: [PATCH] FIX_Frontend helpdesk issues --- .flutter-plugins-dependencies | 2 +- lib/core/services/api_service.dart | 10 +- lib/presentation/layouts/appheader.dart | 3 +- .../screens/Enquiry/enquiry/enquiry_tab.dart | 22 +- .../screens/Enquiry/enquiry/policy_popup.dart | 16 +- .../enquiry/updateEndorsementDialog.dart | 202 +++++++++++++- .../policy_claims_endros/endrosment.dart | 251 +++++++++--------- .../screens/Masters/Brokers/broker.dart | 100 +++++-- .../EndorsementType/endorsementType.dart | 33 ++- .../UserManagement/Agent/agentList.dart | 3 + .../staff/Enquiry/enquiry_inline_list.dart | 20 ++ .../screens/staff/policy/policy_list.dart | 2 + .../widgets/custom_Stdate_EnDate_Filter.dart | 4 +- 13 files changed, 491 insertions(+), 177 deletions(-) diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 10cde31..dd66a39 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_ios-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.4/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_plugin_android_lifecycle","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.31/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_android","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_android-1.0.52/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"open_file_android","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_android-1.0.6/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_android-2.2.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.13/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_android","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.20/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_mac","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_mac-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_macos-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.3/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_linux-0.0.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_linux-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/","native_build":true,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_windows-0.0.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_windows-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","dependencies":[],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.3.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"flutter_secure_storage_web","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","dependencies":[],"dev_dependency":false},{"name":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.1.0/","dependencies":[],"dev_dependency":false},{"name":"open_file_web","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_web-0.0.4/","dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","dependencies":[],"dev_dependency":false},{"name":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_web","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_web-31.1.19/","dependencies":[],"dev_dependency":false},{"name":"url_launcher_web","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.1/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_messaging","dependencies":["firebase_core","firebase_messaging_web"]},{"name":"firebase_messaging_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_android","google_sign_in_ios","google_sign_in_web"]},{"name":"google_sign_in_android","dependencies":[]},{"name":"google_sign_in_ios","dependencies":[]},{"name":"google_sign_in_web","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"open_file","dependencies":["open_file_android","open_file_web","open_file_ios","open_file_mac","open_file_windows","open_file_linux"]},{"name":"open_file_android","dependencies":[]},{"name":"open_file_ios","dependencies":[]},{"name":"open_file_linux","dependencies":[]},{"name":"open_file_mac","dependencies":[]},{"name":"open_file_web","dependencies":[]},{"name":"open_file_windows","dependencies":[]},{"name":"package_info_plus","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"pdf_render","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"syncfusion_flutter_pdfviewer","dependencies":["url_launcher","device_info_plus","syncfusion_pdfviewer_web","syncfusion_pdfviewer_macos","syncfusion_pdfviewer_windows","syncfusion_pdfviewer_linux"]},{"name":"syncfusion_pdfviewer_linux","dependencies":[]},{"name":"syncfusion_pdfviewer_macos","dependencies":[]},{"name":"syncfusion_pdfviewer_web","dependencies":[]},{"name":"syncfusion_pdfviewer_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2025-12-29 11:43:04.585752","version":"3.32.1","swift_package_manager_enabled":{"ios":false,"macos":false}} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_ios-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.4/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_plugin_android_lifecycle","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.31/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.4/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_android","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_android-7.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_android","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_android-1.0.52/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"],"dev_dependency":false},{"name":"open_file_android","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_android-1.0.6/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_android-2.2.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_android","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_android-2.4.13/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_flutter_pdfviewer","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-31.1.19/","native_build":true,"dependencies":["device_info_plus"],"dev_dependency":false},{"name":"url_launcher_android","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.20/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"firebase_messaging","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging-16.0.4/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"flutter_secure_storage_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"google_sign_in_ios","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_ios-6.2.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_darwin","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_darwin-1.6.0/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_mac","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_mac-1.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.2/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_foundation","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.5.4/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_macos-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_macos","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.3/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_linux-0.0.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.4.1/","native_build":false,"dependencies":["path_provider_linux"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_linux-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_linux","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/","native_build":true,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"firebase_auth","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth-6.1.2/","native_build":true,"dependencies":["firebase_core"],"dev_dependency":false},{"name":"firebase_core","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core-4.2.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_secure_storage_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"local_auth_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"open_file_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_windows-0.0.3/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"shared_preferences_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.4.1/","native_build":false,"dependencies":["path_provider_windows"],"dev_dependency":false},{"name":"syncfusion_pdfviewer_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_windows-31.1.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"url_launcher_windows","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"connectivity_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/connectivity_plus-6.1.5/","dependencies":[],"dev_dependency":false},{"name":"device_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/device_info_plus-11.5.0/","dependencies":[],"dev_dependency":false},{"name":"file_picker","path":"/home/venba/.pub-cache/hosted/pub.dev/file_picker-10.3.7/","dependencies":[],"dev_dependency":false},{"name":"firebase_auth_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_auth_web-6.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"firebase_core_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_core_web-3.3.0/","dependencies":[],"dev_dependency":false},{"name":"firebase_messaging_web","path":"/home/venba/.pub-cache/hosted/pub.dev/firebase_messaging_web-4.1.0/","dependencies":["firebase_core_web"],"dev_dependency":false},{"name":"flutter_secure_storage_web","path":"/home/venba/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[],"dev_dependency":false},{"name":"fluttertoast","path":"/home/venba/.pub-cache/hosted/pub.dev/fluttertoast-9.0.0/","dependencies":[],"dev_dependency":false},{"name":"google_sign_in_web","path":"/home/venba/.pub-cache/hosted/pub.dev/google_sign_in_web-1.1.0/","dependencies":[],"dev_dependency":false},{"name":"open_file_web","path":"/home/venba/.pub-cache/hosted/pub.dev/open_file_web-0.0.4/","dependencies":[],"dev_dependency":false},{"name":"package_info_plus","path":"/home/venba/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","dependencies":[],"dev_dependency":false},{"name":"pdf_render","path":"/home/venba/.pub-cache/hosted/pub.dev/pdf_render-1.4.12/","dependencies":[],"dev_dependency":false},{"name":"shared_preferences_web","path":"/home/venba/.pub-cache/hosted/pub.dev/shared_preferences_web-2.4.3/","dependencies":[],"dev_dependency":false},{"name":"syncfusion_pdfviewer_web","path":"/home/venba/.pub-cache/hosted/pub.dev/syncfusion_pdfviewer_web-31.1.19/","dependencies":[],"dev_dependency":false},{"name":"url_launcher_web","path":"/home/venba/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.1/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"device_info_plus","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"firebase_auth","dependencies":["firebase_auth_web","firebase_core"]},{"name":"firebase_auth_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"firebase_core","dependencies":["firebase_core_web"]},{"name":"firebase_core_web","dependencies":[]},{"name":"firebase_messaging","dependencies":["firebase_core","firebase_messaging_web"]},{"name":"firebase_messaging_web","dependencies":["firebase_core","firebase_core_web"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"fluttertoast","dependencies":[]},{"name":"google_sign_in","dependencies":["google_sign_in_android","google_sign_in_ios","google_sign_in_web"]},{"name":"google_sign_in_android","dependencies":[]},{"name":"google_sign_in_ios","dependencies":[]},{"name":"google_sign_in_web","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"open_file","dependencies":["open_file_android","open_file_web","open_file_ios","open_file_mac","open_file_windows","open_file_linux"]},{"name":"open_file_android","dependencies":[]},{"name":"open_file_ios","dependencies":[]},{"name":"open_file_linux","dependencies":[]},{"name":"open_file_mac","dependencies":[]},{"name":"open_file_web","dependencies":[]},{"name":"open_file_windows","dependencies":[]},{"name":"package_info_plus","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"pdf_render","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_android","shared_preferences_foundation","shared_preferences_linux","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_android","dependencies":[]},{"name":"shared_preferences_foundation","dependencies":[]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]},{"name":"syncfusion_flutter_pdfviewer","dependencies":["url_launcher","device_info_plus","syncfusion_pdfviewer_web","syncfusion_pdfviewer_macos","syncfusion_pdfviewer_windows","syncfusion_pdfviewer_linux"]},{"name":"syncfusion_pdfviewer_linux","dependencies":[]},{"name":"syncfusion_pdfviewer_macos","dependencies":[]},{"name":"syncfusion_pdfviewer_web","dependencies":[]},{"name":"syncfusion_pdfviewer_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2025-12-31 13:12:15.366803","version":"3.32.1","swift_package_manager_enabled":{"ios":false,"macos":false}} \ No newline at end of file diff --git a/lib/core/services/api_service.dart b/lib/core/services/api_service.dart index e4ec4ef..87fdd63 100644 --- a/lib/core/services/api_service.dart +++ b/lib/core/services/api_service.dart @@ -483,9 +483,9 @@ class ApiService { } else if (path == 'NonPerformingBelow50K') { pathVal = 'dashboard/downloadExcelLowPremium?manager_id=$managerId'; } else if (path == 'staff_pending_summary') { - pathVal = 'dashboard/downloadExcelStaffPendingSummaryExcel?manager_id=$managerId'; + pathVal = 'dashboard/downloadExcelStaffPendingSummary?manager_id=$managerId'; } else if (path == 'staff_pending_summary_by_id') { - pathVal = 'dashboard/downloadExcelStaffPendingSummaryExcelByID?manager_id=$managerId&staff_id=$id&status=$month'; + pathVal = 'dashboard/downloadExcelStaffPendingSummaryByID?manager_id=$managerId&staff_id=$id&status=$month'; } else { //NoBusiness pathVal = @@ -574,7 +574,7 @@ class ApiService { dynamic pathVal; pathVal = - 'dashboard/downloadStaffAndProductPoliciesExcel?manager_id=$managerId&month=$month&sales_executive_id=$salesId&vehicle_type=$id'; + 'dashboard/downloadExcelStaffAndProduct?manager_id=$managerId&month=$month&sales_executive_id=$salesId&vehicle_type=$id'; final url = Uri.parse('${Env.apiUrl}$pathVal'); // final url = Uri.parse('https://venbait.in/nhance/partner/dev/$path'); @@ -2082,11 +2082,13 @@ class ApiService { } } - Future generatePolicyExcel(managerId, fromDate, toDate) async { + Future generatePolicyExcel(managerId, fromDate, toDate, searchValue) async { final url = Uri.parse( '${Env.apiUrl}reports/policy-excel?manager_id=$managerId&from_date=${fromDate ?? ''}&to_date=${toDate ?? ''}', ); + // final url = Uri.parse( 'http://localhost/nhance_partner_be/reports/policy-excel?manager_id=$managerId&from_date=${fromDate ?? ''}&to_date=${toDate ?? ''}&search=${searchValue ?? ''}', ); + print('getPdfDownload policy-excel - $url'); await _initializeToken(); diff --git a/lib/presentation/layouts/appheader.dart b/lib/presentation/layouts/appheader.dart index 3e4128c..20ed79c 100644 --- a/lib/presentation/layouts/appheader.dart +++ b/lib/presentation/layouts/appheader.dart @@ -67,7 +67,8 @@ class _AppHeaderState extends ConsumerState { } else if (currentRoute.contains('broker') || currentRoute.contains('payment')) { _activeMenu = 'Masters'; - } else if (currentRoute.contains('payout')) { + } else if (currentRoute.contains('invoice') || // ✅ ADD THIS + currentRoute.contains('payout')) { _activeMenu = 'Invoice'; } }); diff --git a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart index 334d585..3341008 100644 --- a/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart +++ b/lib/presentation/screens/Enquiry/enquiry/enquiry_tab.dart @@ -829,14 +829,24 @@ class EnquiryTabState extends ConsumerState { itemAsString: (val) => val['vehicle_type'].toString(), compareFn: (item, selectedItem) => item['id'] == selectedItem['id'], // ✅ compare by id + // decoratorProps: DropDownDecoratorProps( + // decoration: + // AppInputDecorations.dropdownDecoration( + // label: "Select Vehicle Type", + // ).copyWith( + // filled: true, + // fillColor: Colors.white, // 👈 makes the dropdown input white + // ), + // ), decoratorProps: DropDownDecoratorProps( decoration: - AppInputDecorations.dropdownDecoration( - label: "Select Vehicle Type", - ).copyWith( - filled: true, - fillColor: Colors.white, // 👈 makes the dropdown input white - ), + AppInputDecorations.dropdownDecoration( + label: "Select Vehicle Type", + ).copyWith( + filled: true, + fillColor: Colors.white, + contentPadding: const EdgeInsets.fromLTRB(8, 0, 0, 0), + ), ), popupProps: PopupProps.menu( diff --git a/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart b/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart index 2d8c111..4aa24e6 100644 --- a/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart +++ b/lib/presentation/screens/Enquiry/enquiry/policy_popup.dart @@ -930,9 +930,9 @@ class _AddDialogState extends State { label: "Select Claims Type", ).copyWith( filled: true, - fillColor: Color( - 0xFFEDF6F5, - ), // 👈 makes the dropdown input white + fillColor: Color( 0xFFEDF6F5,), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text ), ), @@ -1106,9 +1106,9 @@ class _AddDialogState extends State { label: "Select Endorsement Type", ).copyWith( filled: true, - fillColor: Color( - 0xFFEDF6F5, - ), // 👈 makes the dropdown input white + fillColor: Color( 0xFFEDF6F5,), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text ), ), @@ -1199,7 +1199,9 @@ class _AddDialogState extends State { label: "Select Policy From", ).copyWith( filled: true, - fillColor: const Color(0xFFEDF6F5), + fillColor: const Color(0xFFEDF6F5), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text ), ), diff --git a/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart b/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart index 79d5ada..a076611 100644 --- a/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart +++ b/lib/presentation/screens/Enquiry/enquiry/updateEndorsementDialog.dart @@ -48,6 +48,7 @@ class _UpdateEndorsementDialogState extends State { String? selectedEndorsement; String? selectedPolicyFrom; String? selectedStatus; // "Pending" or "Completed" + String? selectedFinancialStatus; String? selectedFileNames; bool isLoading = false; PlatformFile? docUploadedFile; @@ -63,6 +64,11 @@ class _UpdateEndorsementDialogState extends State { {"policy_from": "External"}, ]; + final List> financialOptions = [ + { "financial_value": "Yes"}, + { "financial_value": "No"}, + ]; + final GlobalKey>> dropDownKey = GlobalKey>>(); final GlobalKey>> @@ -80,9 +86,13 @@ class _UpdateEndorsementDialogState extends State { // 1. Initialize Controllers controllers['endorsement_no'] = TextEditingController(text: widget.item['endorsement_no']); controllers['remarks'] = TextEditingController(text: widget.item['endorsement_description']); + controllers['contact_person'] = TextEditingController(text: widget.item['contact_person']); + controllers['endorsement_premium'] = TextEditingController(text: widget.item['endorsement_premium']); + controllers['pending_days'] = TextEditingController(text: widget.item['pending_days']); selectedEndorsement = widget.item['endorsement_type']?.toString(); selectedStatus = widget.item['status']?.toString(); + selectedFinancialStatus = widget.item['financia_or_non_financial']?.toString(); selectedFileNames = widget.item['endorsement_completion_file']; getEnroementType(); @@ -183,10 +193,14 @@ class _UpdateEndorsementDialogState extends State { request.fields['endorsement_type'] = selectedEndorsement ?? ""; request.fields['endorsement_description'] = controllers['remarks']?.text ?? ""; request.fields['endorsement_no'] = controllers['endorsement_no']?.text ?? ""; + request.fields['contact_person'] = controllers['contact_person']?.text ?? ""; + request.fields['endorsement_premium'] = controllers['endorsement_premium']?.text ?? ""; + request.fields['pending_days'] = controllers['pending_days']?.text ?? ""; // Set updated_by from the widget parameter request.fields['updated_by'] = widget.userId.toString(); request.fields['status'] = selectedStatus ?? ""; + request.fields['financia_or_non_financial'] = selectedFinancialStatus ?? ""; // --- FILE UPLOAD LOGIC --- if (docUploadedFile != null) { @@ -320,6 +334,24 @@ class _UpdateEndorsementDialogState extends State { ], ), const SizedBox(height: 10), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(child: buildContactPerson(context)), + const SizedBox(width: 15), + Expanded(child: buildFinancialOrNonFinancial(context)), + ], + ), + const SizedBox(height: 10), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded(child: buildEndPremium(context)), + const SizedBox(width: 15), + Expanded(child: buildPendingDays(context)), + ], + ), + const SizedBox(height: 10), Row( children: [ Expanded(child: buildEndrosRemarks(context)), @@ -408,9 +440,9 @@ class _UpdateEndorsementDialogState extends State { label: "Select Endorsement Type", ).copyWith( filled: true, - fillColor: Color( - 0xFFEDF6F5, - ), // 👈 makes the dropdown input white + fillColor: Color( 0xFFEDF6F5,), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text ), ), @@ -524,7 +556,9 @@ class _UpdateEndorsementDialogState extends State { label: "Select Status", ).copyWith( filled: true, - fillColor: const Color(0xFFEDF6F5), + fillColor: Color( 0xFFEDF6F5,), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text ), ), @@ -595,7 +629,7 @@ class _UpdateEndorsementDialogState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text("Upload Document", style: _textStyle), - SizedBox(width: 10), + SizedBox(height: 10), ThemedUploadField( backgroundColor: Color(0xFFEDF6F5), hintText: selectedFileNames ?? "Upload Document", @@ -670,6 +704,164 @@ class _UpdateEndorsementDialogState extends State { ); } + + Widget buildContactPerson(context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("Contact Person *", style: _textStyle), + SizedBox(height: 10), + ThemedFormField( + backgroundColor: Color(0xFFEDF6F5), + controller: controllers['contact_person']!, + validator: (value) => Validators.requiredField(value, "contact_person"), + inputFormatters: [ + FilteringTextInputFormatter.allow(RegExp(r'[a-zA-Z]')), + ], + txtwidth: ResponsiveLayout.isMobile(context) + ? null + : MediaQuery.of(context).size.width * 0.26, + // keyboardType: TextInputType.multiline, + // txtheight: 45, + ), + ], + ); + } + + Widget buildEndPremium(context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("End. Premium *", style: _textStyle), + SizedBox(height: 10), + ThemedFormField( + backgroundColor: Color(0xFFEDF6F5), + controller: controllers['endorsement_premium']!, + validator: (value) => Validators.requiredField(value, "endorsement_premium"), + inputFormatters: [ + FilteringTextInputFormatter.allow(RegExp(r'[0-9]')), + ], + txtwidth: ResponsiveLayout.isMobile(context) + ? null + : MediaQuery.of(context).size.width * 0.26, + + ), + ], + ); + } + + Widget buildPendingDays(context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("Pending Days *", style: _textStyle), + SizedBox(height: 10), + ThemedFormField( + backgroundColor: Color(0xFFEDF6F5), + controller: controllers['pending_days']!, + validator: (value) => Validators.requiredField(value, "pending_days"), + inputFormatters: [ + FilteringTextInputFormatter.allow(RegExp(r'[0-9]')), + ], + txtwidth: ResponsiveLayout.isMobile(context) + ? null + : MediaQuery.of(context).size.width * 0.26, + // keyboardType: TextInputType.multiline, + // txtheight: 45, + ), + ], + ); + } + + Widget buildFinancialOrNonFinancial(context) { + Map selectedEndorsementFNF = financialOptions.firstWhere( + (item) => item['financial_value'].toString() == selectedFinancialStatus, + orElse: () => {}, + ); + + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text("Financial Status *", style: _textStyle), + const SizedBox(height: 10), + Container( + color: Colors.white, + width: ResponsiveLayout.isMobile(context) + ? null + : MediaQuery.of(context).size.width * 0.26, + child: DropdownSearch>( + // Use a unique key for this dropdown + key: const ValueKey("FinancialstatusDropdown"), + selectedItem: selectedEndorsementFNF.isNotEmpty + ? selectedEndorsementFNF + : null, + items: (filter, infiniteScrollProps) { + return financialOptions; // Use the static list + }, + itemAsString: (val) => val['financial_value'].toString(), + compareFn: (item, selectedItem) => + item['financial_value'] == selectedItem['financial_value'], + + // --- REQUIRED VALIDATOR --- + validator: (val) { + if (val == null || val.isEmpty) { + return "Required"; + } + return null; + }, + + decoratorProps: DropDownDecoratorProps( + decoration: AppInputDecorations.dropdownDecoration( + label: "Select Financial Status", + ).copyWith( + filled: true, + fillColor: Color( 0xFFEDF6F5,), // 👈 makes the dropdown input white + isDense: true, // 👈 Makes the field compact + contentPadding: const EdgeInsets.symmetric(horizontal: 15, vertical: 0), // 👈 Vertical 0 helps center the text + ), + ), + + popupProps: PopupProps.menu( + fit: FlexFit.loose, + constraints: const BoxConstraints(maxHeight: 150), // Shorter for 2 items + menuProps: const MenuProps( + backgroundColor: Colors.white, + ), + showSearchBox: true, // Disabled search as there are only 2 items + searchFieldProps: TextFieldProps( + decoration: InputDecoration( + filled: true, + fillColor: Colors.white, + hintText: "Search Financial Status...", + enabledBorder: OutlineInputBorder( + borderSide: BorderSide( + color: Colors.white, + ), // 👈 Normal border + ), + focusedBorder: OutlineInputBorder( + borderSide: BorderSide( + color: Colors.white, + width: 1.5, + ), // 👈 Focused border + ), + ), + ), + ), + + onChanged: (val) { + if (val != null) { + setState(() { + print("Selected Financial Status: ${val['financial_value']}"); + selectedFinancialStatus = val['financial_value']; + }); + } + }, + ), + ), + ], + ); + } + static final TextStyle _textStyle = TextStyle( fontSize: 12, fontWeight: FontWeight.w600, diff --git a/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart b/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart index cfb73b6..7b4002b 100644 --- a/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart +++ b/lib/presentation/screens/Enquiry/policy_claims_endros/endrosment.dart @@ -162,22 +162,65 @@ class endosementState extends ConsumerState { } } - List _buildPopupMenuActions(BuildContext context, dynamic data) { + List _buildPopupMenuActions(BuildContext context, Map item) { + final String Id = item['id']?.toString() ?? ''; + final String? pdfPath = item["endorsement_completion_file"]; + final String? fileName = (pdfPath != null && pdfPath.isNotEmpty) + ? pdfPath.split('/').last + : null; + return [ - GestureDetector( + // --- EDIT BUTTON --- + InkWell( onTap: () { - Navigator.pop(context); - print('EDITStaff - ${data['id']}'); - dynamic id = data['id']; - // context.go('/staff/$id'); + Navigator.pop(context); // Close the menu first + showDialog( + context: context, + barrierDismissible: true, + builder: (BuildContext dialogContext) { + return UpdateEndorsementDialog( + item: item, + userId: userId, // Ensure these variables are accessible + managerId: managerId, + onSubmit: (val) => refresh(), + ); + }, + ); }, - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - Icon(Icons.edit_sharp, color: Color(0xFF319718), size: 18), - SizedBox(width: 10), - Text('Edit'), - ], + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 4.0), + child: Row( + children: const [ + Icon(Icons.edit_sharp, color: Color(0xFF319718), size: 18), + SizedBox(width: 12), + Text('Edit', style: TextStyle(fontSize: 14)), + ], + ), + ), + ), + + const Divider(height: 1, thickness: 0.5), // Subtle separator + + // --- DOWNLOAD BUTTON --- + InkWell( + onTap: () { + Navigator.pop(context); // Close the menu first + apiService.downloadFile( + apiUrl: 'api/endorsement/downloadEndorsementCompletionFile?id=$Id', + apiId: Id, + localFile: null, + fileName: fileName, + ); + }, + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 4.0), + child: Row( + children: const [ + Icon(Icons.download_rounded, color: Colors.blue, size: 18), + SizedBox(width: 12), + Text('Download', style: TextStyle(fontSize: 14)), + ], + ), ), ), ]; @@ -382,7 +425,7 @@ class endosementState extends ConsumerState { mainAxisSize: MainAxisSize.min, children: [ Tooltip( - message: 'Create Claims', + message: 'Create Endorsement', child: Icon( Icons.add, color: Colors.white, @@ -487,7 +530,7 @@ class endosementState extends ConsumerState { ), ), Expanded( - flex: 1, + flex: 2, child: Text('Action', style: _headerStyle), ), ], @@ -569,6 +612,11 @@ class endosementState extends ConsumerState { } Widget _buildDataRow(Map item, sno) { + final String Id = item['id']?.toString() ?? ''; + final String? pdfPath = item["endorsement_completion_file"]; + final String? fileName = pdfPath != null && pdfPath.isNotEmpty + ? pdfPath.split('/').last + : null; return Container( padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 16), // margin: const EdgeInsets.only(top: 10), @@ -583,112 +631,55 @@ class endosementState extends ConsumerState { child: Row( children: [ Expanded(flex: 2, child: Text('$sno' ?? '-', style: _dataBold)), + Expanded(flex: 2, child: Text(item['policy_from'] ?? '-',style: _dataBold)), + Expanded(flex: 2, child: Text(item['status'] ?? '-',style: _dataBold)), + Expanded(flex: 2, child: Text(item['reg_no'] ?? '-',style: _dataBold)), + Expanded(flex: 2, child: Text(item['insurer_short_name'] ?? '-',style: _dataBold)), + Expanded(flex: 2, child: Text(item['policy_number'] ?? '-', style: _dataBold)), + Expanded(flex: 2, child: Text(item['endorsement_type_value'] ?? '-', style: _dataBold)), + Expanded(flex: 2, child: Text(item['endorsement_no'] ?? '-', style: _dataBold)), Expanded( - flex: 2, - child: Text( - item['policy_from'] ?? '-', - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text( - item['status'] ?? '-', - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text( - item['reg_no'] ?? '-', // fallback - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text( - item['endorsement_type_value'] ?? '-', - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text( - item['insurer_short_name'] ?? '-', // fallback - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text(item['policy_number'] ?? '-', style: _dataBold), - ), - - Expanded( - flex: 2, - child: Text( - item['endorsement_type_value'] ?? '-', - style: _dataBold, - ), - ), - Expanded( - flex: 2, - child: Text(item['endorsement_no'] ?? '-', style: _dataBold), - ), - Expanded( - flex: 1, + flex: 2, // Action column child: item['is_active'] == "1" ? Row( + mainAxisSize: MainAxisSize.min, children: [ - Tooltip( - message: 'Edit', - child: IconButton( - icon: Image.asset( - "assets/miscellaneous/Edit.png", - height: 12, - width: 15, + IconButton( + constraints: const BoxConstraints(), + padding: EdgeInsets.zero, + icon: Image.asset("assets/miscellaneous/Edit.png", height: 15, width: 15), + onPressed: () { + showDialog( + context: context, + builder: (context) => UpdateEndorsementDialog( + item: item, + userId: userId, + managerId: managerId, + onSubmit: (val) => refresh(), + ), + ); + }, + ), + const SizedBox(width: 12), + InkWell( + onTap: () => apiService.downloadFile( + apiUrl: 'api/endorsement/downloadEndorsementCompletionFile?id=$Id', + apiId: Id, + localFile: null, + fileName: fileName, + ), + child: Container( + padding: const EdgeInsets.all(4), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(4), + color: Colors.green, ), - // onPressed: () { - // showDialog( - // context: context, - // builder: (context) => UpdateEndorsementDialog( - // item: item, // Passing the whole row map - // userId: userId, - // onSubmit: (val) => refresh(), - // ), - // ); - // }, - onPressed: () { - // Ensure we are using the correct context - showDialog( - context: context, - barrierDismissible: true, // Allows clicking outside to close - builder: (BuildContext dialogContext) { - return UpdateEndorsementDialog( - item: item, - userId: userId, - managerId: managerId, - onSubmit: (val) => refresh(), - ); - }, - ); - }, - splashRadius: 28, - hoverColor: Colors.black12, - padding: const EdgeInsets.all(8), - constraints: const BoxConstraints(), + child: const Icon(Icons.download, size: 14, color: Colors.white), ), ), ], ) - : Row( - children: [ - Image.asset( - "assets/miscellaneous/Edit_muted.png", - height: 12, - width: 15, - ), - ], - ), + : const Text('-'), ), // Expanded( // flex: 1, @@ -744,24 +735,24 @@ class endosementState extends ConsumerState { children: [ //reg no Text(item['reg_no'] ?? '-', style: _headerStyle), - // PopupMenuButton( - // color: Colors.white, - // padding: EdgeInsets.zero, - // offset: Offset(0, 30), - // icon: Icon(Icons.more_vert, color: Color(0xFF475569), size: 14), - // itemBuilder: (context) => [ - // CustomPopupMenuEntry( - // child: Container( - // padding: EdgeInsets.symmetric(horizontal: 8, vertical: 8), - // child: Column( - // mainAxisSize: MainAxisSize.min, - // mainAxisAlignment: MainAxisAlignment.center, - // children: _buildPopupMenuActions(context, item), - // ), - // ), - // ), - // ], - // ), + PopupMenuButton( + color: Colors.white, + padding: EdgeInsets.zero, + offset: Offset(0, 30), + icon: Icon(Icons.more_vert, color: Color(0xFF475569), size: 14), + itemBuilder: (context) => [ + CustomPopupMenuEntry( + child: Container( + padding: EdgeInsets.symmetric(horizontal: 8, vertical: 8), + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: _buildPopupMenuActions(context, item), + ), + ), + ), + ], + ), ], ), const Divider(color: Color(0xffD9EBE8), thickness: 0.8), diff --git a/lib/presentation/screens/Masters/Brokers/broker.dart b/lib/presentation/screens/Masters/Brokers/broker.dart index cd43a14..f9c0354 100644 --- a/lib/presentation/screens/Masters/Brokers/broker.dart +++ b/lib/presentation/screens/Masters/Brokers/broker.dart @@ -40,7 +40,7 @@ class BrokerState extends ConsumerState { late ApiService apiService; final GlobalKey>> dropDownKey = - GlobalKey>>(); + GlobalKey>>(); final GlobalKey>> dropDownKeyHandler = GlobalKey>>(); @@ -105,24 +105,70 @@ class BrokerState extends ConsumerState { } void updateData() async { - if (widget.data != null) { - dynamic id = widget.data?['id']; - final data = widget.data; + if (widget.data == null) return; + + final data = widget.data!; + dynamic id = data['id']; + + setState(() { + selectedId = id; + controllers['name']?.text = data['name'] ?? ''; + controllers['code']?.text = data['short_name'] ?? ''; + controllers["is_active"]?.text = data['is_active']?.toString() ?? ''; + }); + - if (data == null) return; - setState(() { - selectedId = id; - controllers['name']?.text = data['name'] ?? ''; - controllers['code']?.text = data['short_name'] ?? ''; - controllers["is_active"]?.text = data['is_active'].toString(); - }); - } } + // void updateData() async { + // if (widget.data != null) { + // dynamic id = widget.data?['id']; + // final data = widget.data; + // + // if (data == null) return; + // setState(() { + // selectedId = id; + // controllers['name']?.text = data['name'] ?? ''; + // controllers['code']?.text = data['short_name'] ?? ''; + // controllers["is_active"]?.text = data['is_active'].toString(); + // }); + // } + // } + Future handleSave() async { - // if (controllers['name'] != null && controllers['name'] != '') { - // return; - // } + final nameEmpty = controllers['name'] == null || + controllers['name']!.text.trim().isEmpty; + + final codeEmpty = controllers['code'] == null || + controllers['code']!.text.trim().isEmpty; + + // 🔥 Both empty + if (nameEmpty && codeEmpty) { + ToastHelper.showWarningToast( + context, + "Broker and Broker Code is required", + ); + return; + } + + // Broker Name only + if (nameEmpty) { + ToastHelper.showWarningToast( + context, + "Broker is required", + ); + return; + } + + // Broker Code only + if (codeEmpty) { + ToastHelper.showWarningToast( + context, + "Broker Code is required", + ); + return; + } + if (!_formKey.currentState!.validate()) return; setState(() { if (_formKey.currentState!.validate()) { @@ -131,7 +177,7 @@ class BrokerState extends ConsumerState { print("dataSetAgent - $dataSet"); print("TYPE of is_active → ${dataSet['is_active'].runtimeType}"); - print("TYPE of name → ${dataSet['name'].runtimeType}"); + print("TYPE of value → ${dataSet['value'].runtimeType}"); createUserData(dataSet); } else { // isDisable = false; @@ -139,6 +185,28 @@ class BrokerState extends ConsumerState { }); } + + + // Future handleSave() async { + // // if (controllers['name'] != null && controllers['name'] != '') { + // // return; + // // } + // if (!_formKey.currentState!.validate()) return; + // setState(() { + // if (_formKey.currentState!.validate()) { + // dataDetails(); + // final dataSet = dataDetails(); + // print("dataSetAgent - $dataSet"); + // + // print("TYPE of is_active → ${dataSet['is_active'].runtimeType}"); + // print("TYPE of name → ${dataSet['name'].runtimeType}"); + // createUserData(dataSet); + // } else { + // // isDisable = false; + // } + // }); + // } + void refresh() { print('REfresj'); widget.onSubmit(); diff --git a/lib/presentation/screens/Masters/EndorsementType/endorsementType.dart b/lib/presentation/screens/Masters/EndorsementType/endorsementType.dart index 96a592f..f1d4f90 100644 --- a/lib/presentation/screens/Masters/EndorsementType/endorsementType.dart +++ b/lib/presentation/screens/Masters/EndorsementType/endorsementType.dart @@ -40,7 +40,7 @@ class EndorsementTypeState extends ConsumerState { late ApiService apiService; final GlobalKey>> dropDownKey = - GlobalKey>>(); + GlobalKey>>(); final GlobalKey>> dropDownKeyHandler = GlobalKey>>(); @@ -118,9 +118,12 @@ class EndorsementTypeState extends ConsumerState { } Future handleSave() async { - // if (controllers['name'] != null && controllers['name'] != '') { - // return; - // } + if (controllers['endorsement_type'] == null || + controllers['endorsement_type']!.text.trim().isEmpty) { + ToastHelper.showWarningToast(context, "Endorsement Type is required"); + return; + } + if (!_formKey.currentState!.validate()) return; setState(() { if (_formKey.currentState!.validate()) { @@ -129,7 +132,7 @@ class EndorsementTypeState extends ConsumerState { print("dataSetAgent - $dataSet"); print("TYPE of is_active → ${dataSet['is_active'].runtimeType}"); - print("TYPE of endorsement_type → ${dataSet['endorsement_type'].runtimeType}"); + print("TYPE of value → ${dataSet['value'].runtimeType}"); createUserData(dataSet); } else { // isDisable = false; @@ -137,6 +140,26 @@ class EndorsementTypeState extends ConsumerState { }); } + // Future handleSave() async { + // // if (controllers['name'] != null && controllers['name'] != '') { + // // return; + // // } + // if (!_formKey.currentState!.validate()) return; + // setState(() { + // if (_formKey.currentState!.validate()) { + // dataDetails(); + // final dataSet = dataDetails(); + // print("dataSetAgent - $dataSet"); + // + // print("TYPE of is_active → ${dataSet['is_active'].runtimeType}"); + // print("TYPE of endorsement_type → ${dataSet['endorsement_type'].runtimeType}"); + // createUserData(dataSet); + // } else { + // // isDisable = false; + // } + // }); + // } + void refresh() { print('REfresj'); widget.onSubmit(); diff --git a/lib/presentation/screens/UserManagement/Agent/agentList.dart b/lib/presentation/screens/UserManagement/Agent/agentList.dart index 19a960e..b62343e 100644 --- a/lib/presentation/screens/UserManagement/Agent/agentList.dart +++ b/lib/presentation/screens/UserManagement/Agent/agentList.dart @@ -108,6 +108,9 @@ class AgentListState extends ConsumerState { (item['agent_code'] ?? '-').toLowerCase().contains( query.toLowerCase(), ) || + (item['retention_rate'] ?? '-').toLowerCase().contains( + query.toLowerCase(), + ) || (isActiveStatus.contains(query.toLowerCase())); }).toList(); }); diff --git a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart index 331863c..bfe1c5d 100644 --- a/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart +++ b/lib/presentation/screens/staff/Enquiry/enquiry_inline_list.dart @@ -798,6 +798,9 @@ class EnquiryStaffState extends ConsumerState { safeString(item['status']).toLowerCase().contains(q) || safeString(item['payment_mode']).toLowerCase().contains(q) || safeString(item['premium_amount']).toLowerCase().contains(q) || + (q.contains('proceed') && + item['enquiry_status']?.toLowerCase() == 'assigned' && + item['quotation_id'] != null) || safeString( _formatDate(item['created_on']), ).toLowerCase().contains(q) || @@ -2436,6 +2439,23 @@ class EnquiryStaffState extends ConsumerState { ); } + String formatEnquiryStatus(String? status) { + if (status == null) return '-'; + + switch (status.toLowerCase()) { + case 'to be assigned': + return 'To Be Assigned'; + case 'in progress': + return 'In Progress'; + case 'assigned': + return 'Assigned'; + case 'completed': + return 'Completed'; + default: + return status; // fallback + } + } + // Helper: Status display container Widget _buildStatusContainer( Map item, diff --git a/lib/presentation/screens/staff/policy/policy_list.dart b/lib/presentation/screens/staff/policy/policy_list.dart index d684d73..4b0f1f6 100644 --- a/lib/presentation/screens/staff/policy/policy_list.dart +++ b/lib/presentation/screens/staff/policy/policy_list.dart @@ -297,10 +297,12 @@ class policylistState extends ConsumerState { Future fetchPolicyExcelReport() async { final String fromDate = controllers['startDate']!.text; // "11-01-2025" final String toDate = controllers['endDate']!.text; // "20-01-2025" + final String searchValue = _searchStaffController.text; final response = await apiService.generatePolicyExcel( managerId, fromDate, toDate, + searchValue, ); // Map your controllers and IDs to the API parameters // final String fromDate = controllers['startDate']!.text; // "11-01-2025" diff --git a/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart b/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart index 90be762..605bbe7 100644 --- a/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart +++ b/lib/presentation/widgets/custom_Stdate_EnDate_Filter.dart @@ -341,9 +341,9 @@ class _DateFilterRowState extends ConsumerState { // {'id': 3, 'status': 'Proposal Accepted'}, // {'id': 4, 'status': 'Proposal Rejected'}, // {'id': 5, 'status': 'Policy Created'}, - {'id': 1, 'status': 'To be assigned'}, + {'id': 1, 'status': 'To be Assigned'}, {'id': 2, 'status': 'Assigned'}, - {'id': 3, 'status': 'In progress'}, + {'id': 3, 'status': 'In Progress'}, {'id': 4, 'status': 'Completed'}, ]; Map? selectedStatusMap = statusOptions