@managesome/eposmatic-toolkit 0.2.215 → 0.2.217

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.
@@ -917,16 +917,20 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
917
917
  <div class="css-1aua8yd-askk">
918
918
  <div class="css-95rbei-askk">
919
919
  <h6 class="css-zfkluy-jskk">${item.count}</h6>
920
- <h6 class="css-21997j-jskk">${item.name}</h6>
921
- ${hasDeal
922
- ? `<p class="css-1jq5hv-jskk" style="color:#777">Individual: ${individualCount} • Deal: ${dealCount}</p>`
920
+ <div style="display:flex;flex-direction:column;">
921
+ <h6 class="css-21997j-jskk">${item.name}</h6>
922
+ ${hasDeal
923
+ ? `<p class="css-1jq5hv-jskk" style="color:#777;font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual: ${individualCount} • Deal: ${dealCount}</p>`
923
924
  : ''}
925
+ </div>
924
926
  </div>
925
927
  ${shouldShowRevenue && item.grossAmount > 0
926
- ? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, item.grossAmount)}</h6>`
927
- : ''}
928
- ${shouldShowRevenue && hasDeal && item.grossAmount > 0
929
- ? `<p class="css-1jq5hv-jskk" style="color:#777">Individual revenue</p>`
928
+ ? `<div style="display:flex;flex-direction:column;align-items:flex-end;">
929
+ <h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, item.grossAmount)}</h6>
930
+ ${shouldShowRevenue && hasDeal && item.grossAmount > 0
931
+ ? `<p class="css-1jq5hv-jskk" style="color:#777;font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual revenue</p>`
932
+ : ''}
933
+ </div>`
930
934
  : ''}
931
935
  </div>
932
936
  ${subItems}
@@ -2184,20 +2188,24 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2184
2188
  <h6 class="css-zfkluz">
2185
2189
  ${item.count}
2186
2190
  </h6>
2187
- <h6 class="css-21997z">
2188
- ${item.name}
2189
- </h6>
2190
- ${hasDeal
2191
- ? `<p class="css-1qqbci" style="color:#777">Individual: ${individualCount} • Deal: ${dealCount}</p>`
2191
+ <div style="display:flex;flex-direction:column;">
2192
+ <h6 class="css-21997z">
2193
+ ${item.name}
2194
+ </h6>
2195
+ ${hasDeal
2196
+ ? `<p class="css-1qqbci" style="color:#777;font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual: ${individualCount} • Deal: ${dealCount}</p>`
2192
2197
  : ''}
2198
+ </div>
2193
2199
  </div>
2194
2200
  </td>
2195
2201
  ${shouldShowRevenue
2196
2202
  ? `<td class="css-5u79pd">
2197
- <h6 class="css-3jfma9">
2198
- ${(0, common_1.localeAmount)(currency_symbol, item.itemAmount)}
2199
- </h6>
2200
- ${hasDeal && item.itemAmount ? `<p class="css-1qqbci" style="color:#777">Individual revenue</p>` : ''}
2203
+ <div style="display:flex;flex-direction:column;align-items:flex-end;">
2204
+ <h6 class="css-3jfma9">
2205
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemAmount)}
2206
+ </h6>
2207
+ ${hasDeal && item.itemAmount ? `<p class="css-1qqbci" style="color:#777;font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual revenue</p>` : ''}
2208
+ </div>
2201
2209
  </td>
2202
2210
  <td class="css-5u79pd">
2203
2211
  <h6 class="css-3jfma9">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.215",
3
+ "version": "0.2.217",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",