diff --git a/.env b/.env
index 5ea1d81..8ec620d 100644
--- a/.env
+++ b/.env
@@ -1,4 +1,4 @@
-API_URL=https://dev.venbait.in/nhance/uat/employeeRest/
-TICKET_API_URL=https://dev.venbait.in/nhance/helpdesk/uat/api
-BASE_HREF=/nhance/employee/uat/
-ENV=uat
\ No newline at end of file
+API_URL=https://app.nhanceindia.in/zenith/employeeRest/
+TICKET_API_URL=https://app.nhanceindia.in/helpdesk/api
+BASE_HREF=/employee/
+ENV=production
\ No newline at end of file
diff --git a/.env.development b/.env.development
index 267d625..63d6b02 100644
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,4 @@
API_URL=https://venbait.in/nhance/dev/employeeRest/
TICKET_API_URL=https://venbait.in/nhance/helpdesk/dev/api
BASE_HREF=/nhance/employee/dev/
-ENV=development
\ No newline at end of file
+ENV=development
diff --git a/.env.production b/.env.production
index 9a9d739..8ec620d 100644
--- a/.env.production
+++ b/.env.production
@@ -1,4 +1,4 @@
-API_URL=https://dev.venbait.in/nhance/uat/employeeRest/
-TICKET_API_URL=https://dev.venbait.in/nhance/helpdesk/uat/api
-BASE_HREF=/nhance/employee/uat/
+API_URL=https://app.nhanceindia.in/zenith/employeeRest/
+TICKET_API_URL=https://app.nhanceindia.in/helpdesk/api
+BASE_HREF=/employee/
ENV=production
\ No newline at end of file
diff --git a/.env.uat b/.env.uat
index 5ea1d81..73eb6ac 100644
--- a/.env.uat
+++ b/.env.uat
@@ -1,4 +1,4 @@
API_URL=https://dev.venbait.in/nhance/uat/employeeRest/
TICKET_API_URL=https://dev.venbait.in/nhance/helpdesk/uat/api
BASE_HREF=/nhance/employee/uat/
-ENV=uat
\ No newline at end of file
+ENV=uat
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 446fa34..c33638b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -28,10 +28,6 @@
android:resource="@style/NormalTheme"
/>
-
-
-
-
diff --git a/assets/wellness.png b/assets/wellness.png
new file mode 100644
index 0000000..b22275b
Binary files /dev/null and b/assets/wellness.png differ
diff --git a/lib/pages/enrollment/addons.dart b/lib/pages/enrollment/addons.dart
index 6da0857..861b5f4 100644
--- a/lib/pages/enrollment/addons.dart
+++ b/lib/pages/enrollment/addons.dart
@@ -58,6 +58,7 @@ class _addOnsDetailsState extends State {
dynamic gmcSelfRelationship;
dynamic gmcSelfDetails;
dynamic gmcPolicyName;
+ dynamic gmcPolicyType;
dynamic gmcNotes;
dynamic gmcSumInsured;
dynamic gmcFloaterTextDescription;
@@ -72,6 +73,7 @@ class _addOnsDetailsState extends State {
dynamic topUpSlabRates;
dynamic topUpFamilyFloater;
dynamic topUpPolicyName;
+ dynamic topUpPolicyType;
dynamic topUpSiPremiumValue;
dynamic topUpSiValue;
dynamic topUpSiSelectedSI;
@@ -82,6 +84,7 @@ class _addOnsDetailsState extends State {
dynamic topUpParentClientPolicyId;
dynamic topUpParentSlabRates;
dynamic topUpParentPolicyName;
+ dynamic topUpParentPolicyType;
dynamic topUpParentFamilyFloater;
dynamic topUpParentMappedFamilyFloatersSi;
dynamic topUpParentECardDownload;
@@ -99,6 +102,7 @@ class _addOnsDetailsState extends State {
dynamic addOnsSelectedDependent;
dynamic addOnsdependentValue;
dynamic addOnsDependentPolicyName;
+ dynamic addOnsDependentPolicyType;
dynamic addOnsDependentECardDownload;
int addOnsDependentOpenForEnrollment = 0;
dynamic siValue;
@@ -316,6 +320,8 @@ class _addOnsDetailsState extends State {
topUpPolicyName =
await topUpSiPolicies['gmc_si_topup']['policy_name'];
+ topUpPolicyType = await topUpSiPolicies['gmc_si_topup']['type'];
+
topUpFamilyFloater = await topUpSiPolicies['gmc_si_topup']
['policy_terms']['family_floater'];
print('topUpFamilyFloater');
@@ -352,7 +358,9 @@ class _addOnsDetailsState extends State {
topUpSiPremiumGst = topUpSiPolicies['gmc_si_topup']
['family_floaters_of_only_si_gst_value'];
- topUpSiTotalAmt = topUpSiPremiumValue + topUpSiPremiumGst;
+ double topUpSum = topUpSiPremiumValue + topUpSiPremiumGst;
+
+ topUpSiTotalAmt = double.parse(topUpSum.toStringAsFixed(2));
});
}
// });
@@ -404,6 +412,9 @@ class _addOnsDetailsState extends State {
await topUpSiParentPolicies['gmc_si_parent_topup']
['policy_name'];
+ topUpParentPolicyType =
+ await topUpSiParentPolicies['gmc_si_parent_topup']['type'];
+
topUpParentFamilyFloater =
await topUpSiParentPolicies['gmc_si_parent_topup']
['policy_terms']['family_floater'];
@@ -447,8 +458,11 @@ class _addOnsDetailsState extends State {
topUpSiParentPolicies['gmc_si_parent_topup']
['family_floaters_of_only_si_gst_value'];
- topUpParentSiTotalAmt =
+ double topUpParentsSum =
topUpParentSiPremiumValue + topUpParentSiPremiumGst;
+
+ topUpParentSiTotalAmt =
+ double.parse(topUpParentsSum.toStringAsFixed(2));
});
}
// });
@@ -500,6 +514,9 @@ class _addOnsDetailsState extends State {
await addOnsDependentPolicies['gmc_dependent_addon']
['policy_name'];
+ addOnsDependentPolicyType =
+ await addOnsDependentPolicies['gmc_dependent_addon']['type'];
+
addOnsDependentFamilyFloater =
await addOnsDependentPolicies['gmc_dependent_addon']
['policy_terms']['family_floater'];
@@ -514,6 +531,11 @@ class _addOnsDetailsState extends State {
print(addOnsDependentMappedFamilyFloatersDependent);
});
+ String intOpenForEnrollment =
+ addOnsDependentPolicies['gmc_dependent_addon']
+ ['OpenForEnrollment'];
+ addOnsDependentOpenForEnrollment = int.parse(intOpenForEnrollment);
+
addOnsdependentValue =
await addOnsDependentPolicies['gmc_dependent_addon']
['family_floaters_of_dependent_and_si_value'];
@@ -532,8 +554,11 @@ class _addOnsDetailsState extends State {
addOnsDependentPolicies['gmc_dependent_addon']
['family_floaters_of_dependent_and_gst_value'];
- addOnsDependentTotalAmt =
+ double addOnsSum =
addOnDependentPremiumValue + addOnsDependentPremiumGst;
+
+ addOnsDependentTotalAmt =
+ double.parse(addOnsSum.toStringAsFixed(2));
});
addOnsDependentECardDownload =
@@ -541,12 +566,6 @@ class _addOnsDetailsState extends State {
['eCardDownload'];
print('addOnsDependentECardDownload');
print(addOnsDependentECardDownload);
-
- String intOpenForEnrollment =
- addOnsDependentPolicies['gmc_dependent_addon']
- ['OpenForEnrollment'];
- addOnsDependentOpenForEnrollment =
- int.parse(intOpenForEnrollment);
}
} else {
print('No data found in the response');
@@ -756,6 +775,7 @@ class _addOnsDetailsState extends State {
'employee_id': employee_id,
'client_id': client_id,
'emp_code': empCodeString,
+ 'client_branch_id': empClientBranchId,
};
// Add the map to the list
@@ -1396,7 +1416,7 @@ class _addOnsDetailsState extends State {
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize:
- Responsive.isDesktop(context) ? 18 : 16,
+ Responsive.isDesktop(context) ? 18 : 14,
),
),
],
@@ -1767,7 +1787,10 @@ class _addOnsDetailsState extends State {
.start,
children: [
Text(
- topUpPolicyName ?? '',
+ Responsive.isDesktop(
+ context)
+ ? topUpPolicyName
+ : topUpPolicyType,
textAlign:
TextAlign.left,
style:
@@ -2029,7 +2052,7 @@ class _addOnsDetailsState extends State {
.isDesktop(
context)
? 18
- : 16,
+ : 14,
color: Color(
0xFF232526),
),
@@ -2402,8 +2425,10 @@ class _addOnsDetailsState extends State {
.start,
children: [
Text(
- topUpParentPolicyName ??
- '',
+ Responsive.isDesktop(
+ context)
+ ? topUpParentPolicyName
+ : topUpParentPolicyType,
textAlign:
TextAlign.left,
style:
@@ -2664,7 +2689,7 @@ class _addOnsDetailsState extends State {
.isDesktop(
context)
? 18
- : 16,
+ : 14,
color: Color(
0xFF232526),
),
@@ -3037,8 +3062,10 @@ class _addOnsDetailsState extends State {
.start,
children: [
Text(
- addOnsDependentPolicyName ??
- '',
+ Responsive.isDesktop(
+ context)
+ ? addOnsDependentPolicyName
+ : addOnsDependentPolicyType,
textAlign:
TextAlign.left,
style: GoogleFonts
@@ -4232,6 +4259,7 @@ class _addOnsDetailsState extends State {
for (var item in data) {
setState(() {
gmcPolicyName = item['Policy_Name'];
+ gmcPolicyType = item['type'];
gmcFloaterTextHeading = item['floter_text_heading'];
gmcFloaterTextDescription = item['floter_text_description'];
gmcNotes = item['notes'];
@@ -4286,7 +4314,7 @@ class _addOnsDetailsState extends State {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
- flex: 9,
+ flex: Responsive.isDesktop(context) ? 9 : 7,
child: Container(
alignment: Alignment.centerLeft,
child: Column(
@@ -4307,7 +4335,9 @@ class _addOnsDetailsState extends State {
Row(
children: [
Text(
- gmcPolicyName ?? '',
+ Responsive.isDesktop(context)
+ ? gmcPolicyName
+ : gmcPolicyType,
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize:
@@ -4338,7 +4368,7 @@ class _addOnsDetailsState extends State {
],
))),
Expanded(
- flex: 3,
+ flex: Responsive.isDesktop(context) ? 3 : 5,
child: Container(
alignment: Alignment.centerRight,
child: Column(
@@ -4399,7 +4429,7 @@ class _addOnsDetailsState extends State {
'${data['name']} ~ ${data['relationship']} ~ DOB : $formattedDate',
style: GoogleFonts.poppins(
fontSize:
- Responsive.isDesktop(context) ? 18 : 16,
+ Responsive.isDesktop(context) ? 18 : 14,
color: Color(0xFF232526),
),
),
@@ -4428,6 +4458,7 @@ class _addOnsDetailsState extends State {
print(item);
String? gpaPolicyName = item['Policy_Name'];
+ String? gpaPolicyType = item['type'];
String? gpaECardDownload = item['eCardDownload'];
String? gpaSumInsured;
List gpaMappedFamilyFloaters = [];
@@ -4481,7 +4512,7 @@ class _addOnsDetailsState extends State {
child: Text(
gpaSelfDetails ?? '',
style: GoogleFonts.poppins(
- fontSize: Responsive.isDesktop(context) ? 18 : 16,
+ fontSize: Responsive.isDesktop(context) ? 18 : 14,
color: Color(0xFF232526),
),
),
@@ -4515,7 +4546,7 @@ class _addOnsDetailsState extends State {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
- flex: 9,
+ flex: Responsive.isDesktop(context) ? 9 : 7,
child: Container(
alignment: Alignment.centerLeft,
child: Column(
@@ -4533,7 +4564,9 @@ class _addOnsDetailsState extends State {
Row(
children: [
Text(
- gpaPolicyName ?? 'NA',
+ Responsive.isDesktop(context)
+ ? '$gpaPolicyName'
+ : '$gpaPolicyType',
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize:
@@ -4562,7 +4595,7 @@ class _addOnsDetailsState extends State {
),
),
Expanded(
- flex: 3,
+ flex: Responsive.isDesktop(context) ? 3 : 5,
child: Container(
alignment: Alignment.centerRight,
child: Column(
diff --git a/lib/pages/enrollment/empDetails.dart b/lib/pages/enrollment/empDetails.dart
index 1b9f0b8..fd36324 100644
--- a/lib/pages/enrollment/empDetails.dart
+++ b/lib/pages/enrollment/empDetails.dart
@@ -56,6 +56,7 @@ class _empDetailsState extends State {
dynamic gmcSelfRelationship;
dynamic gmcSelfDetails;
dynamic gmcPolicyName;
+ dynamic gmcPolicyType;
dynamic gmcNotes;
dynamic gmcGridMaster;
dynamic gmcSumInsured;
@@ -1545,6 +1546,7 @@ class _empDetailsState extends State {
print(item);
String? gpaPolicyName = item['Policy_Name'];
+ String? gpaPolicyType = item['type'];
String? gpaECardDownload = item['eCardDownload'];
String? gpaSumInsured;
List gpaMappedFamilyFloaters = [];
@@ -1694,7 +1696,7 @@ class _empDetailsState extends State {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
- flex: 9,
+ flex: Responsive.isDesktop(context) ? 9 : 7,
child: Container(
alignment: Alignment.centerLeft,
child: Column(
@@ -1711,16 +1713,33 @@ class _empDetailsState extends State {
),
Row(
children: [
- Text(
- gpaPolicyName ?? 'NA',
- textAlign: TextAlign.left,
- style: GoogleFonts.poppins(
- fontSize:
- Responsive.isDesktop(context) ? 20 : 14,
- fontWeight: FontWeight.w600,
- ),
- ),
- if (gpaECardDownload != null)
+ !Responsive.isDesktop(context)
+ ? Tooltip(
+ message: gpaPolicyType ?? 'NA',
+ child: Text(
+ gpaPolicyType ?? 'NA',
+ textAlign: TextAlign.left,
+ style: GoogleFonts.poppins(
+ fontSize:
+ Responsive.isDesktop(context)
+ ? 20
+ : 14,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ )
+ : Text(
+ gpaPolicyName ?? 'NA',
+ textAlign: TextAlign.left,
+ style: GoogleFonts.poppins(
+ fontSize:
+ Responsive.isDesktop(context)
+ ? 20
+ : 14,
+ fontWeight: FontWeight.w600,
+ ),
+ ),
+ if (item['eCardDownload'] != null)
GestureDetector(
onTap: () async {
_launchURL(item['eCardDownload']);
@@ -1741,7 +1760,7 @@ class _empDetailsState extends State {
),
),
Expanded(
- flex: 3,
+ flex: Responsive.isDesktop(context) ? 3 : 5,
child: Container(
alignment: Alignment.centerRight,
child: Column(
@@ -1795,6 +1814,7 @@ class _empDetailsState extends State {
print(item);
setState(() {
gmcPolicyName = item['Policy_Name'];
+ gmcPolicyType = item['type'];
gmcFloaterTextHeading = item['floter_text_heading'];
gmcFloaterTextDescription = item['floter_text_description'];
gmcNotes = item['notes'];
@@ -2083,7 +2103,7 @@ class _empDetailsState extends State {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
- flex: 9,
+ flex: Responsive.isDesktop(context) ? 9 : 7,
child: Container(
alignment: Alignment.centerLeft,
child: Column(
@@ -2102,7 +2122,9 @@ class _empDetailsState extends State {
Row(
children: [
Text(
- gmcPolicyName ?? '',
+ Responsive.isDesktop(context)
+ ? gmcPolicyName
+ : gmcPolicyType,
textAlign: TextAlign.left,
style: GoogleFonts.poppins(
fontSize:
@@ -2131,7 +2153,7 @@ class _empDetailsState extends State {
],
))),
Expanded(
- flex: 3,
+ flex: Responsive.isDesktop(context) ? 3 : 5,
child: Container(
alignment: Alignment.centerRight,
child: Column(
diff --git a/lib/pages/enrollment/empReview.dart b/lib/pages/enrollment/empReview.dart
index fbf09ad..d3e79b5 100644
--- a/lib/pages/enrollment/empReview.dart
+++ b/lib/pages/enrollment/empReview.dart
@@ -53,6 +53,7 @@ class _empReviewDetailsState extends State {
dynamic gmcSelfRelationship;
dynamic gmcSelfDetails;
dynamic gmcPolicyName;
+ dynamic gmcPolicyType;
dynamic gmcNotes;
dynamic gmcSumInsured;
dynamic gmcTypeName;
@@ -68,11 +69,12 @@ class _empReviewDetailsState extends State {
dynamic siValue;
dynamic addOnsDependentSumInsured;
dynamic addOnsDependentPolicyName;
+ dynamic addOnsDependentPolicyType;
dynamic addOnsFloaterTextHeading;
dynamic addOnsDependentECardDownload;
dynamic addOnsFamilyFloater;
late DateTime? selectedDate;
- int totalPayableAmt = 0;
+ double totalPayableAmt = 0.0;
List