From f811e76a10885c2f1f507e7ed350edd1a7e4ccc4 Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Fri, 7 Jul 2023 15:42:18 -0400 Subject: [PATCH] CSR-1146 | add in provisionalBooking info to time-slot requests --- .../shop-question/shop-question.vue | 2 +- src/store/index.js | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/layouts/service-location/shop-question/shop-question.vue b/src/layouts/service-location/shop-question/shop-question.vue index 929c779af..f588f6422 100644 --- a/src/layouts/service-location/shop-question/shop-question.vue +++ b/src/layouts/service-location/shop-question/shop-question.vue @@ -108,7 +108,7 @@ export default { additionalButtonData() { const startDate = new Date(); const endDate = new Date(); - endDate.setDate(startDate.getDate() + 7); + endDate.setDate(startDate.getDate() + 6); const formattedStartDate = startDate.toISOString().split("T")[0]; const formattedEndDate = endDate.toISOString().split("T")[0]; diff --git a/src/store/index.js b/src/store/index.js index 3c0ea1e39..72faf237d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1255,11 +1255,10 @@ export const actions = { additionalAuthFlag: "", }, partSelection: { - // TODO: Provisional booking will utilize these fields - hasAnsweredPartQuestions: false, - hasAnsweredMoldingQuestions: false, - hasAnsweredCapabilityQuestions: false, - hasManuallySelectedParts: false, + hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers, + hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers, + hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers, + hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"], }, vehicle: { year: vehicle.year, @@ -1308,11 +1307,10 @@ export const actions = { additionalAuthFlag: "", }, partSelection: { - // TODO: Provisional booking will utilize these fields - hasAnsweredPartQuestions: false, - hasAnsweredMoldingQuestions: false, - hasAnsweredCapabilityQuestions: false, - hasManuallySelectedParts: false, + hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers, + hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers, + hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers, + hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"], }, vehicle: { year: vehicle.year,