@managesome/eposmatic-toolkit 0.2.219 → 0.2.221
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.
package/lib/constants/ENUMS.d.ts
CHANGED
|
@@ -458,12 +458,12 @@ export declare enum USER_PERMISSIONS_ENUM {
|
|
|
458
458
|
POS_VIEW_ORDERS = "POS_VIEW_ORDERS",
|
|
459
459
|
POS_VIEW_DRIVERS = "POS_VIEW_DRIVERS",
|
|
460
460
|
POS_VIEW_REPORTS = "POS_VIEW_REPORTS",
|
|
461
|
-
POS_VIEW_CASHIER = "POS_VIEW_CASHIER",
|
|
462
|
-
POS_VIEW_STORE_SETTINGS = "POS_VIEW_STORE_SETTINGS",
|
|
463
|
-
POS_VIEW_PRINTER_SETTINGS = "POS_VIEW_PRINTER_SETTINGS",
|
|
464
461
|
POS_VIEW_PRODUCT_REPORTS = "POS_VIEW_PRODUCT_REPORTS",
|
|
465
462
|
POS_VIEW_REVENUE_REPORTS = "POS_VIEW_REVENUE_REPORTS",
|
|
466
463
|
POS_VIEW_PRODUCT_REPORTS_REVENUE = "POS_VIEW_PRODUCT_REPORTS_REVENUE",
|
|
464
|
+
POS_VIEW_CASHIER = "POS_VIEW_CASHIER",
|
|
465
|
+
POS_VIEW_STORE_SETTINGS = "POS_VIEW_STORE_SETTINGS",
|
|
466
|
+
POS_VIEW_PRINTER_SETTINGS = "POS_VIEW_PRINTER_SETTINGS",
|
|
467
467
|
ADMIN_CREATE_MENU = "ADMIN_CREATE_MENU",
|
|
468
468
|
ADMIN_CREATE_INVENTORY = "ADMIN_CREATE_INVENTORY",
|
|
469
469
|
ADMIN_CREATE_EXPENSE = "ADMIN_CREATE_EXPENSE",
|
package/lib/constants/ENUMS.js
CHANGED
|
@@ -650,12 +650,12 @@ var USER_PERMISSIONS_ENUM;
|
|
|
650
650
|
USER_PERMISSIONS_ENUM["POS_VIEW_ORDERS"] = "POS_VIEW_ORDERS";
|
|
651
651
|
USER_PERMISSIONS_ENUM["POS_VIEW_DRIVERS"] = "POS_VIEW_DRIVERS";
|
|
652
652
|
USER_PERMISSIONS_ENUM["POS_VIEW_REPORTS"] = "POS_VIEW_REPORTS";
|
|
653
|
-
USER_PERMISSIONS_ENUM["POS_VIEW_CASHIER"] = "POS_VIEW_CASHIER";
|
|
654
|
-
USER_PERMISSIONS_ENUM["POS_VIEW_STORE_SETTINGS"] = "POS_VIEW_STORE_SETTINGS";
|
|
655
|
-
USER_PERMISSIONS_ENUM["POS_VIEW_PRINTER_SETTINGS"] = "POS_VIEW_PRINTER_SETTINGS";
|
|
656
653
|
USER_PERMISSIONS_ENUM["POS_VIEW_PRODUCT_REPORTS"] = "POS_VIEW_PRODUCT_REPORTS";
|
|
657
654
|
USER_PERMISSIONS_ENUM["POS_VIEW_REVENUE_REPORTS"] = "POS_VIEW_REVENUE_REPORTS";
|
|
658
655
|
USER_PERMISSIONS_ENUM["POS_VIEW_PRODUCT_REPORTS_REVENUE"] = "POS_VIEW_PRODUCT_REPORTS_REVENUE";
|
|
656
|
+
USER_PERMISSIONS_ENUM["POS_VIEW_CASHIER"] = "POS_VIEW_CASHIER";
|
|
657
|
+
USER_PERMISSIONS_ENUM["POS_VIEW_STORE_SETTINGS"] = "POS_VIEW_STORE_SETTINGS";
|
|
658
|
+
USER_PERMISSIONS_ENUM["POS_VIEW_PRINTER_SETTINGS"] = "POS_VIEW_PRINTER_SETTINGS";
|
|
659
659
|
/* =================>CREATE OPERATIONS<================= */
|
|
660
660
|
// For Admin Console
|
|
661
661
|
USER_PERMISSIONS_ENUM["ADMIN_CREATE_MENU"] = "ADMIN_CREATE_MENU";
|
|
@@ -883,6 +883,9 @@ const getLegacyItemReportHead = ({ monochrome, width, zeroPadding }) => {
|
|
|
883
883
|
function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersChannel, currency_symbol, from, to, tenantName, menuName, itemNetAmount, count, isFilterApplied, monochrome, showRevenue, }) {
|
|
884
884
|
// ======================>>>><<<<=====================
|
|
885
885
|
const shouldShowRevenue = showRevenue ?? true;
|
|
886
|
+
const dealTextColor = monochrome ? '#000000' : '#9e9e9e';
|
|
887
|
+
const dealBadgeColor = monochrome ? '#000000' : '#f1c24a';
|
|
888
|
+
const dealMetaColor = monochrome ? '#000000' : '#777';
|
|
886
889
|
let itemSales = '';
|
|
887
890
|
if (itemsChannels != null && itemsChannels.length > 0) {
|
|
888
891
|
let categoryItems = '';
|
|
@@ -895,9 +898,9 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
|
|
|
895
898
|
const hasDeal = dealCount > 0;
|
|
896
899
|
for (const subItem of item.subChannels) {
|
|
897
900
|
const isReferenced = subItem.referenceId != null;
|
|
898
|
-
const nameStyle = isReferenced ?
|
|
901
|
+
const nameStyle = isReferenced ? `color:${dealTextColor};font-style:italic;` : '';
|
|
899
902
|
const dealBadge = isReferenced
|
|
900
|
-
?
|
|
903
|
+
? `<span style="border:1px solid ${dealBadgeColor};color:${dealBadgeColor};border-radius:10px;padding:2px 6px;margin-left:6px;font-size:12px;">Deal Item</span>`
|
|
901
904
|
: '';
|
|
902
905
|
subItems += `<div class="css-1oxswqj-askk">
|
|
903
906
|
<div class="css-1qfrzlclkjs" style="margin-left: ${subItem.level * 30}px;"></div>
|
|
@@ -919,14 +922,14 @@ function getLegacyItemReportBody({ categoriesChannel, itemsChannels, modifiersCh
|
|
|
919
922
|
<h6 class="css-zfkluy-jskk">${item.count}</h6>
|
|
920
923
|
<h6 class="css-21997j-jskk">${item.name}</h6>
|
|
921
924
|
${hasDeal
|
|
922
|
-
? `<p class="css-1jq5hv-jskk" style="color
|
|
925
|
+
? `<p class="css-1jq5hv-jskk" style="color:${dealMetaColor};font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual: ${individualCount} • Deal: ${dealCount}</p>`
|
|
923
926
|
: ''}
|
|
924
927
|
</div>
|
|
925
928
|
${shouldShowRevenue && item.grossAmount > 0
|
|
926
929
|
? `<h6 class="css-1z023sx-jskk">${(0, common_1.localeAmount)(currency_symbol, item.grossAmount)}</h6>`
|
|
927
930
|
: ''}
|
|
928
931
|
${shouldShowRevenue && hasDeal && item.grossAmount > 0
|
|
929
|
-
? `<p class="css-1jq5hv-jskk" style="color
|
|
932
|
+
? `<p class="css-1jq5hv-jskk" style="color:${dealMetaColor};font-size:10px;line-height:12px;display:block;margin-top:2px;">Individual revenue</p>`
|
|
930
933
|
: ''}
|
|
931
934
|
</div>
|
|
932
935
|
${subItems}
|