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;
}
let imageUrl = '';
if (this.mainStore.hasSubmittedOrder()) {
imageUrl = this.mainStore.submittedOrder.vehicle.imageUrl;
} else {
imageUrl = this.mainStore.order.vehicle.imageUrl;
}
const imageUrl = (this.mainStore.hasSubmittedOrder())
? this.mainStore.submittedOrder.vehicle.imageUrl
: this.mainStore.order.vehicle.imageUrl;
if (!imageUrl || imageUrl === 'NULL') {
return this.getUnmatchedVehicleIcon();

View file

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

View file

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