CHANGE_ : Erollment Final Submit Issue Fix
This commit is contained in:
parent
e8f5e0cdd6
commit
a674dbac42
@ -1189,8 +1189,16 @@ class _addOnsDetailsState extends State<addOnsDetails> {
|
||||
isLoading = true;
|
||||
});
|
||||
print('sendAddOnAPI');
|
||||
|
||||
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) {
|
||||
|
||||
@ -38,7 +38,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
|
||||
dynamic gpaGridMaster;
|
||||
dynamic gmcPolicies;
|
||||
dynamic gpasumInsured;
|
||||
dynamic gpaClintPolicyId = 0;
|
||||
dynamic gpaClintPolicyId;
|
||||
dynamic gpaMappedFamilyFloaters = [];
|
||||
dynamic gpaSelfName;
|
||||
dynamic gpaSelfDob;
|
||||
@ -565,7 +565,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
|
||||
.where((element) => element['is_value_exist'] == true)
|
||||
.toList();
|
||||
|
||||
print(getDependentTrueObjects);
|
||||
print('getDependentTrueObjects : $getDependentTrueObjects');
|
||||
|
||||
if (getDependentTrueObjects.isNotEmpty) {
|
||||
iAgreeForAddOn.add(int.parse(addOnsDependentClientPolicyId));
|
||||
@ -577,7 +577,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
|
||||
.where((element) => element['is_value_exist'] == true)
|
||||
.toList();
|
||||
|
||||
print(getSiTrueObjects);
|
||||
print('getSiTrueObjects : $getSiTrueObjects');
|
||||
|
||||
if (getSiTrueObjects.isNotEmpty) {
|
||||
iAgreeForAddOn.add(int.parse(topUpClientPolicyId));
|
||||
@ -589,7 +589,7 @@ class _empReviewDetailsState extends State<empReviewDetails> {
|
||||
.where((element) => element['is_value_exist'] == true)
|
||||
.toList();
|
||||
|
||||
print(getSiTrueObjects);
|
||||
print('getSiTrueObjects $getSiTrueObjects');
|
||||
|
||||
if (getSiTrueObjects.isNotEmpty) {
|
||||
iAgreeForAddOn.add(int.parse(topUpParentClientPolicyId));
|
||||
@ -600,13 +600,23 @@ class _empReviewDetailsState extends State<empReviewDetails> {
|
||||
print(gpaPolicies);
|
||||
print('gmcPolicies');
|
||||
print(gmcPolicies);
|
||||
print('iAgreeForAddOn $iAgreeForAddOn');
|
||||
|
||||
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) {
|
||||
for (var item in gmcPolicies) {
|
||||
print('ClientPolicyId');
|
||||
// Extract ClientPolicyId value from each object
|
||||
String clientPolicyId = item['ClientPolicyId'];
|
||||
// Convert to integer and add to iAgreeForAddOn list
|
||||
|
||||
@ -107,10 +107,7 @@ class _loginState extends State<login> {
|
||||
|
||||
_verifyPhoneNumber();
|
||||
|
||||
ToastHelper.showSuccessToast(context, message);
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
});
|
||||
// ToastHelper.showSuccessToast(context, message);
|
||||
} else {
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
@ -144,10 +141,10 @@ class _loginState extends State<login> {
|
||||
timeout: const Duration(seconds: 60),
|
||||
verificationCompleted: (PhoneAuthCredential credential) async {
|
||||
await _auth.signInWithCredential(credential);
|
||||
ToastHelper.showSuccessToast(context, 'Verified Successfully!');
|
||||
setState(() {
|
||||
_isLoading = false;
|
||||
});
|
||||
// ToastHelper.showSuccessToast(context, 'Verified Successfully!');
|
||||
// setState(() {
|
||||
// _isLoading = false;
|
||||
// });
|
||||
},
|
||||
verificationFailed: (FirebaseAuthException e) {
|
||||
ToastHelper.showSuccessToast(context, 'Verification Failed!');
|
||||
|
||||
@ -256,7 +256,7 @@ class _MyVerifyState extends State<MyVerify> {
|
||||
.then((user) async {
|
||||
if (user != null) {
|
||||
// Handle successful verification
|
||||
ToastHelper.showSuccessToast(context, 'Successfully Login...!');
|
||||
// ToastHelper.showSuccessToast(context, 'Successfully Login...!');
|
||||
bool otpVerifyStatus = true;
|
||||
generateToken(otpVerifyStatus);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user