shareneus 1.7.329 → 1.7.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -80,8 +80,10 @@ function GetItemPriceForPriceList(item, priceList, includeMargin = false, quanti
|
|
|
80
80
|
if (includeMargin && (0, util_1.IsNotNull)(element.Cost)) {
|
|
81
81
|
element.Margin = (0, math_operations_1.GetMarginValue)(element.Price, element.Cost);
|
|
82
82
|
}
|
|
83
|
+
console.log('element', element);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
86
|
+
console.log('item after price list application', item);
|
|
85
87
|
return item;
|
|
86
88
|
}
|
|
87
89
|
return CalculatePriceBasedOnPriceList(item, priceList, includeMargin, resolvedQty);
|
|
@@ -168,6 +170,7 @@ function CalculatePriceBasedOnPriceList(item, priceList, includeMargin, quantity
|
|
|
168
170
|
if (includeMargin && (0, util_1.IsNotNull)(batch.Cost)) {
|
|
169
171
|
batch.Margin = (0, math_operations_1.GetMarginValue)(batch.Price, batch.Cost);
|
|
170
172
|
}
|
|
173
|
+
console.log('element batch', batch);
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
176
|
}
|
|
@@ -215,6 +218,7 @@ function CalculatePriceBasedOnPriceList(item, priceList, includeMargin, quantity
|
|
|
215
218
|
}
|
|
216
219
|
}
|
|
217
220
|
}
|
|
221
|
+
console.log('item after price list application', item);
|
|
218
222
|
return item;
|
|
219
223
|
}
|
|
220
224
|
function ApplyRounding(price, priceList) {
|
package/package.json
CHANGED
|
@@ -91,9 +91,10 @@ export function GetItemPriceForPriceList(
|
|
|
91
91
|
if (includeMargin && IsNotNull(element.Cost)) {
|
|
92
92
|
element.Margin = GetMarginValue(element.Price, element.Cost);
|
|
93
93
|
}
|
|
94
|
+
console.log('element', element);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
|
|
97
|
+
console.log('item after price list application', item);
|
|
97
98
|
return item;
|
|
98
99
|
}
|
|
99
100
|
|
|
@@ -201,6 +202,7 @@ function CalculatePriceBasedOnPriceList(
|
|
|
201
202
|
if (includeMargin && IsNotNull(batch.Cost)) {
|
|
202
203
|
batch.Margin = GetMarginValue(batch.Price, batch.Cost);
|
|
203
204
|
}
|
|
205
|
+
console.log('element batch', batch);
|
|
204
206
|
}
|
|
205
207
|
}
|
|
206
208
|
}
|
|
@@ -249,7 +251,7 @@ function CalculatePriceBasedOnPriceList(
|
|
|
249
251
|
}
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
|
-
|
|
254
|
+
console.log('item after price list application', item);
|
|
253
255
|
return item;
|
|
254
256
|
}
|
|
255
257
|
|