CHANGE_ : Erollment Final Submit Issue Fix

This commit is contained in:
venbaittech 2024-09-02 16:45:19 +05:30
parent e8f5e0cdd6
commit a674dbac42
4 changed files with 30 additions and 15 deletions

View File

@ -1189,8 +1189,16 @@ class _addOnsDetailsState extends State<addOnsDetails> {
isLoading = true; isLoading = true;
}); });
print('sendAddOnAPI'); print('sendAddOnAPI');
if (gpaDataIsEmpty != 0) { if (gpaDataIsEmpty != 0) {
iAgreeForAddOn.add(int.parse(gpaClintPolicyId)); print('gpaDataIsEmpty : $gpaDataIsEmpty');
for (var item in gpaPolicies) {
print('ClientPolicyId');
// Extract ClientPolicyId value from each object
String clientPolicyId = item['ClientPolicyId'];
// Convert to integer and add to iAgreeForAddOn list
iAgreeForAddOn.add(int.parse(clientPolicyId));
}
} }
if (gmcDataIsEmpty != 0) { if (gmcDataIsEmpty != 0) {

View File

@ -38,7 +38,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
dynamic gpaGridMaster; dynamic gpaGridMaster;
dynamic gmcPolicies; dynamic gmcPolicies;
dynamic gpasumInsured; dynamic gpasumInsured;
dynamic gpaClintPolicyId = 0; dynamic gpaClintPolicyId;
dynamic gpaMappedFamilyFloaters = []; dynamic gpaMappedFamilyFloaters = [];
dynamic gpaSelfName; dynamic gpaSelfName;
dynamic gpaSelfDob; dynamic gpaSelfDob;
@ -565,7 +565,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
.where((element) => element['is_value_exist'] == true) .where((element) => element['is_value_exist'] == true)
.toList(); .toList();
print(getDependentTrueObjects); print('getDependentTrueObjects : $getDependentTrueObjects');
if (getDependentTrueObjects.isNotEmpty) { if (getDependentTrueObjects.isNotEmpty) {
iAgreeForAddOn.add(int.parse(addOnsDependentClientPolicyId)); iAgreeForAddOn.add(int.parse(addOnsDependentClientPolicyId));
@ -577,7 +577,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
.where((element) => element['is_value_exist'] == true) .where((element) => element['is_value_exist'] == true)
.toList(); .toList();
print(getSiTrueObjects); print('getSiTrueObjects : $getSiTrueObjects');
if (getSiTrueObjects.isNotEmpty) { if (getSiTrueObjects.isNotEmpty) {
iAgreeForAddOn.add(int.parse(topUpClientPolicyId)); iAgreeForAddOn.add(int.parse(topUpClientPolicyId));
@ -589,7 +589,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
.where((element) => element['is_value_exist'] == true) .where((element) => element['is_value_exist'] == true)
.toList(); .toList();
print(getSiTrueObjects); print('getSiTrueObjects $getSiTrueObjects');
if (getSiTrueObjects.isNotEmpty) { if (getSiTrueObjects.isNotEmpty) {
iAgreeForAddOn.add(int.parse(topUpParentClientPolicyId)); iAgreeForAddOn.add(int.parse(topUpParentClientPolicyId));
@ -600,13 +600,23 @@ class _empReviewDetailsState extends State<empReviewDetails> {
print(gpaPolicies); print(gpaPolicies);
print('gmcPolicies'); print('gmcPolicies');
print(gmcPolicies); print(gmcPolicies);
print('iAgreeForAddOn $iAgreeForAddOn');
if (gpaDataIsEmpty != 0) { if (gpaDataIsEmpty != 0) {
iAgreeForAddOn.add(int.parse(gpaClintPolicyId)); print('gpaDataIsEmpty : $gpaDataIsEmpty');
for (var item in gpaPolicies) {
print('ClientPolicyId');
// Extract ClientPolicyId value from each object
String clientPolicyId = item['ClientPolicyId'];
// Convert to integer and add to iAgreeForAddOn list
iAgreeForAddOn.add(int.parse(clientPolicyId));
} }
}
print('iAgreeForAddOn $iAgreeForAddOn');
if (gmcDataIsEmpty != 0) { if (gmcDataIsEmpty != 0) {
for (var item in gmcPolicies) { for (var item in gmcPolicies) {
print('ClientPolicyId');
// Extract ClientPolicyId value from each object // Extract ClientPolicyId value from each object
String clientPolicyId = item['ClientPolicyId']; String clientPolicyId = item['ClientPolicyId'];
// Convert to integer and add to iAgreeForAddOn list // Convert to integer and add to iAgreeForAddOn list

View File

@ -107,10 +107,7 @@ class _loginState extends State<login> {
_verifyPhoneNumber(); _verifyPhoneNumber();
ToastHelper.showSuccessToast(context, message); // ToastHelper.showSuccessToast(context, message);
setState(() {
_isLoading = false;
});
} else { } else {
setState(() { setState(() {
_isLoading = false; _isLoading = false;
@ -144,10 +141,10 @@ class _loginState extends State<login> {
timeout: const Duration(seconds: 60), timeout: const Duration(seconds: 60),
verificationCompleted: (PhoneAuthCredential credential) async { verificationCompleted: (PhoneAuthCredential credential) async {
await _auth.signInWithCredential(credential); await _auth.signInWithCredential(credential);
ToastHelper.showSuccessToast(context, 'Verified Successfully!'); // ToastHelper.showSuccessToast(context, 'Verified Successfully!');
setState(() { // setState(() {
_isLoading = false; // _isLoading = false;
}); // });
}, },
verificationFailed: (FirebaseAuthException e) { verificationFailed: (FirebaseAuthException e) {
ToastHelper.showSuccessToast(context, 'Verification Failed!'); ToastHelper.showSuccessToast(context, 'Verification Failed!');

View File

@ -256,7 +256,7 @@ class _MyVerifyState extends State<MyVerify> {
.then((user) async { .then((user) async {
if (user != null) { if (user != null) {
// Handle successful verification // Handle successful verification
ToastHelper.showSuccessToast(context, 'Successfully Login...!'); // ToastHelper.showSuccessToast(context, 'Successfully Login...!');
bool otpVerifyStatus = true; bool otpVerifyStatus = true;
generateToken(otpVerifyStatus); generateToken(otpVerifyStatus);
} else { } else {