pr updates

This commit is contained in:
Bill Richardson 2024-03-07 19:54:46 -05:00
parent 0591469b55
commit 4bc992d127
3 changed files with 5 additions and 16 deletions

View file

@ -23,12 +23,9 @@ export default {
return this.genericVehicleImage; return this.genericVehicleImage;
} }
let imageUrl = ''; const imageUrl = (this.mainStore.hasSubmittedOrder())
if (this.mainStore.hasSubmittedOrder()) { ? this.mainStore.submittedOrder.vehicle.imageUrl
imageUrl = this.mainStore.submittedOrder.vehicle.imageUrl; : this.mainStore.order.vehicle.imageUrl;
} else {
imageUrl = this.mainStore.order.vehicle.imageUrl;
}
if (!imageUrl || imageUrl === 'NULL') { if (!imageUrl || imageUrl === 'NULL') {
return this.getUnmatchedVehicleIcon(); return this.getUnmatchedVehicleIcon();

View file

@ -637,13 +637,7 @@ export default {
}, },
getPayInAdvanceLineItems(cartItems) { getPayInAdvanceLineItems(cartItems) {
const { glassParts } = useMainStore().order.lineItems; const { glassParts } = useMainStore().order.lineItems;
let lineItems = []; const lineItems = (glassParts === null) ? ['Labor|0|1', 'Repair supplies|0|1'] : ['Parts and labor|0|1'];
if (glassParts === null) {
lineItems = ['Labor|0|1', 'Repair supplies|0|1'];
} else {
lineItems = ['Parts and labor|0|1'];
}
cartItems.forEach((item) => { cartItems.forEach((item) => {
if (item.name !== null && item.category !== 'promos') { if (item.name !== null && item.category !== 'promos') {

View file

@ -902,10 +902,8 @@ export const useMainStore = defineStore({
}, },
async getWipers() { async getWipers() {
const { carId } = this.order.vehicle; const { carId } = this.order.vehicle;
// WARNING
// TODO: this is temp test code until serviceLocation is complete.
const serviceZipCode = this.order.serviceLocation.zipCode; const serviceZipCode = this.order.serviceLocation.zipCode;
// const serviceZipCode = '44902';
return globalMethods return globalMethods
.callHttpClient({ .callHttpClient({
method: endpoints.GetWipers.method, method: endpoints.GetWipers.method,