Removed console logs
This commit is contained in:
parent
d9cf3da2a5
commit
9783c582eb
2 changed files with 4 additions and 5 deletions
|
|
@ -255,7 +255,7 @@ export default {
|
||||||
this.availableVaps,
|
this.availableVaps,
|
||||||
"payment-method"
|
"payment-method"
|
||||||
);
|
);
|
||||||
console.log(promoCodeData);
|
|
||||||
if (promoCodeData.isValid) {
|
if (promoCodeData.isValid) {
|
||||||
const pricedLineItemsToTax = [];
|
const pricedLineItemsToTax = [];
|
||||||
pricedLineItemsToTax.push(...promoCodeData.promoCode);
|
pricedLineItemsToTax.push(...promoCodeData.promoCode);
|
||||||
|
|
@ -277,13 +277,12 @@ export default {
|
||||||
|
|
||||||
// Match all line items to the line items as they are in the store
|
// Match all line items to the line items as they are in the store
|
||||||
// and rebuild the original structure.
|
// and rebuild the original structure.
|
||||||
console.log(this.lineItems.vaps);
|
|
||||||
this.lineItems = mapTaxedLineItemsToStoreFormat(taxedLineItems, this.lineItems);
|
this.lineItems = mapTaxedLineItemsToStoreFormat(taxedLineItems, this.lineItems);
|
||||||
const taxedVaps = mapTaxedLineItemsToStoreFormat(
|
const taxedVaps = mapTaxedLineItemsToStoreFormat(
|
||||||
taxedLineItems,
|
taxedLineItems,
|
||||||
this.availableVaps
|
this.availableVaps
|
||||||
);
|
);
|
||||||
console.log(this.lineItems.vaps);
|
|
||||||
const getVaps = getVapsThatNeedToBeAddedToSatisfyPromos(
|
const getVaps = getVapsThatNeedToBeAddedToSatisfyPromos(
|
||||||
promoCodeData.promoCode,
|
promoCodeData.promoCode,
|
||||||
taxedVaps,
|
taxedVaps,
|
||||||
|
|
|
||||||
|
|
@ -2641,7 +2641,7 @@ function convertGlassPieceNamingFromApi(glassArray) {
|
||||||
|
|
||||||
function addPricesToLineItems(lineItems, pricingLineItems) {
|
function addPricesToLineItems(lineItems, pricingLineItems) {
|
||||||
lineItems.forEach((lineItem) => {
|
lineItems.forEach((lineItem) => {
|
||||||
let lineItemIndex = pricingLineItems.findIndex(
|
const lineItemIndex = pricingLineItems.findIndex(
|
||||||
(pricingLineItem) => pricingLineItem.partNumber === lineItem.partNumber
|
(pricingLineItem) => pricingLineItem.partNumber === lineItem.partNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -2649,7 +2649,7 @@ function addPricesToLineItems(lineItems, pricingLineItems) {
|
||||||
addPricesToLineItems(lineItem.childParts, pricingLineItems);
|
addPricesToLineItems(lineItem.childParts, pricingLineItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
let pricedLineItem = pricingLineItems.splice(lineItemIndex, 1)[0];
|
const pricedLineItem = pricingLineItems.splice(lineItemIndex, 1)[0];
|
||||||
lineItem.laborAmount = pricedLineItem.laborAmount;
|
lineItem.laborAmount = pricedLineItem.laborAmount;
|
||||||
lineItem.sellingPrice = pricedLineItem.sellingPrice;
|
lineItem.sellingPrice = pricedLineItem.sellingPrice;
|
||||||
lineItem.kitPrice = pricedLineItem.kitPrice;
|
lineItem.kitPrice = pricedLineItem.kitPrice;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue