@metron-labs/quote-react 0.1.18 → 0.1.19
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.
|
@@ -161,7 +161,15 @@ export default function BasketStage({ cart, onUpdateQty, onUpdateSellUnits, onRe
|
|
|
161
161
|
items: pricedItems.map(({ item, pricing }) => {
|
|
162
162
|
const quantity = pricing.requiredSellUnits ?? pricing.requestedAmount;
|
|
163
163
|
const unit = pricing.requiredSellUnits != null ? pricing.sellUnit : pricing.requestedUnit;
|
|
164
|
-
return {
|
|
164
|
+
return {
|
|
165
|
+
product_id: item.productId,
|
|
166
|
+
description: item.description,
|
|
167
|
+
quantity,
|
|
168
|
+
unit: unitDisplayText(unit, quantity),
|
|
169
|
+
// The price is per sale unit, so it only matches the quantity when that's in sale units.
|
|
170
|
+
unit_price: pricing.requiredSellUnits != null ? pricing.unitPrice : null,
|
|
171
|
+
line_total: pricing.lineTotal,
|
|
172
|
+
};
|
|
165
173
|
}),
|
|
166
174
|
}),
|
|
167
175
|
});
|