ordering-ui-admin-external 1.43.79 → 1.43.80
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/_bundles/{ordering-ui-admin.ac7e9c8da7475dbf70d1.js → ordering-ui-admin.66c260b986b4dc7f9f25.js} +2 -2
- package/_modules/components/Orders/OrderToPrint/index.js +1 -1
- package/_modules/components/Orders/ProductItemAccordion/index.js +1 -1
- package/package.json +1 -1
- package/src/components/Orders/OrderToPrint/index.js +1 -1
- package/src/components/Orders/ProductItemAccordion/index.js +1 -1
- /package/_bundles/{ordering-ui-admin.ac7e9c8da7475dbf70d1.js.LICENSE.txt → ordering-ui-admin.66c260b986b4dc7f9f25.js.LICENSE.txt} +0 -0
|
@@ -82,7 +82,7 @@ var OrderToPrint = exports.OrderToPrint = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
82
82
|
price = _ref.price;
|
|
83
83
|
if (name !== 'No') {
|
|
84
84
|
var pos = position ? "(".concat(position, ")") : '';
|
|
85
|
-
return price > 0 ? "".concat(name, " ").concat(pos, " ").concat(parsePrice(
|
|
85
|
+
return price > 0 ? "".concat(quantity, " x ").concat(name, " ").concat(pos, " +").concat(parsePrice(price, {
|
|
86
86
|
currency: (0, _utils.getCurrenySymbol)(order === null || order === void 0 ? void 0 : order.currency)
|
|
87
87
|
})) : "".concat(name, " ").concat(pos);
|
|
88
88
|
} else {
|
|
@@ -143,7 +143,7 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
|
|
|
143
143
|
price = _ref9.price;
|
|
144
144
|
if (name !== 'No') {
|
|
145
145
|
var pos = position ? "(".concat(position, ")") : '';
|
|
146
|
-
return price > 0 ? "".concat(name, " ").concat(pos, " ").concat(parsePrice(
|
|
146
|
+
return price > 0 ? "".concat(quantity, " x ").concat(name, " ").concat(pos, " +").concat(parsePrice(price, {
|
|
147
147
|
currency: currency
|
|
148
148
|
})) : "".concat(name, " ").concat(pos);
|
|
149
149
|
} else {
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ export const OrderToPrint = forwardRef((props, ref) => {
|
|
|
82
82
|
const getFormattedSubOptionName = ({ quantity, name, position, price }) => {
|
|
83
83
|
if (name !== 'No') {
|
|
84
84
|
const pos = position ? `(${position})` : ''
|
|
85
|
-
return price > 0 ? `${name} ${pos}
|
|
85
|
+
return price > 0 ? `${quantity} x ${name} ${pos} +${parsePrice(price, { currency: getCurrenySymbol(order?.currency) })}` : `${name} ${pos}`
|
|
86
86
|
} else {
|
|
87
87
|
return 'No'
|
|
88
88
|
}
|
|
@@ -110,7 +110,7 @@ export const ProductItemAccordion = (props) => {
|
|
|
110
110
|
const getFormattedSubOptionName = ({ quantity, name, position, price }) => {
|
|
111
111
|
if (name !== 'No') {
|
|
112
112
|
const pos = position ? `(${position})` : ''
|
|
113
|
-
return price > 0 ? `${name} ${pos}
|
|
113
|
+
return price > 0 ? `${quantity} x ${name} ${pos} +${parsePrice(price, { currency })}` : `${name} ${pos}`
|
|
114
114
|
} else {
|
|
115
115
|
return 'No'
|
|
116
116
|
}
|