change deductible based on damageType
This commit is contained in:
parent
0d6f5ad70f
commit
a05550513b
1 changed files with 2 additions and 1 deletions
|
|
@ -909,11 +909,12 @@ export const useMainStore = defineStore({
|
||||||
const ctuToUse = this.order.serviceLocation.zipCodeCtu;
|
const ctuToUse = this.order.serviceLocation.zipCodeCtu;
|
||||||
const availableLineItemsFormattedForRequest = getLineItemQueryStringForPricing(availableLineItems);
|
const availableLineItemsFormattedForRequest = getLineItemQueryStringForPricing(availableLineItems);
|
||||||
const { policy } = this.order;
|
const { policy } = this.order;
|
||||||
|
const deductibleToUse = this.damage.isRepair ? policy.deductible.repair : policy.deductible.replace;
|
||||||
|
|
||||||
let queryString =
|
let queryString =
|
||||||
`ParentAccountNumber=${this.order.accountNumber}`
|
`ParentAccountNumber=${this.order.accountNumber}`
|
||||||
+ `&CTU=${ctuToUse}`
|
+ `&CTU=${ctuToUse}`
|
||||||
+ `&Deductible=${policy.deductible.repair}`
|
+ `&Deductible=${deductibleToUse}`
|
||||||
+ `&ZipCode=${zipCodeToUse}`
|
+ `&ZipCode=${zipCodeToUse}`
|
||||||
+ `${availableLineItemsFormattedForRequest}`;
|
+ `${availableLineItemsFormattedForRequest}`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue