henrybuilt-js-library
Advanced tools
Comparing version 1.5.4 to 1.5.5
{ | ||
"name": "henrybuilt-js-library", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -262,3 +262,3 @@ var libMaterials = require('@src/materials/materials'); | ||
//< materials | ||
if (!product.dnf) { /* istanbul ignore else */ | ||
if (!product.doNotFactor) { /* istanbul ignore else */ | ||
var materialsData = libMaterials.dataFor({productInstance, products, materialClasses, companyKey: project.companyKey}); | ||
@@ -265,0 +265,0 @@ |
@@ -58,7 +58,7 @@ describe('lib.price', () => { | ||
var products = [ | ||
{id: 1, pricingRuleId: 1, dnf: 1, categoryId: 37}, | ||
{id: 2, pricingRuleId: 1, dnf: 1, categoryId: 2}, | ||
{id: 3, pricingRuleId: 2, dnf: 1, categoryId: 2}, | ||
{id: 4, pricingRuleId: 3, dnf: 1, categoryId: 2}, | ||
{id: 5, pricingRuleId: 1, dnf: 0, categoryId: 2, | ||
{id: 1, pricingRuleId: 1, doNotFactor: 1, categoryId: 37}, | ||
{id: 2, pricingRuleId: 1, doNotFactor: 1, categoryId: 2}, | ||
{id: 3, pricingRuleId: 2, doNotFactor: 1, categoryId: 2}, | ||
{id: 4, pricingRuleId: 3, doNotFactor: 1, categoryId: 2}, | ||
{id: 5, pricingRuleId: 1, doNotFactor: 0, categoryId: 2, | ||
hbMaterialAssociations: { | ||
@@ -69,3 +69,3 @@ box: {title: "Box", materialClassId: 1}, | ||
}, | ||
{id: 1, pricingRuleId: 1, dnf: 1, categoryId: 13}, | ||
{id: 1, pricingRuleId: 1, doNotFactor: 1, categoryId: 13}, | ||
]; | ||
@@ -72,0 +72,0 @@ |
Sorry, the diff of this file is too big to display
608570