CASH-152: remove commented out code
This commit is contained in:
parent
78b43fee69
commit
0f7904fb52
1 changed files with 0 additions and 84 deletions
|
|
@ -254,90 +254,6 @@ export function getDiscountedPackageName(discountPackage) {
|
|||
return package_names[discountPackage] || null;
|
||||
}
|
||||
|
||||
// export function getDiscountedPackagePriceString2(packageName, servicePackageDiscount) {
|
||||
// const formattedPriceFloat = parseFloat(
|
||||
// this.getPackagePrice(packageName, {
|
||||
// discountedPrice: true,
|
||||
// servicePackageDiscount,
|
||||
// })
|
||||
// ).toFixed(2);
|
||||
|
||||
// return "$" + formattedPriceFloat;
|
||||
// }
|
||||
|
||||
// export function getPackagePrice(
|
||||
// packageName,
|
||||
// { discountedPrice = false, servicePackageDiscount = false }
|
||||
// ) {
|
||||
// let lineItemsToPrice = [...this.shallowLineItems];
|
||||
|
||||
// if (this.isRecalibrationOnOrder && this.shouldHideRecalibration) {
|
||||
// lineItemsToPrice = getItemsWithoutRecalParts(lineItemsToPrice);
|
||||
// }
|
||||
|
||||
// //remove service package discount part
|
||||
// if (this.isServicePackageDiscountOnOrder) {
|
||||
// lineItemsToPrice = lineItemsToPrice.filter((item) => {
|
||||
// return item.partType != this.servicePackageDiscountParts[0].partType;
|
||||
// });
|
||||
// }
|
||||
|
||||
// if (discountedPrice) {
|
||||
// lineItemsToPrice.push(...removeVapsPromosFromPromoArray(this.activePromos));
|
||||
// }
|
||||
|
||||
// if (servicePackageDiscount) {
|
||||
// lineItemsToPrice.push(...this.servicePackageDiscountParts);
|
||||
// }
|
||||
// let priceFloat = baseMixin.methods.getTierOnePackagePrice(
|
||||
// baseMixin.methods.filterOutFees(lineItemsToPrice)
|
||||
// );
|
||||
|
||||
// priceFloat += this.getVapsPrice(packageName, discountedPrice);
|
||||
|
||||
// // console.log("SPHelper getPackagePrice()... priceFloat: ", priceFloat)
|
||||
// // console.log(" ")
|
||||
|
||||
// return priceFloat;
|
||||
// }
|
||||
|
||||
// export function getVapsPrice(packageName, applyPromoDiscounts = false) {
|
||||
// const vapsItems = this.getVapsLineItemsForSelectedPackage(packageName);
|
||||
// let price = 0;
|
||||
|
||||
// vapsItems.forEach((item) => {
|
||||
// price += baseMixin.methods.getTotalLineItemPrice(item);
|
||||
// });
|
||||
|
||||
// if (applyPromoDiscounts && this.activePromos) {
|
||||
// const relevantPromos = getPromosThatMatchLineItemsOnOrder(this.lineItems.promos, vapsItems);
|
||||
// relevantPromos.forEach((promo) => {
|
||||
// price += baseMixin.methods.getTotalLineItemPrice(promo);
|
||||
// });
|
||||
// }
|
||||
|
||||
// return price;
|
||||
// }
|
||||
|
||||
// export function getVapsLineItemsForSelectedPackage(packageName) {
|
||||
// const packageContentTypes = getPackageContents(
|
||||
// this.glassToReplace,
|
||||
// this.shallowLineItems,
|
||||
// this.isRepair,
|
||||
// packageName
|
||||
// );
|
||||
|
||||
// let vapsLineItemsForSelectedPackage = [];
|
||||
|
||||
// packageContentTypes.forEach((vapType) => {
|
||||
// vapsLineItemsForSelectedPackage.push(
|
||||
// ...findLineItemsWithPartType(vapType, this.shallowLineItems)
|
||||
// );
|
||||
// });
|
||||
|
||||
// return vapsLineItemsForSelectedPackage;
|
||||
// }
|
||||
|
||||
function maxTier(tierA, tierB) {
|
||||
if (tierA === packageNames.TIER_THREE || tierB === packageNames.TIER_THREE) {
|
||||
return packageNames.TIER_THREE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue