Recycle Fee 0
This commit is contained in:
parent
d67fb0d1b2
commit
76c602ade7
1 changed files with 15 additions and 1 deletions
|
|
@ -666,13 +666,27 @@ export default {
|
|||
recycleFeeCartItemName() {
|
||||
return this.getCmsContent("RecycleFeeTextWidget", "Text");
|
||||
},
|
||||
requiresRecycleFeeCartItem() {
|
||||
return !this.isRepair;
|
||||
},
|
||||
recycleFeeCartItem() {
|
||||
let cartItem = null;
|
||||
|
||||
const recycleFeeLineItem = this.supportingItems.find(
|
||||
let recycleFeeLineItem = this.supportingItems.find(
|
||||
(supportingItem) => supportingItem.partType == partTypeStrings.REPLACE_FEE
|
||||
);
|
||||
|
||||
if (!recycleFeeLineItem && this.requiresRecycleFeeCartItem) {
|
||||
recycleFeeLineItem = {
|
||||
partNumber: partTypeStrings.REPLACE_FEE,
|
||||
partType: partTypeStrings.REPLACE_FEE,
|
||||
laborAmount: 0,
|
||||
kitPrice: 0,
|
||||
sellingPrice: 0,
|
||||
salesTax: 0,
|
||||
};
|
||||
}
|
||||
|
||||
if (recycleFeeLineItem) {
|
||||
cartItem = {
|
||||
name: this.recycleFeeCartItemName,
|
||||
|
|
|
|||
Loading…
Reference in a new issue