INSR-9064: Remove repair supplies fee, account for repair in TPA search
This commit is contained in:
parent
e29f144bae
commit
db69745484
2 changed files with 10 additions and 4 deletions
|
|
@ -2,7 +2,8 @@ const partNumberStrings = Object.freeze({
|
||||||
RECYCLE_FEE: 'RECYCLE FEE',
|
RECYCLE_FEE: 'RECYCLE FEE',
|
||||||
LABOR2: 'LABOR2',
|
LABOR2: 'LABOR2',
|
||||||
RECAL_MOBILE: 'RECAL MOBILE',
|
RECAL_MOBILE: 'RECAL MOBILE',
|
||||||
RECAL_MOBILEDUAL: 'RECAL MOBILEDUAL'
|
RECAL_MOBILEDUAL: 'RECAL MOBILEDUAL',
|
||||||
|
REPAIR_SUPPLIES: 'REPAIR-SUPPLIES'
|
||||||
});
|
});
|
||||||
|
|
||||||
export default partNumberStrings;
|
export default partNumberStrings;
|
||||||
|
|
|
||||||
|
|
@ -1034,7 +1034,7 @@ export const useMainStore = defineStore({
|
||||||
const damageType = this.damage.isRepair ? 'Repair' : 'Install';
|
const damageType = this.damage.isRepair ? 'Repair' : 'Install';
|
||||||
|
|
||||||
const parts = getLineItemsFlattened(this.order.lineItems.glassParts);
|
const parts = getLineItemsFlattened(this.order.lineItems.glassParts);
|
||||||
const partNumbers = parts.map((part) => part.partNumber).join(',');
|
const partNumbers = this.damage.isRepair ? 'WSREPAIR' : parts.map((part) => part.partNumber).join(',');
|
||||||
|
|
||||||
let url = `${endpoints.GetTpaAndSafeliteProviders.url}/${zipCode}?accountNumber=${parentAccountNumber}&carId=${carId}&damageType=${damageType}&partNumbers=${partNumbers}`;
|
let url = `${endpoints.GetTpaAndSafeliteProviders.url}/${zipCode}?accountNumber=${parentAccountNumber}&carId=${carId}&damageType=${damageType}&partNumbers=${partNumbers}`;
|
||||||
if (provderNameSearchString) {
|
if (provderNameSearchString) {
|
||||||
|
|
@ -1985,8 +1985,13 @@ export const useMainStore = defineStore({
|
||||||
// Process Recycle Fee
|
// Process Recycle Fee
|
||||||
this.updateRecycleFee(partsData.find((rf) => rf.partNumber === partNumberStrings.RECYCLE_FEE));
|
this.updateRecycleFee(partsData.find((rf) => rf.partNumber === partNumberStrings.RECYCLE_FEE));
|
||||||
|
|
||||||
// Remove RecycleFee from supporting items since it's already been added to feeItems
|
// Remove Recycle Fee from supporting items since it's already been added to feeItems
|
||||||
this.order.lineItems.supportingItems = partsData.filter((i) => i.partNumber !== partNumberStrings.RECYCLE_FEE);
|
let supportingItems = partsData.filter((i) => i.partNumber !== partNumberStrings.RECYCLE_FEE);
|
||||||
|
|
||||||
|
// Remove Repair Supplies Fee, which is hidden for ISS except in scenarios not yet implemented
|
||||||
|
supportingItems = supportingItems.filter((i) => i.partNumber !== partNumberStrings.REPAIR_SUPPLIES);
|
||||||
|
|
||||||
|
this.order.lineItems.supportingItems = supportingItems;
|
||||||
},
|
},
|
||||||
|
|
||||||
updateVaps(partsData) {
|
updateVaps(partsData) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue