henrybuilt-js-library
Advanced tools
Comparing version 1.8.315 to 1.8.316
{ | ||
"name": "henrybuilt-js-library", | ||
"version": "1.8.315", | ||
"version": "1.8.316", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -126,7 +126,6 @@ var libMaterials = require('@src/materials/materials'); | ||
var percentDiscountAsDecimal = _.round(discount.value / 100, 2); | ||
subtotals.discounts[index] = discountBasis.multiply(percentDiscountAsDecimal); | ||
percentageDiscountTotal = percentageDiscountTotal.add(discountBasis.multiply(percentDiscountAsDecimal)); | ||
discountBasis = discountBasis.subtract(discountBasis.multiply(percentDiscountAsDecimal)); | ||
console.log(percentDiscountAsDecimal, flatDiscountTotal.getAmount(), obfuscateShipping, subtotals.discounts[index].getAmount(), percentageDiscountTotal.getAmount(), discountBasis.getAmount()); | ||
} | ||
@@ -589,3 +588,3 @@ }); | ||
var revelationDate = Date.parse('12-02-2018'); | ||
var newDiscountsUsed = _.some(project.projectVersions, version => version.incentiveDiscountInDollars > 0); | ||
var newDiscountsUsed = _.some(project.projectVersions, version => version.incentiveDiscountInDollars > 0 || (version.discounts && version.discounts.length > 0)); | ||
@@ -592,0 +591,0 @@ var preShippingRevelation = effectivePricingDate < revelationDate && !newDiscountsUsed; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
886653
8619