@lancom/shared 0.0.445 → 0.0.446
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.
|
@@ -175,7 +175,8 @@ export default {
|
|
|
175
175
|
usedSimpleProducts = usedSimpleProducts.filter(c => c.size._id === this.value?.size?._id);
|
|
176
176
|
}
|
|
177
177
|
const simpleProduct = usedSimpleProducts[0] || this.usedSimpleProducts[0] || this.defaultSimpleProduct;
|
|
178
|
-
|
|
178
|
+
const amount = this.value?.quantity || simpleProduct.amount || 1;
|
|
179
|
+
usedSimpleProducts = simpleProduct ? [{ ...simpleProduct, amount }] : [];
|
|
179
180
|
}
|
|
180
181
|
const entities = getProductsForCalculatePricing(this.product, usedSimpleProducts);
|
|
181
182
|
const payload = {
|