@managesome/eposmatic-toolkit 0.2.214 → 0.2.215

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.
@@ -6,6 +6,7 @@ export interface IItemReportProps {
6
6
  categoriesChannel?: IItemReportChannelData[];
7
7
  itemsChannels?: IItemChannelMap[];
8
8
  modifiersChannel?: IReportChannelData[];
9
+ showRevenue?: boolean;
9
10
  count: number;
10
11
  itemAmount: number;
11
12
  itemGstAmount: number;
@@ -880,8 +880,9 @@ const getLegacyItemReportHead = ({ monochrome, width, zeroPadding }) => {
880
880
  <title>Item Sales Report</title>
881
881
  </head>`;
882
882
  };
883
- function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, isFilterApplied, monochrome, }) {
883
+ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, isFilterApplied, monochrome, showRevenue, }) {
884
884
  // ======================>>>><<<<=====================
885
+ const shouldShowRevenue = showRevenue ?? true;
885
886
  let itemSales = '';
886
887
  if (itemsChannels != null && itemsChannels.length > 0) {
887
888
  let categoryItems = '';
@@ -889,16 +890,24 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
889
890
  let items = '';
890
891
  for (const item of category.channel) {
891
892
  let subItems = '';
893
+ const dealCount = item.subChannels?.reduce((sum, subItem) => sum + (subItem.referenceId != null ? subItem.count : 0), 0) ?? 0;
894
+ const individualCount = Math.max(0, item.count - dealCount);
895
+ const hasDeal = dealCount > 0;
892
896
  for (const subItem of item.subChannels) {
897
+ const isReferenced = subItem.referenceId != null;
898
+ const nameStyle = isReferenced ? 'color:#9e9e9e;font-style:italic;' : '';
899
+ const dealBadge = isReferenced
900
+ ? '<span style="border:1px solid #f1c24a;color:#f1c24a;border-radius:10px;padding:2px 6px;margin-left:6px;font-size:12px;">Deal Item</span>'
901
+ : '';
893
902
  subItems += `<div class="css-1oxswqj-askk">
894
903
  <div class="css-1qfrzlclkjs" style="margin-left: ${subItem.level * 30}px;"></div>
895
904
  <div class="css-1x9oqjh-askk">
896
905
  <div class="css-95rbei-askk">
897
906
  <h6 class="css-1kyyrbe-jskk">${subItem.count}</h6>
898
- <p class="css-1jq5hv-jskk">${subItem.name}</p>
907
+ <p class="css-1jq5hv-jskk" style="${nameStyle}">${subItem.name}${dealBadge}</p>
899
908
  </div>
900
909
 
901
- ${subItem.grossAmount > 0
910
+ ${shouldShowRevenue && subItem.grossAmount > 0
902
911
  ? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, subItem.grossAmount)}</h6>`
903
912
  : ''}
904
913
  </div>
@@ -909,10 +918,16 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
909
918
  <div class="css-95rbei-askk">
910
919
  <h6 class="css-zfkluy-jskk">${item.count}</h6>
911
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>`
923
+ : ''}
912
924
  </div>
913
- ${item.grossAmount > 0
925
+ ${shouldShowRevenue && item.grossAmount > 0
914
926
  ? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, item.grossAmount)}</h6>`
915
927
  : ''}
928
+ ${shouldShowRevenue && hasDeal && item.grossAmount > 0
929
+ ? `<p class="css-1jq5hv-jskk" style="color:#777">Individual revenue</p>`
930
+ : ''}
916
931
  </div>
917
932
  ${subItems}
918
933
  </div>`;
@@ -922,7 +937,9 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
922
937
  <div class="css-1s8sakjsakl">
923
938
  <div class="css-58t1oz-askk">
924
939
  <h6 class="css-10h77yy-jskk">${category.count} ${category.category_name}</h6>
925
- <h6 class="css-1z023sex-jskk">Total: ${(0, common_1.localeAmount)(currency_symbol, category.grossAmount)}</h6>
940
+ ${shouldShowRevenue
941
+ ? `<h6 class="css-1z023sex-jskk">Total: ${(0, common_1.localeAmount)(currency_symbol, category.grossAmount)}</h6>`
942
+ : ''}
926
943
  </div>
927
944
  <div class="css-r1d07c-askk">
928
945
  ${items}
@@ -948,7 +965,7 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
948
965
  ${channel.name}
949
966
  </h6>
950
967
  </div>
951
- ${channel.grossAmount > 0
968
+ ${shouldShowRevenue && channel.grossAmount > 0
952
969
  ? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, channel.grossAmount)}</h6>`
953
970
  : ''}
954
971
  </div>
@@ -1007,10 +1024,12 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
1007
1024
 
1008
1025
  <div class="css-13qsmk5-askk">
1009
1026
  <div class="css-pl8gqh-askk">
1010
- <div class="css-1xljckjkls">
1027
+ ${shouldShowRevenue
1028
+ ? `<div class="css-1xljckjkls">
1011
1029
  <h5 class="css-1mt1wnh-jskk">Total Amount</h5>
1012
1030
  <h5 class="css-1ul5w1p-jskk">${(0, common_1.localeAmount)(currency_symbol, itemNetAmount)}</h5>
1013
- </div>
1031
+ </div>`
1032
+ : ''}
1014
1033
  <div class="css-1xljckjkls">
1015
1034
  <h5 class="css-1mt1wnh-jskk">Total Items Sold</h5>
1016
1035
  <h5 class="css-43utj0-jskk">${count}</h5>
@@ -2116,8 +2135,10 @@ const getNewItemReportHead = ({ zeroPadding, monochrome }) => {
2116
2135
  <title>Item Sales Report</title>
2117
2136
  </head>`;
2118
2137
  };
2119
- function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, itemAmount, itemDiscountAmount, itemGrossAmount, itemGstAmount, gstTitle, isFilterApplied, }) {
2138
+ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, itemAmount, itemDiscountAmount, itemGrossAmount, itemGstAmount, gstTitle, isFilterApplied, showRevenue, }) {
2120
2139
  // ======================>>>><<<<=====================
2140
+ const shouldShowRevenue = showRevenue ?? true;
2141
+ const itemTableColumns = shouldShowRevenue ? 7 : 1;
2121
2142
  let itemSales = '';
2122
2143
  if (itemsChannels != null && itemsChannels.length > 0) {
2123
2144
  let categoryItems = '';
@@ -2125,16 +2146,24 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2125
2146
  let items = '';
2126
2147
  for (const item of category.channel) {
2127
2148
  let subItems = '';
2149
+ const dealCount = item.subChannels?.reduce((sum, subItem) => sum + (subItem.referenceId != null ? subItem.count : 0), 0) ?? 0;
2150
+ const individualCount = Math.max(0, item.count - dealCount);
2151
+ const hasDeal = dealCount > 0;
2128
2152
  for (const subItem of item.subChannels) {
2153
+ const isReferenced = subItem.referenceId != null;
2154
+ const nameStyle = isReferenced ? 'color:#9e9e9e;font-style:italic;' : '';
2155
+ const dealBadge = isReferenced
2156
+ ? '<span style="border:1px solid #f1c24a;color:#f1c24a;border-radius:10px;padding:2px 6px;margin-left:6px;font-size:12px;">Deal Item</span>'
2157
+ : '';
2129
2158
  subItems += `<div class="css-5ax1kt">
2130
2159
  <div class="css-1qfrzlc" style="margin-left: ${subItem.level * 30}px"></div>
2131
2160
  <div class="css-199tt1z">
2132
2161
  <div class="css-lmzl00">
2133
2162
  <h6 class="css-1tjle8i">${subItem.count}</h6>
2134
- <p class="css-1qqbci">${subItem.name}</p>
2163
+ <p class="css-1qqbci" style="${nameStyle}">${subItem.name}${dealBadge}</p>
2135
2164
  </div>
2136
2165
 
2137
- ${subItem.grossAmount
2166
+ ${shouldShowRevenue && subItem.grossAmount
2138
2167
  ? `<h6 class="css-3jfma9" style="color: #000">${(0, common_1.localeAmount)(currency_symbol, subItem.grossAmount)}</h6>`
2139
2168
  : ''}
2140
2169
  </div>
@@ -2142,7 +2171,7 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2142
2171
  }
2143
2172
  if (subItems.length > 0) {
2144
2173
  subItems = `<tr class="css-1lm8qhw">
2145
- <td class="css-1cw6d7s" colspan="7">
2174
+ <td class="css-1cw6d7s" colspan="${itemTableColumns}">
2146
2175
  <div class="css-j7qwjs">
2147
2176
  ${subItems}
2148
2177
  </div>
@@ -2158,44 +2187,50 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2158
2187
  <h6 class="css-21997z">
2159
2188
  ${item.name}
2160
2189
  </h6>
2190
+ ${hasDeal
2191
+ ? `<p class="css-1qqbci" style="color:#777">Individual: ${individualCount} • Deal: ${dealCount}</p>`
2192
+ : ''}
2161
2193
  </div>
2162
2194
  </td>
2163
- <td class="css-5u79pd">
2164
- <h6 class="css-3jfma9">
2165
- ${(0, common_1.localeAmount)(currency_symbol, item.itemAmount)}
2166
- </h6>
2195
+ ${shouldShowRevenue
2196
+ ? `<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>` : ''}
2167
2201
  </td>
2168
2202
  <td class="css-5u79pd">
2169
- <h6 class="css-3jfma9">
2170
- ${(0, common_1.localeAmount)(currency_symbol, item.itemGstAmount)}
2171
- </h6>
2203
+ <h6 class="css-3jfma9">
2204
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemGstAmount)}
2205
+ </h6>
2172
2206
  </td>
2173
2207
  <td class="css-5u79pd">
2174
- <h6 class="css-3jfma9">
2175
- ${(0, common_1.localeAmount)(currency_symbol, item.itemGrossAmount)}
2176
- </h6>
2208
+ <h6 class="css-3jfma9">
2209
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemGrossAmount)}
2210
+ </h6>
2177
2211
  </td>
2178
2212
  <td class="css-5u79pd">
2179
- <h6 class="css-3jfma9">
2180
- ${(0, common_1.localeAmount)(currency_symbol, item.itemDiscountAmount)}
2181
- </h6>
2213
+ <h6 class="css-3jfma9">
2214
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemDiscountAmount)}
2215
+ </h6>
2182
2216
  </td>
2183
2217
  <td class="css-5u79pd">
2184
- <h6 class="css-3jfma9">
2185
- ${(0, common_1.localeAmount)(currency_symbol, item.itemNetAmount)}
2186
- </h6>
2218
+ <h6 class="css-3jfma9">
2219
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemNetAmount)}
2220
+ </h6>
2187
2221
  </td>
2188
2222
  <td class="css-5u79pd">
2189
- <h6 class="css-3jfma9">
2190
- ${(0, common_1.localeAmount)(currency_symbol, item.itemNetAmount / (item.count || 1))}
2191
- </h6>
2192
- </td>
2223
+ <h6 class="css-3jfma9">
2224
+ ${(0, common_1.localeAmount)(currency_symbol, item.itemNetAmount / (item.count || 1))}
2225
+ </h6>
2226
+ </td>`
2227
+ : ''}
2193
2228
  </tr>
2194
2229
  ${subItems}
2195
2230
  `;
2196
2231
  }
2197
2232
  categoryItems += `<tr class="css-14kha3k">
2198
- <td class="css-1m25ajq" colspan="7">
2233
+ <td class="css-1m25ajq" colspan="${itemTableColumns}">
2199
2234
  <h5 class="css-kqeuuk">${category.category_name}</h5>
2200
2235
  </td>
2201
2236
  ${items}
@@ -2211,36 +2246,38 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2211
2246
  </h6>
2212
2247
  </div>
2213
2248
  </td>
2214
- <td class="css-nz0srj">
2215
- <h6 class="css-10h77yy">
2216
- ${(0, common_1.localeAmount)(currency_symbol, category.itemAmount)}
2217
- </h6>
2218
- </td>
2219
- <td class="css-nz0srj">
2220
- <h6 class="css-10h77yy">
2221
- ${(0, common_1.localeAmount)(currency_symbol, category.itemGstAmount)}
2222
- </h6>
2223
- </td>
2224
- <td class="css-nz0srj">
2225
- <h6 class="css-10h77yy">
2226
- ${(0, common_1.localeAmount)(currency_symbol, category.itemGrossAmount)}
2227
- </h6>
2228
- </td>
2229
- <td class="css-nz0srj">
2230
- <h6 class="css-10h77yy">
2231
- ${(0, common_1.localeAmount)(currency_symbol, category.itemDiscountAmount)}
2232
- </h6>
2233
- </td>
2234
- <td class="css-nz0srj">
2235
- <h6 class="css-10h77yy">
2236
- ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount)}
2237
- </h6>
2238
- </td>
2239
- <td class="css-nz0srj">
2240
- <h6 class="css-10h77yy">
2241
- ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount / category.count)}
2242
- </h6>
2243
- </td>
2249
+ ${shouldShowRevenue
2250
+ ? `<td class="css-nz0srj">
2251
+ <h6 class="css-10h77yy">
2252
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemAmount)}
2253
+ </h6>
2254
+ </td>
2255
+ <td class="css-nz0srj">
2256
+ <h6 class="css-10h77yy">
2257
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemGstAmount)}
2258
+ </h6>
2259
+ </td>
2260
+ <td class="css-nz0srj">
2261
+ <h6 class="css-10h77yy">
2262
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemGrossAmount)}
2263
+ </h6>
2264
+ </td>
2265
+ <td class="css-nz0srj">
2266
+ <h6 class="css-10h77yy">
2267
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemDiscountAmount)}
2268
+ </h6>
2269
+ </td>
2270
+ <td class="css-nz0srj">
2271
+ <h6 class="css-10h77yy">
2272
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount)}
2273
+ </h6>
2274
+ </td>
2275
+ <td class="css-nz0srj">
2276
+ <h6 class="css-10h77yy">
2277
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount / category.count)}
2278
+ </h6>
2279
+ </td>`
2280
+ : ''}
2244
2281
  </tr>`;
2245
2282
  }
2246
2283
  itemSales = `<div class="css-1s8sakjsakl">
@@ -2256,24 +2293,26 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2256
2293
  <th class="css-1c5674j" scope="col">
2257
2294
  <h6 class="css-olpyhf">Item</h6>
2258
2295
  </th>
2259
- <th class="css-gcb0n5" scope="col">
2260
- <h6 class="css-olpyhf">Amount</h6>
2296
+ ${shouldShowRevenue
2297
+ ? `<th class="css-gcb0n5" scope="col">
2298
+ <h6 class="css-olpyhf">Amount</h6>
2261
2299
  </th>
2262
2300
  <th class="css-gcb0n5" scope="col">
2263
- <h6 class="css-olpyhf">${gstTitle}</h6>
2301
+ <h6 class="css-olpyhf">${gstTitle}</h6>
2264
2302
  </th>
2265
2303
  <th class="css-gcb0n5" scope="col">
2266
- <h6 class="css-olpyhf">Gross Sale</h6>
2304
+ <h6 class="css-olpyhf">Gross Sale</h6>
2267
2305
  </th>
2268
2306
  <th class="css-gcb0n5" scope="col">
2269
- <h6 class="css-olpyhf">Discount</h6>
2307
+ <h6 class="css-olpyhf">Discount</h6>
2270
2308
  </th>
2271
2309
  <th class="css-gcb0n5" scope="col">
2272
- <h6 class="css-olpyhf">Net Sale</h6>
2310
+ <h6 class="css-olpyhf">Net Sale</h6>
2273
2311
  </th>
2274
2312
  <th class="css-gcb0n5" scope="col">
2275
- <h6 class="css-olpyhf">Av. Rate</h6>
2276
- </th>
2313
+ <h6 class="css-olpyhf">Av. Rate</h6>
2314
+ </th>`
2315
+ : ''}
2277
2316
  </tr>
2278
2317
  </thead>
2279
2318
 
@@ -2299,36 +2338,38 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2299
2338
  </h6>
2300
2339
  </div>
2301
2340
  </td>
2302
- <td class="css-5u79pd">
2303
- <h6 class="css-3jfma9">
2304
- ${(0, common_1.localeAmount)(currency_symbol, category.itemAmount)}
2305
- </h6>
2341
+ ${shouldShowRevenue
2342
+ ? `<td class="css-5u79pd">
2343
+ <h6 class="css-3jfma9">
2344
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemAmount)}
2345
+ </h6>
2306
2346
  </td>
2307
2347
  <td class="css-5u79pd">
2308
- <h6 class="css-3jfma9">
2309
- ${(0, common_1.localeAmount)(currency_symbol, category.itemGstAmount)}
2310
- </h6>
2348
+ <h6 class="css-3jfma9">
2349
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemGstAmount)}
2350
+ </h6>
2311
2351
  </td>
2312
2352
  <td class="css-5u79pd">
2313
- <h6 class="css-3jfma9">
2314
- ${(0, common_1.localeAmount)(currency_symbol, category.itemGrossAmount)}
2315
- </h6>
2353
+ <h6 class="css-3jfma9">
2354
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemGrossAmount)}
2355
+ </h6>
2316
2356
  </td>
2317
2357
  <td class="css-5u79pd">
2318
- <h6 class="css-3jfma9">
2319
- ${(0, common_1.localeAmount)(currency_symbol, category.itemDiscountAmount)}
2320
- </h6>
2358
+ <h6 class="css-3jfma9">
2359
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemDiscountAmount)}
2360
+ </h6>
2321
2361
  </td>
2322
2362
  <td class="css-5u79pd">
2323
- <h6 class="css-3jfma9">
2324
- ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount)}
2325
- </h6>
2363
+ <h6 class="css-3jfma9">
2364
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount)}
2365
+ </h6>
2326
2366
  </td>
2327
2367
  <td class="css-5u79pd">
2328
- <h6 class="css-3jfma9">
2329
- ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount / category.count)}
2330
- </h6>
2331
- </td>
2368
+ <h6 class="css-3jfma9">
2369
+ ${(0, common_1.localeAmount)(currency_symbol, category.itemNetAmount / category.count)}
2370
+ </h6>
2371
+ </td>`
2372
+ : ''}
2332
2373
  </tr>
2333
2374
  `;
2334
2375
  }
@@ -2344,24 +2385,26 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2344
2385
  <th class="css-1c5674j" scope="col">
2345
2386
  <h6 class="css-olpyhf">Category</h6>
2346
2387
  </th>
2347
- <th class="css-gcb0n5" scope="col">
2388
+ ${shouldShowRevenue
2389
+ ? `<th class="css-gcb0n5" scope="col">
2348
2390
  <h6 class="css-olpyhf">Amount</h6>
2349
- </th>
2350
- <th class="css-gcb0n5" scope="col">
2391
+ </th>
2392
+ <th class="css-gcb0n5" scope="col">
2351
2393
  <h6 class="css-olpyhf">${gstTitle}</h6>
2352
- </th>
2353
- <th class="css-gcb0n5" scope="col">
2394
+ </th>
2395
+ <th class="css-gcb0n5" scope="col">
2354
2396
  <h6 class="css-olpyhf">Gross Sale</h6>
2355
- </th>
2356
- <th class="css-gcb0n5" scope="col">
2397
+ </th>
2398
+ <th class="css-gcb0n5" scope="col">
2357
2399
  <h6 class="css-olpyhf">Discount</h6>
2358
- </th>
2359
- <th class="css-gcb0n5" scope="col">
2400
+ </th>
2401
+ <th class="css-gcb0n5" scope="col">
2360
2402
  <h6 class="css-olpyhf">Net Sale</h6>
2361
- </th>
2362
- <th class="css-gcb0n5" scope="col">
2403
+ </th>
2404
+ <th class="css-gcb0n5" scope="col">
2363
2405
  <h6 class="css-olpyhf">Av. Rate</h6>
2364
- </th>
2406
+ </th>`
2407
+ : ''}
2365
2408
  </tr>
2366
2409
  </thead>
2367
2410
 
@@ -2387,7 +2430,7 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2387
2430
  ${channel.name}
2388
2431
  </h6>
2389
2432
  </div>
2390
- ${channel.grossAmount > 0
2433
+ ${shouldShowRevenue && channel.grossAmount > 0
2391
2434
  ? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, channel.grossAmount)}</h6>`
2392
2435
  : ''}
2393
2436
  </div>
@@ -2437,7 +2480,8 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2437
2480
  <h5 class="css-1b6n5fl">Total Items Sold</h5>
2438
2481
  <h5 class="css-1tuemaa">${count}</h5>
2439
2482
  </div>
2440
- <div class="grid-item">
2483
+ ${shouldShowRevenue
2484
+ ? `<div class="grid-item">
2441
2485
  <h5 class="css-1b6n5fl">Amount</h5>
2442
2486
  <h5 class="css-lh0dz3">
2443
2487
  ${(0, common_1.localeAmount)(currency_symbol, itemAmount)}
@@ -2468,7 +2512,8 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
2468
2512
  <h5 class="css-lh0dz3">
2469
2513
  ${(0, common_1.localeAmount)(currency_symbol, itemNetAmount)}
2470
2514
  </h5>
2471
- </div>
2515
+ </div>`
2516
+ : ''}
2472
2517
  </div>
2473
2518
 
2474
2519
  ${itemSales}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.214",
3
+ "version": "0.2.215",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",