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;
});
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) {

View File

@ -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

View File

@ -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!');

View File

@ -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 {