Fixing conflicts
This commit is contained in:
parent
26cfd3f404
commit
3424f7e514
4 changed files with 4 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ const cartItemCategories = {
|
||||||
GLASS_PARTS: "glassParts",
|
GLASS_PARTS: "glassParts",
|
||||||
SUPPORTING_ITEMS: "supportingItems",
|
SUPPORTING_ITEMS: "supportingItems",
|
||||||
PROMOS: "promos",
|
PROMOS: "promos",
|
||||||
|
SERVICE_PACKAGE_DISCOUNT: "servicePackageDiscount",
|
||||||
};
|
};
|
||||||
|
|
||||||
export { cartItemCategories };
|
export { cartItemCategories };
|
||||||
|
|
|
||||||
|
|
@ -272,7 +272,7 @@ export default {
|
||||||
|
|
||||||
getLineItemAmount(amount, useVerifyingText, category) {
|
getLineItemAmount(amount, useVerifyingText, category) {
|
||||||
if (useVerifyingText) return this.verifyingCoverageText;
|
if (useVerifyingText) return this.verifyingCoverageText;
|
||||||
return category == "promos"
|
return category == ("promos" && "servicePackageDiscount")
|
||||||
? "(" + this.currencyFormatter.format(amount * -1) + ")"
|
? "(" + this.currencyFormatter.format(amount * -1) + ")"
|
||||||
: this.currencyFormatter.format(amount);
|
: this.currencyFormatter.format(amount);
|
||||||
},
|
},
|
||||||
|
|
@ -799,7 +799,7 @@ export default {
|
||||||
Math.abs(
|
Math.abs(
|
||||||
baseMixin.methods.getTotalLineItemPrice(servicePackageDiscountLineItem)
|
baseMixin.methods.getTotalLineItemPrice(servicePackageDiscountLineItem)
|
||||||
),
|
),
|
||||||
category: cartItemCategories.SUPPORTING_ITEMS,
|
category: cartItemCategories.SERVICE_PACKAGE_DISCOUNT,
|
||||||
cartItemType: cartItemTypes.SERVICE_PACKAGE_DISCOUNT,
|
cartItemType: cartItemTypes.SERVICE_PACKAGE_DISCOUNT,
|
||||||
isDisplayed: true,
|
isDisplayed: true,
|
||||||
isRemovable: false,
|
isRemovable: false,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ import * as navigateToHeritage from "@/helpers/heritage-integration/navigation-h
|
||||||
import { nextTick } from "vue";
|
import { nextTick } from "vue";
|
||||||
import { experimentSettings } from "@/constants/experiments";
|
import { experimentSettings } from "@/constants/experiments";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import { support } from "jquery";
|
|
||||||
|
|
||||||
jest.mock("@/store", () => ({
|
jest.mock("@/store", () => ({
|
||||||
commit: jest.fn(),
|
commit: jest.fn(),
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ export default {
|
||||||
this.getServicePackageDiscountPartForSelectedPackage(newValue);
|
this.getServicePackageDiscountPartForSelectedPackage(newValue);
|
||||||
let supportingItems = this.supportingLineItems;
|
let supportingItems = this.supportingLineItems;
|
||||||
if (servicePackageDiscountPartInSelectedPackage?.length > 0) {
|
if (servicePackageDiscountPartInSelectedPackage?.length > 0) {
|
||||||
supportingItems.push(servicePackageDiscountPartInSelectedPackage[0]);
|
supportingItems?.push(servicePackageDiscountPartInSelectedPackage[0]);
|
||||||
} else {
|
} else {
|
||||||
if (
|
if (
|
||||||
supportingItems?.length > 0 &&
|
supportingItems?.length > 0 &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue