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() { additionalButtonData() {
const startDate = new Date(); const startDate = new Date();
const endDate = new Date(); const endDate = new Date();
endDate.setDate(startDate.getDate() + 7); endDate.setDate(startDate.getDate() + 6);
const formattedStartDate = startDate.toISOString().split("T")[0]; const formattedStartDate = startDate.toISOString().split("T")[0];
const formattedEndDate = endDate.toISOString().split("T")[0]; const formattedEndDate = endDate.toISOString().split("T")[0];

View file

@ -1255,11 +1255,10 @@ export const actions = {
additionalAuthFlag: "", additionalAuthFlag: "",
}, },
partSelection: { partSelection: {
// TODO: Provisional booking will utilize these fields hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
hasAnsweredPartQuestions: false, hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
hasAnsweredMoldingQuestions: false, hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
hasAnsweredCapabilityQuestions: false, hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
hasManuallySelectedParts: false,
}, },
vehicle: { vehicle: {
year: vehicle.year, year: vehicle.year,
@ -1308,11 +1307,10 @@ export const actions = {
additionalAuthFlag: "", additionalAuthFlag: "",
}, },
partSelection: { partSelection: {
// TODO: Provisional booking will utilize these fields hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
hasAnsweredPartQuestions: false, hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
hasAnsweredMoldingQuestions: false, hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
hasAnsweredCapabilityQuestions: false, hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
hasManuallySelectedParts: false,
}, },
vehicle: { vehicle: {
year: vehicle.year, year: vehicle.year,