Merge pull request #1437 from Safelite/feature/CSR-1395-fix-nan
Fixed the NaN issue that was introduced with Tax stuff
This commit is contained in:
commit
68d10906e8
1 changed files with 2 additions and 3 deletions
|
|
@ -2516,8 +2516,7 @@ function convertGlassPieceNamingFromApi(glassArray) {
|
|||
}
|
||||
|
||||
function addPricesToLineItems(lineItems, pricingLineItems) {
|
||||
const pricedLineItems = deepClone(lineItems);
|
||||
pricedLineItems.forEach((lineItem) => {
|
||||
lineItems.forEach((lineItem) => {
|
||||
let lineItemIndex = pricingLineItems.findIndex(
|
||||
(pricingLineItem) => pricingLineItem.partNumber === lineItem.partNumber
|
||||
);
|
||||
|
|
@ -2533,7 +2532,7 @@ function addPricesToLineItems(lineItems, pricingLineItems) {
|
|||
lineItem.salesTax = pricedLineItem.salesTax;
|
||||
});
|
||||
|
||||
return pricedLineItems;
|
||||
return lineItems;
|
||||
}
|
||||
|
||||
function addTaxesToPricedLineItems(lineItems, taxingLineItems) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue