Merge pull request #1213 from Safelite/feature/CSR-1146

CSR-1146 | add in provisionalBooking info to time-slot requests
This commit is contained in:
scottkiener 2023-07-07 15:57:19 -04:00 committed by GitHub
commit 73aa9da0b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 11 deletions

View file

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

View file

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