@salesgenterp/ui-components 0.4.510 → 0.4.511
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.
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +20 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8528,9 +8528,17 @@ var CartDrawerProductCard = function CartDrawerProductCard(_ref) {
|
|
|
8528
8528
|
}, product === null || product === void 0 ? void 0 : product.productName)), /*#__PURE__*/React__default.createElement(CouponDiscountName, {
|
|
8529
8529
|
discountName: product === null || product === void 0 ? void 0 : product.couponCode,
|
|
8530
8530
|
discountAmount: product === null || product === void 0 ? void 0 : product.couponDiscount
|
|
8531
|
-
})), !doNotShowPrice && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("
|
|
8531
|
+
})), !doNotShowPrice && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
8532
|
+
style: {
|
|
8533
|
+
display: 'flex',
|
|
8534
|
+
fontSize: 12
|
|
8535
|
+
}
|
|
8536
|
+
}, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
8532
8537
|
totalAmount: product === null || product === void 0 ? void 0 : product.standardPrice,
|
|
8533
8538
|
discountAmount: product === null || product === void 0 ? void 0 : product.discountAmount
|
|
8539
|
+
}), "x", /*#__PURE__*/React__default.createElement("span", null, product === null || product === void 0 ? void 0 : product.quantity)), /*#__PURE__*/React__default.createElement("h6", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
8540
|
+
totalAmount: ((product === null || product === void 0 ? void 0 : product.standardPrice) - (product === null || product === void 0 ? void 0 : product.discountAmount)) * product.quantity,
|
|
8541
|
+
discountAmount: product === null || product === void 0 ? void 0 : product.couponDiscount
|
|
8534
8542
|
})))), /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
8535
8543
|
flexDirection: "column",
|
|
8536
8544
|
justifyContent: "space-between",
|
|
@@ -12827,15 +12835,22 @@ var Step4 = function Step4(_ref) {
|
|
|
12827
12835
|
color: styles === null || styles === void 0 ? void 0 : styles.bg
|
|
12828
12836
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
12829
12837
|
className: "price max"
|
|
12830
|
-
},
|
|
12838
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
12839
|
+
style: {
|
|
12840
|
+
display: 'flex'
|
|
12841
|
+
}
|
|
12842
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
12843
|
+
totalAmount: row === null || row === void 0 ? void 0 : row.standardPrice,
|
|
12844
|
+
discountAmount: row === null || row === void 0 ? void 0 : row.discountAmount
|
|
12845
|
+
})), /*#__PURE__*/React__default.createElement("span", {
|
|
12831
12846
|
className: "red primaryColor"
|
|
12832
|
-
}, ' ', "x ", row.quantity))), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
12847
|
+
}, ' ', "x ", row.quantity)))), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
12833
12848
|
align: "right"
|
|
12834
12849
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
12835
12850
|
className: "price max"
|
|
12836
12851
|
}, /*#__PURE__*/React__default.createElement(TotalAfterDiscount, {
|
|
12837
|
-
totalAmount: (row === null || row === void 0 ? void 0 : row.standardPrice) * row.quantity,
|
|
12838
|
-
discountAmount: 0
|
|
12852
|
+
totalAmount: ((row === null || row === void 0 ? void 0 : row.standardPrice) - (row === null || row === void 0 ? void 0 : row.discountAmount)) * row.quantity,
|
|
12853
|
+
discountAmount: row === null || row === void 0 ? void 0 : row.couponDiscount
|
|
12839
12854
|
})))));
|
|
12840
12855
|
}), doNotShowPrice ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
12841
12856
|
colSpan: 1,
|