@managesome/eposmatic-toolkit 0.2.214 → 0.2.216
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.
|
@@ -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;font-size:12px;line-height:14px;">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;font-size:12px;line-height:14px;">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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;font-size:12px;line-height:14px;">Individual: ${individualCount} • Deal: ${dealCount}</p>`
|
|
2192
|
+
: ''}
|
|
2161
2193
|
</div>
|
|
2162
2194
|
</td>
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
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;font-size:12px;line-height:14px;">Individual revenue</p>` : ''}
|
|
2167
2201
|
</td>
|
|
2168
2202
|
<td class="css-5u79pd">
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
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
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
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
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
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
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
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
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
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="
|
|
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
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
</
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
</
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
</
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
</
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
</
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
</
|
|
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
|
-
|
|
2260
|
-
|
|
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
|
-
|
|
2301
|
+
<h6 class="css-olpyhf">${gstTitle}</h6>
|
|
2264
2302
|
</th>
|
|
2265
2303
|
<th class="css-gcb0n5" scope="col">
|
|
2266
|
-
|
|
2304
|
+
<h6 class="css-olpyhf">Gross Sale</h6>
|
|
2267
2305
|
</th>
|
|
2268
2306
|
<th class="css-gcb0n5" scope="col">
|
|
2269
|
-
|
|
2307
|
+
<h6 class="css-olpyhf">Discount</h6>
|
|
2270
2308
|
</th>
|
|
2271
2309
|
<th class="css-gcb0n5" scope="col">
|
|
2272
|
-
|
|
2310
|
+
<h6 class="css-olpyhf">Net Sale</h6>
|
|
2273
2311
|
</th>
|
|
2274
2312
|
<th class="css-gcb0n5" scope="col">
|
|
2275
|
-
|
|
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
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
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
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
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
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
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
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
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
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
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
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
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
|
-
|
|
2388
|
+
${shouldShowRevenue
|
|
2389
|
+
? `<th class="css-gcb0n5" scope="col">
|
|
2348
2390
|
<h6 class="css-olpyhf">Amount</h6>
|
|
2349
|
-
|
|
2350
|
-
|
|
2391
|
+
</th>
|
|
2392
|
+
<th class="css-gcb0n5" scope="col">
|
|
2351
2393
|
<h6 class="css-olpyhf">${gstTitle}</h6>
|
|
2352
|
-
|
|
2353
|
-
|
|
2394
|
+
</th>
|
|
2395
|
+
<th class="css-gcb0n5" scope="col">
|
|
2354
2396
|
<h6 class="css-olpyhf">Gross Sale</h6>
|
|
2355
|
-
|
|
2356
|
-
|
|
2397
|
+
</th>
|
|
2398
|
+
<th class="css-gcb0n5" scope="col">
|
|
2357
2399
|
<h6 class="css-olpyhf">Discount</h6>
|
|
2358
|
-
|
|
2359
|
-
|
|
2400
|
+
</th>
|
|
2401
|
+
<th class="css-gcb0n5" scope="col">
|
|
2360
2402
|
<h6 class="css-olpyhf">Net Sale</h6>
|
|
2361
|
-
|
|
2362
|
-
|
|
2403
|
+
</th>
|
|
2404
|
+
<th class="css-gcb0n5" scope="col">
|
|
2363
2405
|
<h6 class="css-olpyhf">Av. Rate</h6>
|
|
2364
|
-
|
|
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
|
-
|
|
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}
|