ordering-ui-external 14.1.75 → 14.1.76
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.
|
@@ -179,7 +179,7 @@ var CartUI = function CartUI(props) {
|
|
|
179
179
|
} else {
|
|
180
180
|
return cart === null || cart === void 0 ? void 0 : cart.taxes.reduce(function (taxIncluded, tax) {
|
|
181
181
|
var _tax$summary;
|
|
182
|
-
return taxIncluded + (!isDeliveryFee && tax.type === 1 && tax.target === 'product' || isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee' ? (_tax$summary = tax.summary) === null || _tax$summary === void 0 ? void 0 : _tax$summary.
|
|
182
|
+
return taxIncluded + (!isDeliveryFee && tax.type === 1 && tax.target === 'product' || isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee' ? (_tax$summary = tax.summary) === null || _tax$summary === void 0 ? void 0 : _tax$summary.tax_after_discount : 0);
|
|
183
183
|
}, 0);
|
|
184
184
|
}
|
|
185
185
|
};
|
package/package.json
CHANGED
|
@@ -141,7 +141,7 @@ const CartUI = (props) => {
|
|
|
141
141
|
return cart?.business.tax_type === 1 ? cart?.tax : 0
|
|
142
142
|
} else {
|
|
143
143
|
return cart?.taxes.reduce((taxIncluded, tax) => {
|
|
144
|
-
return taxIncluded + (((!isDeliveryFee && tax.type === 1 && tax.target === 'product') || (isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee')) ? tax.summary?.
|
|
144
|
+
return taxIncluded + (((!isDeliveryFee && tax.type === 1 && tax.target === 'product') || (isDeliveryFee && tax.type === 1 && tax.target === 'delivery_fee')) ? tax.summary?.tax_after_discount : 0)
|
|
145
145
|
}, 0)
|
|
146
146
|
}
|
|
147
147
|
}
|