-
+
diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts
index f5de1be..326394f 100644
--- a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts
+++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.ts
@@ -43,7 +43,7 @@ export class ConsultantSettingComponent implements OnInit {
"qualification":null,
"days": null,
"languages": null,
- "workingHours": JSON.stringify([{"sunday":{"hours":[{"startTime":"09:30 am","endTime":"06:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
+ "workingHours": JSON.stringify([{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
// "dob": null,
// "designtion": null,
"gender": null,
@@ -238,7 +238,7 @@ unavailability(action,obj) {
"qualification":null,
"days": null,
"languages": null,
- "workingHours": JSON.stringify( [{"sunday":{"hours":[],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[],"breaks":[]}},{"wednesday":{"hours":[],"breaks":[]}},{"thursday":{"hours":[],"breaks":[]}},{"friday":{"hours":[],"breaks":[]}},{"saturday":{"hours":[],"breaks":[]}}]),
+ "workingHours": JSON.stringify( [{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]),
// "dob": null,
// "designtion": null,
"gender": null,
@@ -249,7 +249,7 @@ unavailability(action,obj) {
}]
let param;
- let tmp = [{"sunday":{"hours":[],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"06:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[],"breaks":[]}},{"wednesday":{"hours":[],"breaks":[]}},{"thursday":{"hours":[],"breaks":[]}},{"friday":{"hours":[],"breaks":[]}},{"saturday":{"hours":[],"breaks":[]}}]
+ let tmp = [{"sunday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"sunday","value":null}],"breaks":[]}},{"monday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"monday","value":null}],"breaks":[]}},{"tuesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"tuesday","value":null}],"breaks":[]}},{"wednesday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"wednesday","value":null}],"breaks":[]}},{"thursday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"thursday","value":null}],"breaks":[]}},{"friday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"friday","value":null}],"breaks":[]}},{"saturday":{"hours":[{"startTime":"09:00 am","endTime":"09:00 pm","day":"saturday","value":null}],"breaks":[]}}]
param ={practitionerId: this.usersList.id,workingHours:JSON.stringify(tmp),days:7}
this._api.createPractitionerInfo(param).subscribe(res => {
diff --git a/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.html b/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.html
index 62693a1..5cef235 100644
--- a/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.html
+++ b/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.html
@@ -1,17 +1,25 @@
Services Details
-
- Filter
-
-
-
- Practitioner
-
- All
-
- {{details.userName}}
-
-
-
+
+
+
+ Filter
+
+
+
+
+
+ Practitioner
+
+ All
+
+ {{details.userName}}
+
+
+
+
+
+
+
diff --git a/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.ts b/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.ts
index 96ec8e9..195b013 100644
--- a/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.ts
+++ b/ng-seed/src/app/appoinment/service-list-details/service-list/service-list.component.ts
@@ -71,6 +71,18 @@ export class ServiceListComponent implements OnInit {
if (res.status == 200) {
console.log(res.data)
this.consultants = res.data;
+ let tmp =[]
+ res.data.forEach(element => {
+
+ if(element.role == "PRACTITIONER"){
+ tmp.push(element)
+ }
+
+ });
+
+ this.consultants = tmp;
+
+
}
else{
this.consultants=[];
@@ -104,16 +116,17 @@ export class ServiceListComponent implements OnInit {
this.servicesList.sort((a: any, b: any) => {
return b.serviceId - a.serviceId;
});
- this.servicesList.forEach((element, index) => {
- element.index = index
-
-
- });
+
let result = this.servicesList.filter((obj, index, self) =>
index === self.findIndex((t) => (
t.serviceId === obj.serviceId
))
);
+ result.forEach((element, index) => {
+ element.index = index
+
+
+ });
this.servicesList = result
this.servicesListSource['data'] = this.servicesList;
this.servicesListLength = this.servicesList.length
diff --git a/ng-seed/src/app/appoinment/user/user-list/user-list.component.ts b/ng-seed/src/app/appoinment/user/user-list/user-list.component.ts
index cfa9204..ee1c8ca 100644
--- a/ng-seed/src/app/appoinment/user/user-list/user-list.component.ts
+++ b/ng-seed/src/app/appoinment/user/user-list/user-list.component.ts
@@ -357,7 +357,7 @@ export class UserListComponent implements OnInit {
}
let loginUser = localStorage.getItem('user_role')
- if(loginUser == 'FRONTDESK'){
+ if(loginUser == "BIZADMIN"){
if(result.role == 'PRACTITIONER'){
console.log('PRACTITIONER')
if(action == 'Update'){
@@ -368,7 +368,7 @@ export class UserListComponent implements OnInit {
this.openAssignService(res['data'].id,'',res['data'].userName)
}
}
- }
+ }
}
else{
diff --git a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
index bd628cb..2e178d2 100644
--- a/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
+++ b/ng-seed/src/app/end-user/booking-summary/booking-summary.component.ts
@@ -85,6 +85,9 @@ export class BookingSummaryComponent implements OnInit {
"appoinmentDate": slot_array[0].date,
"appoinmentTime": time,
"serviceMap": serviceMap,
+ "paymentStatus": 1,
+ "paymentMode":"online",
+ "createdBy":"customer",
"appoinmentSlots": JSON.stringify(slot_array[0].slots)
//"servicemap" :this.bookedAppointment_servicemap
}
diff --git a/ng-seed/src/app/end-user/customer-info/customer-info.component.html b/ng-seed/src/app/end-user/customer-info/customer-info.component.html
index c7ac76d..7fa3dc4 100644
--- a/ng-seed/src/app/end-user/customer-info/customer-info.component.html
+++ b/ng-seed/src/app/end-user/customer-info/customer-info.component.html
@@ -114,35 +114,50 @@
-
+ Name is required
+ Limit exceed
-
+
+ Please enter a valid email address
+
+
+
+ Email is required
+
-
+
-
+ Address is required
-
+
@@ -193,21 +208,21 @@
-
+ state is required
-
+ City is required
-
+ Pincode is required
@@ -263,7 +278,7 @@