@managesome/eposmatic-toolkit 0.2.246 → 0.2.247
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.
|
@@ -416,7 +416,8 @@ export interface IXReportAnalytics {
|
|
|
416
416
|
}
|
|
417
417
|
export declare enum REPORT_SALE_TYPE_ENUM {
|
|
418
418
|
TOTAL_SALES = "TOTAL_SALES",
|
|
419
|
-
AMOUNT_COLLECTED = "AMOUNT_COLLECTED"
|
|
419
|
+
AMOUNT_COLLECTED = "AMOUNT_COLLECTED",
|
|
420
|
+
OPEN_ORDERS = "OPEN_ORDERS"
|
|
420
421
|
}
|
|
421
422
|
export declare const ALL_REPORT_SALE_TYPES: REPORT_SALE_TYPE_ENUM[];
|
|
422
423
|
export declare enum REPORT_TIME_BIAS_ENUM {
|
|
@@ -126,6 +126,7 @@ var REPORT_SALE_TYPE_ENUM;
|
|
|
126
126
|
(function (REPORT_SALE_TYPE_ENUM) {
|
|
127
127
|
REPORT_SALE_TYPE_ENUM["TOTAL_SALES"] = "TOTAL_SALES";
|
|
128
128
|
REPORT_SALE_TYPE_ENUM["AMOUNT_COLLECTED"] = "AMOUNT_COLLECTED";
|
|
129
|
+
REPORT_SALE_TYPE_ENUM["OPEN_ORDERS"] = "OPEN_ORDERS";
|
|
129
130
|
})(REPORT_SALE_TYPE_ENUM || (exports.REPORT_SALE_TYPE_ENUM = REPORT_SALE_TYPE_ENUM = {}));
|
|
130
131
|
exports.ALL_REPORT_SALE_TYPES = Object.values(REPORT_SALE_TYPE_ENUM);
|
|
131
132
|
// ==================><=================
|
|
@@ -880,9 +880,10 @@ 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, showRevenue, }) {
|
|
883
|
+
function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, isFilterApplied, monochrome, showRevenue, hideModifiersDescription, }) {
|
|
884
884
|
// ======================>>>><<<<=====================
|
|
885
885
|
const shouldShowRevenue = showRevenue ?? true;
|
|
886
|
+
const shouldHideModifiersDescription = hideModifiersDescription ?? false;
|
|
886
887
|
const dealTextColor = monochrome ? '#000000' : '#9e9e9e';
|
|
887
888
|
const dealBadgeColor = monochrome ? '#000000' : '#f1c24a';
|
|
888
889
|
const dealMetaColor = monochrome ? '#000000' : '#777';
|
|
@@ -897,6 +898,9 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
|
|
|
897
898
|
const individualCount = Math.max(0, item.count - dealCount);
|
|
898
899
|
const hasDeal = dealCount > 0;
|
|
899
900
|
for (const subItem of item.subChannels) {
|
|
901
|
+
if (shouldHideModifiersDescription) {
|
|
902
|
+
continue;
|
|
903
|
+
}
|
|
900
904
|
const isReferenced = subItem.referenceId != null;
|
|
901
905
|
const subDealCount = subItem.dealCount ?? 0;
|
|
902
906
|
const subIndividualCount = subItem.individualCount ?? Math.max(0, subItem.count - subDealCount);
|
|
@@ -2156,9 +2160,10 @@ const getNewItemReportHead = ({ zeroPadding, monochrome }) => {
|
|
|
2156
2160
|
<title>Item Sales Report</title>
|
|
2157
2161
|
</head>`;
|
|
2158
2162
|
};
|
|
2159
|
-
function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, itemAmount, itemDiscountAmount, itemGrossAmount, itemGstAmount, gstTitle, isFilterApplied, showRevenue, }) {
|
|
2163
|
+
function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, itemAmount, itemDiscountAmount, itemGrossAmount, itemGstAmount, gstTitle, isFilterApplied, showRevenue, hideModifiersDescription, }) {
|
|
2160
2164
|
// ======================>>>><<<<=====================
|
|
2161
2165
|
const shouldShowRevenue = showRevenue ?? true;
|
|
2166
|
+
const shouldHideModifiersDescription = hideModifiersDescription ?? false;
|
|
2162
2167
|
const itemTableColumns = shouldShowRevenue ? 7 : 1;
|
|
2163
2168
|
let itemSales = '';
|
|
2164
2169
|
if (itemsChannels != null && itemsChannels.length > 0) {
|
|
@@ -2171,6 +2176,9 @@ function getNewItemReportBody({ categoriesChannel, itemsChannels, modifiersChann
|
|
|
2171
2176
|
const individualCount = Math.max(0, item.count - dealCount);
|
|
2172
2177
|
const hasDeal = dealCount > 0;
|
|
2173
2178
|
for (const subItem of item.subChannels) {
|
|
2179
|
+
if (shouldHideModifiersDescription) {
|
|
2180
|
+
continue;
|
|
2181
|
+
}
|
|
2174
2182
|
const isReferenced = subItem.referenceId != null;
|
|
2175
2183
|
const subDealCount = subItem.dealCount ?? 0;
|
|
2176
2184
|
const subIndividualCount = subItem.individualCount ?? Math.max(0, subItem.count - subDealCount);
|