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.
@@ -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(quantity * price, {
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(quantity * price, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-admin-external",
3
- "version": "1.43.79",
3
+ "version": "1.43.80",
4
4
  "description": "Ordering UI Admin Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -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} ${parsePrice(quantity * price, { currency: getCurrenySymbol(order?.currency) })}` : `${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} ${parsePrice(quantity * price, { currency: currency })}` : `${name} ${pos}`
113
+ return price > 0 ? `${quantity} x ${name} ${pos} +${parsePrice(price, { currency })}` : `${name} ${pos}`
114
114
  } else {
115
115
  return 'No'
116
116
  }