include mobile_insurance in mobile checks
This commit is contained in:
parent
91ee04c72c
commit
c3a2143ffa
2 changed files with 6 additions and 3 deletions
|
|
@ -130,7 +130,8 @@ const getAvailableDates = async (
|
||||||
apiEndDate = apiEndDateLimit;
|
apiEndDate = apiEndDateLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appointmentType === AppointmentTypeStrings.MOBILE) {
|
if (appointmentType === AppointmentTypeStrings.MOBILE
|
||||||
|
|| appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE) {
|
||||||
storeActionConfig = {
|
storeActionConfig = {
|
||||||
storeAction: GET_MOBILE_TIME_SLOTS,
|
storeAction: GET_MOBILE_TIME_SLOTS,
|
||||||
payload: {
|
payload: {
|
||||||
|
|
@ -311,7 +312,8 @@ export default {
|
||||||
const serviceLocationPreReqs = serviceLocation.zipCode
|
const serviceLocationPreReqs = serviceLocation.zipCode
|
||||||
&& serviceLocation.zipCodeCtu
|
&& serviceLocation.zipCodeCtu
|
||||||
&& serviceLocation.appointmentType
|
&& serviceLocation.appointmentType
|
||||||
&& (serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
|
&& ((serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE
|
||||||
|
|| serviceLocation.appointmentType === AppointmentTypeStrings.MOBILE_INSURANCE)
|
||||||
|| serviceLocation.provider.providerNumber);
|
|| serviceLocation.provider.providerNumber);
|
||||||
const paymentInfo = useMainStore().payment.isInsurance !== null;
|
const paymentInfo = useMainStore().payment.isInsurance !== null;
|
||||||
const supportingItems = useMainStore().lineItems.supportingItems !== null;
|
const supportingItems = useMainStore().lineItems.supportingItems !== null;
|
||||||
|
|
@ -319,6 +321,7 @@ export default {
|
||||||
useMainStore().order.damage.isRepair
|
useMainStore().order.damage.isRepair
|
||||||
|| (useMainStore().order.lineItems?.glassParts != null
|
|| (useMainStore().order.lineItems?.glassParts != null
|
||||||
&& useMainStore().order.lineItems.glassParts.length > 0);
|
&& useMainStore().order.lineItems.glassParts.length > 0);
|
||||||
|
|
||||||
return serviceLocationPreReqs && paymentInfo && supportingItems && damageInfo;
|
return serviceLocationPreReqs && paymentInfo && supportingItems && damageInfo;
|
||||||
},
|
},
|
||||||
setData(initialShopTimeSlotsResponse) {
|
setData(initialShopTimeSlotsResponse) {
|
||||||
|
|
|
||||||
|
|
@ -641,7 +641,7 @@ export const useMainStore = defineStore({
|
||||||
startDate,
|
startDate,
|
||||||
endDate,
|
endDate,
|
||||||
applicationName: applicationConfig.APPLICATION_NAME,
|
applicationName: applicationConfig.APPLICATION_NAME,
|
||||||
parentAccountNumber: this.payment.parentAccountNumber,
|
parentAccountNumber: 167132, // this.payment.parentAccountNumber,
|
||||||
carId: vehicle.carId,
|
carId: vehicle.carId,
|
||||||
lineItems,
|
lineItems,
|
||||||
glassPieces,
|
glassPieces,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue