@managesome/eposmatic-toolkit 0.2.227 → 0.2.228

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.
@@ -999,6 +999,17 @@ export declare enum CASH_IN_OUT_TYPE_ENUM {
999
999
  CASH_OUT = "CASH_OUT"
1000
1000
  }
1001
1001
  export declare const ALL_CASH_IN_OUT_TYPES: CASH_IN_OUT_TYPE_ENUM[];
1002
+ export declare enum CASH_IN_HAND_TRANSACTION_TYPE_ENUM {
1003
+ INBOUND = "INBOUND",
1004
+ OUTBOUND = "OUTBOUND"
1005
+ }
1006
+ export declare const ALL_CASH_IN_HAND_TRANSACTION_TYPES: CASH_IN_HAND_TRANSACTION_TYPE_ENUM[];
1007
+ export declare enum CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM {
1008
+ TOP_UP = "TOP_UP",
1009
+ DEPOSIT = "DEPOSIT",
1010
+ ADJUST = "ADJUST"
1011
+ }
1012
+ export declare const ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES: CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM[];
1002
1013
  export declare enum CASH_DRAWER_STATUS_ENUM {
1003
1014
  IN_USE = "IN_USE",
1004
1015
  CLOSED = "CLOSED"
@@ -4,7 +4,7 @@ exports.ALL_CATEGORY_DISPLAY_TYPES = exports.CATEGORY_DISPLAY_TYPE_ENUM = export
4
4
  exports.PRINTING_PREFERENCE_ENUM = exports.ALL_PRINTER_BRAND_TYPES = exports.PRINTER_BRAND_TYPE_ENUM = exports.ALL_ORDER_ITEM_TYPES = exports.ORDER_ITEM_TYPE_ENUM = exports.ALL_PLATFORM_PROVIDER_IDS = exports.PLATFORM_PROVIDER_IDS_ENUM = exports.ALL_MARKETING_RECEIPIENT_TYPES = exports.MARKETING_RECEIPIENT_ENUM = exports.ALL_MARKETING_TYPES = exports.MARKETING_TYPE_ENUM = exports.ALL_TOKEN_TYPES = exports.TOKEN_TYPE_ENUM = exports.ALL_EMAIL_PROCESSING_PROVIDERS = exports.EMAIL_PROCESSING_PROVIDERS_ENUM = exports.ALL_SMS_PROCESSING_PROVIDERS = exports.SMS_PROCESSING_PROVIDERS_ENUM = exports.ALL_TERMINAL_TYPES = exports.TERMINAL_TYPE_ENUM = exports.ALL_TERMINAL_PROCESSING_PROVIDERS = exports.TERMINAL_PROCESSING_PROVIDERS_ENUM = exports.TRANSACTION_TYPE_ENUM = exports.ALL_CARD_PROCESSING_PROVIDERS = exports.CARD_PROCESSING_PROVIDERS_ENUM = exports.ALL_PAYMENT_PROVIDERS = exports.PAYMENT_PROVIDERS_ENUM = exports.ALL_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_MODERATOR_PERMISSIONS = exports.ALL_USER_PERMISSIONS = exports.USER_PERMISSIONS_ENUM = exports.ALL_OFFER_TYPES = exports.OFFER_TYPE_ENUM = exports.ALL_OFFER_USE_TYPES = exports.OFFER_USE_TYPE_ENUM = exports.ALL_OFFER_CODE_USAGE_TYPES = exports.OFFER_CODE_USAGE_TYPE_ENUM = exports.ALL_PATHWAY_TO_UNLOCK_TYPES = exports.PATHWAY_TO_UNLOCK_TYPE_ENUM = exports.ALL_OFFER_REWARD_TYPES = exports.OFFER_REWARD_TYPE_ENUM = exports.ALL_USER_ROLES = exports.USER_ROLES_ENUM = exports.ALL_PLATFORM_TYPES = exports.PLATFORM_TYPE_ENUM = exports.ALL_ORDER_NUMBER_GROUPING_TYPES = exports.ORDER_NUMBER_GROUPING_TYPE_ENUM = exports.ALL_TRACK_ORDER_NUMBER_TYPES = exports.TRACK_ORDER_NUMBER_ENUM = exports.ALL_TABLE_TYPES = exports.TABLE_TYPE_ENUM = void 0;
5
5
  exports.ALL_MULTI_TENANT_WEBSITE_TYPES = exports.MULTI_TENANT_WEBSITE_TYPE_ENUM = exports.ALL_TIME_RANGE_ENUMS = exports.TIME_RANGE_ENUM = exports.ALL_ITEM_TRANSACTION_TYPES = exports.ITEM_TRANSACTION_TYPE_ENUM = exports.INVENTORY_OUTBOUND_TRANSACTIONS = exports.INVENTORY_INBOUND_TRANSACTIONS = exports.ALL_INVENTORY_TRANSACTION_CATEGORIES = exports.INVENTORY_TRANSACTION_CATEGORY_ENUM = exports.ALL_INVENTORY_TRANSACTION_TYPES = exports.INVENTORY_TRANSACTION_TYPE_ENUM = exports.ALL_GST_TYPES = exports.GST_TYPE_ENUM = exports.ALL_EXPENSE_REACCURING_TYPES = exports.EXPENSE_REACCURING_TYPE_ENUM = exports.PAYMENT_EXTENSION_ENUM = exports.ALL_PRINTER_INTERFACES = exports.PRINTER_INTERFACE_ENUM = exports.RECEIPT_WIDTHS = exports.ALL_NUM_OF_COLUMNS = exports.NUM_OF_COLUMNS_ENUM = exports.SPLIT_SYNC_SOURCE_ENUM = exports.ALL_SPLIT_BILL_TYPES = exports.SPLIT_BILL_TYPE_ENUM = exports.ALL_RIDER_FEE_TYPES = exports.RIDER_FEE_TYPE_ENUM = exports.ALL_DELIVERY_AREAS_SEARCH_TYPES = exports.DELIVERY_AREAS_SEARCH_TYPE_ENUM = exports.ALL_WEB_AUTH_TYPES = exports.WEB_AUTH_TYPE_ENUM = exports.KITCHEN_RECEIPT_TYPE_ENUM = exports.PRINTER_EVENT_TYPE_ENUM = exports.SORT_TYPE_ENUM = exports.BLACKLISTED_SMS_COUNTRY_CODES = exports.ALL_OTP_TYPES = exports.OTP_TYPE_ENUM = exports.ALL_TAX_INVOICE_PROVIDERS = exports.TAX_INVOICE_PROVIDER_ENUM = exports.ALL_RESERVATION_STATUS_TYPES = exports.RESERVATION_STATUS_ENUM = exports.TENANT_AMOUNT_DUE_TYPE_ENUM = exports.ALL_KITCHEN_DOCKET_FONT_TYPES = exports.KITCHEN_DOCKET_FONT_TYPE_ENUM = exports.ALL_SORT_ORDER_BY_TYPES = exports.SORT_ORDER_BY_ENUM = exports.RECEIPT_IMAGE_TYPE_ENUM = exports.ALL_RECEIPT_TYPES = exports.RECEIPT_TYPE_ENUM = exports.ALL_PRINTING_PREFERENCES = void 0;
6
6
  exports.ALL_CASH_IN_OUT_TYPES = exports.CASH_IN_OUT_TYPE_ENUM = exports.ALL_POS_SHIFT_STATUS = exports.POS_SHIFT_STATUS_ENUM = exports.ALL_POS_DAY_STATUS = exports.POS_DAY_STATUS_ENUM = exports.ALL_MODIFIER_OPTION_REF_TYPES = exports.MODIFIER_OPTION_REF_TYPE_ENUM = exports.ALL_WAREHOUSE_CLIENT_TYPES = exports.WAREHOUSE_CLIENT_TYPE_ENUM = exports.ALL_ONLINE_ORDERING_DESIGN_TYPES = exports.ONLINE_ORDERING_DESIGN_TYPE_ENUM = exports.ALL_NOTIFICATION_PROVIDERS = exports.NOTIFICATION_PROVIDER_ENUM = exports.ALL_ORDER_COMPLETION_TYPES = exports.ORDER_COMPLETION_TYPE_ENUM = exports.ITEM_COMPARISON_FIELD_ENUM = exports.VOID_ITEM_STAFF_REPORT_ENUM = exports.ALL_DISCOUNT_APPLICABILITY_TYPES = exports.DISCOUNT_APPLICABILITY_ENUM = exports.ALL_DISCOUNT_TYPES = exports.DISCOUNT_TYPE_ENUM = exports.EMAIL_TEMPLATES_TYPE_ENUM = exports.ALL_ALERT_NOTIFICATIONS_TYPES = exports.ALERT_NOTIFICATIONS_TYPE_ENUM = exports.ALL_WALLET_TRANSACTION_STATUS = exports.WALLET_TRANSACTION_STATUS_ENUM = exports.ALL_WALLET_TRANSACTION_CATEGORIES = exports.WALLET_TRANSACTION_CATEGORY_ENUM = exports.ALL_WALLET_TRANSACTION_TYPES = exports.WALLET_TRANSACTION_TYPE_ENUM = exports.ALL_WAREHOUSE_SUPPORT_SPECIALIST_PERMISSIONS = exports.ALL_WAREHOUSE_MODERATOR_PERMISSIONS = exports.ALL_WAREHOUSE_USER_PERMISSIONS = exports.WAREHOUSE_USER_PERMISSIONS_ENUM = exports.ALL_WAREHOUSE_INVOICE_STATUS_NAMES = exports.WAREHOUSE_INVOICE_STATUS_ENUM = exports.ALL_PURCHASE_ORDER_STATUS_NAMES = exports.PURCHASE_ORDER_STATUS_ENUM = exports.ALL_DELIVERY_STATUS = exports.DELIVERY_STATUS_ENUM = exports.ALL_INVENTORY_ITEM_TYPES = exports.INVENTORY_ITEM_TYPE_ENUM = exports.ALL_RATING_TYPES = exports.RATING_TYPE_ENUM = exports.ALL_SUBSCRIPTION_STATUS = exports.SUBSCRIPTION_STATUS_ENUM = exports.ALL_VOID_ORDER_ITEM_TYPES = exports.VOID_ORDER_ITEM_TYPE_ENUM = exports.COMPARISON_REPORT_TYPE_ENUM = void 0;
7
- exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = void 0;
7
+ exports.ALL_INTERNAL_LEAD_STATUS = exports.INTERNAL_LEAD_STATUS_ENUM = exports.ALL_INTERNAL_LEAD_SOURCES = exports.INTERNAL_LEAD_SOURCE_ENUM = exports.ALL_CASH_DRAWER_STATUS = exports.CASH_DRAWER_STATUS_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = void 0;
8
8
  var ORDER_FROM_ENUM;
9
9
  (function (ORDER_FROM_ENUM) {
10
10
  ORDER_FROM_ENUM["WEB"] = "WEB";
@@ -1687,6 +1687,20 @@ var CASH_IN_OUT_TYPE_ENUM;
1687
1687
  })(CASH_IN_OUT_TYPE_ENUM || (exports.CASH_IN_OUT_TYPE_ENUM = CASH_IN_OUT_TYPE_ENUM = {}));
1688
1688
  exports.ALL_CASH_IN_OUT_TYPES = Object.values(CASH_IN_OUT_TYPE_ENUM);
1689
1689
  // ======================>> <<====================== //
1690
+ var CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
1691
+ (function (CASH_IN_HAND_TRANSACTION_TYPE_ENUM) {
1692
+ CASH_IN_HAND_TRANSACTION_TYPE_ENUM["INBOUND"] = "INBOUND";
1693
+ CASH_IN_HAND_TRANSACTION_TYPE_ENUM["OUTBOUND"] = "OUTBOUND";
1694
+ })(CASH_IN_HAND_TRANSACTION_TYPE_ENUM || (exports.CASH_IN_HAND_TRANSACTION_TYPE_ENUM = CASH_IN_HAND_TRANSACTION_TYPE_ENUM = {}));
1695
+ exports.ALL_CASH_IN_HAND_TRANSACTION_TYPES = Object.values(CASH_IN_HAND_TRANSACTION_TYPE_ENUM);
1696
+ var CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
1697
+ (function (CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM) {
1698
+ CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM["TOP_UP"] = "TOP_UP";
1699
+ CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM["DEPOSIT"] = "DEPOSIT";
1700
+ CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM["ADJUST"] = "ADJUST";
1701
+ })(CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM || (exports.CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM = {}));
1702
+ exports.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES = Object.values(CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM);
1703
+ // ======================>> <<====================== //
1690
1704
  var CASH_DRAWER_STATUS_ENUM;
1691
1705
  (function (CASH_DRAWER_STATUS_ENUM) {
1692
1706
  CASH_DRAWER_STATUS_ENUM["IN_USE"] = "IN_USE";
@@ -0,0 +1,3 @@
1
+ import { ICashInHandTransaction } from '../../schemas';
2
+ export declare function getCashInHandTransactionWithInt<T extends Partial<ICashInHandTransaction> | ICashInHandTransaction>(transaction: T): T;
3
+ export declare function getCashInHandTransactionWithDecimal<T extends Partial<ICashInHandTransaction> | ICashInHandTransaction>(transaction: T): T;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCashInHandTransactionWithInt = getCashInHandTransactionWithInt;
4
+ exports.getCashInHandTransactionWithDecimal = getCashInHandTransactionWithDecimal;
5
+ const price_conversion_1 = require("./price-conversion");
6
+ function getCashInHandTransactionWithInt(transaction) {
7
+ return {
8
+ ...transaction,
9
+ ...(typeof transaction.prev_cash_in_hand === 'number'
10
+ ? {
11
+ prev_cash_in_hand: (0, price_conversion_1.convertDecimalToInt)(transaction.prev_cash_in_hand),
12
+ }
13
+ : {}),
14
+ ...(typeof transaction.cash_in_hand === 'number'
15
+ ? {
16
+ cash_in_hand: (0, price_conversion_1.convertDecimalToInt)(transaction.cash_in_hand),
17
+ }
18
+ : {}),
19
+ };
20
+ }
21
+ function getCashInHandTransactionWithDecimal(transaction) {
22
+ return {
23
+ ...transaction,
24
+ ...(typeof transaction.prev_cash_in_hand === 'number'
25
+ ? {
26
+ prev_cash_in_hand: (0, price_conversion_1.convertIntToDecimal)(transaction.prev_cash_in_hand),
27
+ }
28
+ : {}),
29
+ ...(typeof transaction.cash_in_hand === 'number'
30
+ ? {
31
+ cash_in_hand: (0, price_conversion_1.convertIntToDecimal)(transaction.cash_in_hand),
32
+ }
33
+ : {}),
34
+ };
35
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './cart-helpers';
2
+ export * from './cash_in_hand_transactions';
2
3
  export * from './catalog-conversion';
3
4
  export * from './color-helpers';
4
5
  export * from './common';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./cart-helpers"), exports);
18
+ __exportStar(require("./cash_in_hand_transactions"), exports);
18
19
  __exportStar(require("./catalog-conversion"), exports);
19
20
  __exportStar(require("./color-helpers"), exports);
20
21
  __exportStar(require("./common"), exports);
@@ -0,0 +1,62 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const CashInHandTransactionsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
3
+ timestamps: true;
4
+ versionKey: false;
5
+ minimize: false;
6
+ }, {
7
+ createdAt: NativeDate;
8
+ updatedAt: NativeDate;
9
+ } & {
10
+ _id: import("mongoose").Types.ObjectId;
11
+ tenant_id: string;
12
+ staff_id: string;
13
+ staff_name: string;
14
+ createdAt: NativeDate;
15
+ updatedAt: NativeDate;
16
+ note: string;
17
+ processed_by_id: string;
18
+ processed_by_name: string;
19
+ prev_cash_in_hand: number;
20
+ cash_in_hand: number;
21
+ transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
22
+ transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
23
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
24
+ createdAt: NativeDate;
25
+ updatedAt: NativeDate;
26
+ } & {
27
+ _id: import("mongoose").Types.ObjectId;
28
+ tenant_id: string;
29
+ staff_id: string;
30
+ staff_name: string;
31
+ createdAt: NativeDate;
32
+ updatedAt: NativeDate;
33
+ note: string;
34
+ processed_by_id: string;
35
+ processed_by_name: string;
36
+ prev_cash_in_hand: number;
37
+ cash_in_hand: number;
38
+ transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
39
+ transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
40
+ }>> & import("mongoose").FlatRecord<{
41
+ createdAt: NativeDate;
42
+ updatedAt: NativeDate;
43
+ } & {
44
+ _id: import("mongoose").Types.ObjectId;
45
+ tenant_id: string;
46
+ staff_id: string;
47
+ staff_name: string;
48
+ createdAt: NativeDate;
49
+ updatedAt: NativeDate;
50
+ note: string;
51
+ processed_by_id: string;
52
+ processed_by_name: string;
53
+ prev_cash_in_hand: number;
54
+ cash_in_hand: number;
55
+ transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
56
+ transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
57
+ }> & Required<{
58
+ _id: import("mongoose").Types.ObjectId;
59
+ }> & {
60
+ __v: number;
61
+ }>;
62
+ export declare const CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = "cash_in_hand_transactions";
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = exports.CashInHandTransactionsSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ exports.CashInHandTransactionsSchema = new mongoose_1.Schema({
7
+ _id: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ required: true,
10
+ immutable: true,
11
+ },
12
+ tenant_id: {
13
+ type: String,
14
+ required: true,
15
+ immutable: true,
16
+ ref: 'tenants',
17
+ },
18
+ staff_id: {
19
+ type: String,
20
+ required: true,
21
+ },
22
+ staff_name: {
23
+ type: String,
24
+ required: true,
25
+ },
26
+ processed_by_id: {
27
+ type: String,
28
+ required: true,
29
+ },
30
+ processed_by_name: {
31
+ type: String,
32
+ required: true,
33
+ },
34
+ prev_cash_in_hand: {
35
+ type: Number,
36
+ required: true,
37
+ },
38
+ cash_in_hand: {
39
+ type: Number,
40
+ required: true,
41
+ },
42
+ transaction_type: {
43
+ type: String,
44
+ enum: constants_1.ALL_CASH_IN_HAND_TRANSACTION_TYPES,
45
+ required: true,
46
+ },
47
+ transaction_category: {
48
+ type: String,
49
+ enum: constants_1.ALL_CASH_IN_HAND_TRANSACTION_CATEGORIES,
50
+ required: true,
51
+ },
52
+ note: {
53
+ type: String,
54
+ default: '',
55
+ },
56
+ createdAt: {
57
+ type: mongoose_1.Schema.Types.Date,
58
+ required: true,
59
+ default: () => new Date(),
60
+ immutable: true,
61
+ },
62
+ updatedAt: {
63
+ type: mongoose_1.Schema.Types.Date,
64
+ required: true,
65
+ default: () => new Date(),
66
+ },
67
+ }, {
68
+ timestamps: true,
69
+ versionKey: false,
70
+ minimize: false,
71
+ });
72
+ exports.CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = 'cash_in_hand_transactions';
@@ -3,6 +3,7 @@ export * from './applied-order-discounts';
3
3
  export * from './brand';
4
4
  export * from './cash_drawer_sessions';
5
5
  export * from './cash_drawers';
6
+ export * from './cash_in_hand_transactions';
6
7
  export * from './cash_in_out';
7
8
  export * from './category';
8
9
  export * from './close_dates';
@@ -19,6 +19,7 @@ __exportStar(require("./applied-order-discounts"), exports);
19
19
  __exportStar(require("./brand"), exports);
20
20
  __exportStar(require("./cash_drawer_sessions"), exports);
21
21
  __exportStar(require("./cash_drawers"), exports);
22
+ __exportStar(require("./cash_in_hand_transactions"), exports);
22
23
  __exportStar(require("./cash_in_out"), exports);
23
24
  __exportStar(require("./category"), exports);
24
25
  __exportStar(require("./close_dates"), exports);
@@ -12,6 +12,8 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
12
12
  createdAt_mins: number;
13
13
  createdAt: NativeDate;
14
14
  updatedAt: NativeDate;
15
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
16
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
15
17
  inventory_code: string;
16
18
  quantity_left: number;
17
19
  unit_price: number;
@@ -20,8 +22,6 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
20
22
  previous_quantity_left: number;
21
23
  previous_unit_price: number;
22
24
  previous_remaining_stock_price: number;
23
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
24
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
25
25
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
26
26
  description?: string | null | undefined;
27
27
  order_number?: number | null | undefined;
@@ -36,6 +36,8 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
36
36
  createdAt_mins: number;
37
37
  createdAt: NativeDate;
38
38
  updatedAt: NativeDate;
39
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
40
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
39
41
  inventory_code: string;
40
42
  quantity_left: number;
41
43
  unit_price: number;
@@ -44,8 +46,6 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
44
46
  previous_quantity_left: number;
45
47
  previous_unit_price: number;
46
48
  previous_remaining_stock_price: number;
47
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
48
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
49
49
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
50
50
  description?: string | null | undefined;
51
51
  order_number?: number | null | undefined;
@@ -60,6 +60,8 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
60
60
  createdAt_mins: number;
61
61
  createdAt: NativeDate;
62
62
  updatedAt: NativeDate;
63
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
64
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
63
65
  inventory_code: string;
64
66
  quantity_left: number;
65
67
  unit_price: number;
@@ -68,8 +70,6 @@ export declare const InventoryTransactionsSchema: Schema<any, import("mongoose")
68
70
  previous_quantity_left: number;
69
71
  previous_unit_price: number;
70
72
  previous_remaining_stock_price: number;
71
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
72
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
73
73
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
74
74
  description?: string | null | undefined;
75
75
  order_number?: number | null | undefined;
@@ -13,10 +13,10 @@ export declare const ItemTransactionsSchema: Schema<any, import("mongoose").Mode
13
13
  createdAt: NativeDate;
14
14
  updatedAt: NativeDate;
15
15
  category_id: import("mongoose").Types.ObjectId;
16
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
16
17
  order_number: number;
17
18
  item_id: import("mongoose").Types.ObjectId;
18
19
  quantity: number;
19
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
20
20
  item_name: string;
21
21
  category_name: string;
22
22
  selling_price: number;
@@ -33,10 +33,10 @@ export declare const ItemTransactionsSchema: Schema<any, import("mongoose").Mode
33
33
  createdAt: NativeDate;
34
34
  updatedAt: NativeDate;
35
35
  category_id: import("mongoose").Types.ObjectId;
36
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
36
37
  order_number: number;
37
38
  item_id: import("mongoose").Types.ObjectId;
38
39
  quantity: number;
39
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
40
40
  item_name: string;
41
41
  category_name: string;
42
42
  selling_price: number;
@@ -53,10 +53,10 @@ export declare const ItemTransactionsSchema: Schema<any, import("mongoose").Mode
53
53
  createdAt: NativeDate;
54
54
  updatedAt: NativeDate;
55
55
  category_id: import("mongoose").Types.ObjectId;
56
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
56
57
  order_number: number;
57
58
  item_id: import("mongoose").Types.ObjectId;
58
59
  quantity: number;
59
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
60
60
  item_name: string;
61
61
  category_name: string;
62
62
  selling_price: number;
@@ -23,6 +23,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
23
23
  role: import("../../constants").USER_ROLES_ENUM;
24
24
  allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
25
25
  assigned_tables: string[];
26
+ cash_in_hand?: number | null | undefined;
26
27
  operational_hours?: import("mongoose").Types.DocumentArray<{
27
28
  days_index: import("../../constants").DAY_INDEX_ENUM[];
28
29
  disabled_outside_date_range: boolean;
@@ -309,7 +310,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
309
310
  BASE_PRICE: number;
310
311
  } | null | undefined;
311
312
  }> | null | undefined;
312
- cash_in_hand?: number | null | undefined;
313
313
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
314
314
  createdAt: NativeDate;
315
315
  updatedAt: NativeDate;
@@ -330,6 +330,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
330
330
  role: import("../../constants").USER_ROLES_ENUM;
331
331
  allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
332
332
  assigned_tables: string[];
333
+ cash_in_hand?: number | null | undefined;
333
334
  operational_hours?: import("mongoose").Types.DocumentArray<{
334
335
  days_index: import("../../constants").DAY_INDEX_ENUM[];
335
336
  disabled_outside_date_range: boolean;
@@ -616,7 +617,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
616
617
  BASE_PRICE: number;
617
618
  } | null | undefined;
618
619
  }> | null | undefined;
619
- cash_in_hand?: number | null | undefined;
620
620
  }>> & import("mongoose").FlatRecord<{
621
621
  createdAt: NativeDate;
622
622
  updatedAt: NativeDate;
@@ -637,6 +637,7 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
637
637
  role: import("../../constants").USER_ROLES_ENUM;
638
638
  allowed_platforms: import("../../constants").PLATFORM_TYPE_ENUM[];
639
639
  assigned_tables: string[];
640
+ cash_in_hand?: number | null | undefined;
640
641
  operational_hours?: import("mongoose").Types.DocumentArray<{
641
642
  days_index: import("../../constants").DAY_INDEX_ENUM[];
642
643
  disabled_outside_date_range: boolean;
@@ -923,7 +924,6 @@ export declare const TenantStaffSchema: Schema<any, import("mongoose").Model<any
923
924
  BASE_PRICE: number;
924
925
  } | null | undefined;
925
926
  }> | null | undefined;
926
- cash_in_hand?: number | null | undefined;
927
927
  }> & Required<{
928
928
  _id: import("mongoose").Types.ObjectId;
929
929
  }> & {
@@ -13,9 +13,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
13
13
  createdAt: NativeDate;
14
14
  updatedAt: NativeDate;
15
15
  payment_id: string;
16
- payment_method: string;
17
16
  transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
18
17
  transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
18
+ payment_method: string;
19
19
  previous_balance: number;
20
20
  transaction_amount: number;
21
21
  running_balance: number;
@@ -34,9 +34,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
34
34
  createdAt: NativeDate;
35
35
  updatedAt: NativeDate;
36
36
  payment_id: string;
37
- payment_method: string;
38
37
  transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
39
38
  transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
39
+ payment_method: string;
40
40
  previous_balance: number;
41
41
  transaction_amount: number;
42
42
  running_balance: number;
@@ -55,9 +55,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
55
55
  createdAt: NativeDate;
56
56
  updatedAt: NativeDate;
57
57
  payment_id: string;
58
- payment_method: string;
59
58
  transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
60
59
  transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
60
+ payment_method: string;
61
61
  previous_balance: number;
62
62
  transaction_amount: number;
63
63
  running_balance: number;
@@ -11,6 +11,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
11
11
  createdAt_mins: number;
12
12
  createdAt: NativeDate;
13
13
  updatedAt: NativeDate;
14
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
15
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
14
16
  inventory_code: string;
15
17
  quantity_left: number;
16
18
  unit_price: number;
@@ -19,8 +21,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
19
21
  previous_quantity_left: number;
20
22
  previous_unit_price: number;
21
23
  previous_remaining_stock_price: number;
22
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
23
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
24
24
  warehouse_id: string;
25
25
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
26
26
  description?: string | null | undefined;
@@ -35,6 +35,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
35
35
  createdAt_mins: number;
36
36
  createdAt: NativeDate;
37
37
  updatedAt: NativeDate;
38
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
39
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
38
40
  inventory_code: string;
39
41
  quantity_left: number;
40
42
  unit_price: number;
@@ -43,8 +45,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
43
45
  previous_quantity_left: number;
44
46
  previous_unit_price: number;
45
47
  previous_remaining_stock_price: number;
46
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
47
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
48
48
  warehouse_id: string;
49
49
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
50
50
  description?: string | null | undefined;
@@ -59,6 +59,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
59
59
  createdAt_mins: number;
60
60
  createdAt: NativeDate;
61
61
  updatedAt: NativeDate;
62
+ transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
63
+ transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
62
64
  inventory_code: string;
63
65
  quantity_left: number;
64
66
  unit_price: number;
@@ -67,8 +69,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
67
69
  previous_quantity_left: number;
68
70
  previous_unit_price: number;
69
71
  previous_remaining_stock_price: number;
70
- transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
71
- transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
72
72
  warehouse_id: string;
73
73
  order_id?: import("mongoose").Types.ObjectId | null | undefined;
74
74
  description?: string | null | undefined;
@@ -12,11 +12,11 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
12
12
  createdAt: NativeDate;
13
13
  updatedAt: NativeDate;
14
14
  category_id: import("mongoose").Types.ObjectId;
15
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
15
16
  inventory_code: string;
16
17
  order_number: number;
17
18
  item_id: import("mongoose").Types.ObjectId;
18
19
  quantity: number;
19
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
20
20
  item_name: string;
21
21
  category_name: string;
22
22
  selling_price: number;
@@ -33,11 +33,11 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
33
33
  createdAt: NativeDate;
34
34
  updatedAt: NativeDate;
35
35
  category_id: import("mongoose").Types.ObjectId;
36
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
36
37
  inventory_code: string;
37
38
  order_number: number;
38
39
  item_id: import("mongoose").Types.ObjectId;
39
40
  quantity: number;
40
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
41
41
  item_name: string;
42
42
  category_name: string;
43
43
  selling_price: number;
@@ -54,11 +54,11 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
54
54
  createdAt: NativeDate;
55
55
  updatedAt: NativeDate;
56
56
  category_id: import("mongoose").Types.ObjectId;
57
+ transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
57
58
  inventory_code: string;
58
59
  order_number: number;
59
60
  item_id: import("mongoose").Types.ObjectId;
60
61
  quantity: number;
61
- transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
62
62
  item_name: string;
63
63
  category_name: string;
64
64
  selling_price: number;
@@ -0,0 +1,16 @@
1
+ import { CASH_IN_HAND_TRANSACTION_TYPE_ENUM } from '../../constants';
2
+ export interface ICashInHandTransaction {
3
+ _id: string;
4
+ tenant_id: string;
5
+ staff_id: string;
6
+ staff_name: string;
7
+ processed_by_id: string;
8
+ processed_by_name: string;
9
+ prev_cash_in_hand: number;
10
+ cash_in_hand: number;
11
+ transaction_type: CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
12
+ transaction_category: string;
13
+ note?: string | null;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ export * from './applied-order-discounts';
3
3
  export * from './brand';
4
4
  export * from './cash_drawer_sessions';
5
5
  export * from './cash_drawers';
6
+ export * from './cash_in_hand_transactions';
6
7
  export * from './cash_in_out';
7
8
  export * from './category';
8
9
  export * from './close_dates';
@@ -19,6 +19,7 @@ __exportStar(require("./applied-order-discounts"), exports);
19
19
  __exportStar(require("./brand"), exports);
20
20
  __exportStar(require("./cash_drawer_sessions"), exports);
21
21
  __exportStar(require("./cash_drawers"), exports);
22
+ __exportStar(require("./cash_in_hand_transactions"), exports);
22
23
  __exportStar(require("./cash_in_out"), exports);
23
24
  __exportStar(require("./category"), exports);
24
25
  __exportStar(require("./close_dates"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.227",
3
+ "version": "0.2.228",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",