@managesome/eposmatic-toolkit 0.2.454 → 0.2.457
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/WORKER_ENDPOINTS.d.ts +2 -0
- package/lib/constants/WORKER_ENDPOINTS.js +3 -0
- package/lib/helpers/store/common-warehouse-internal-movement-actions.d.ts +12 -0
- package/lib/helpers/store/common-warehouse-internal-movement-actions.js +33 -0
- package/lib/helpers/store/common-warehouse-purchase-order-receipt-actions.d.ts +12 -0
- package/lib/helpers/store/common-warehouse-purchase-order-receipt-actions.js +37 -0
- package/lib/helpers/store/index.d.ts +2 -0
- package/lib/helpers/store/index.js +2 -0
- package/lib/helpers/types/workers.d.ts +16 -1
- package/lib/schemas/models/index.d.ts +1 -0
- package/lib/schemas/models/index.js +1 -0
- package/lib/schemas/models/warehouse_internal_movements.d.ts +3 -3
- package/lib/schemas/models/warehouse_inventory_lot_serial_numbers.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_deliveries.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +3 -3
- package/lib/schemas/types/index.d.ts +2 -0
- package/lib/schemas/types/index.js +2 -0
- package/package.json +1 -1
- package/lib/constants/PURCHASE_ORDER.d.ts +0 -16
- package/lib/constants/PURCHASE_ORDER.js +0 -100
- package/lib/constants/RFQ.d.ts +0 -0
- package/lib/constants/RFQ.js +0 -1
- package/lib/helpers/order/generate-purchase-order-rfq.d.ts +0 -3
- package/lib/helpers/order/generate-purchase-order-rfq.js +0 -64
- package/lib/helpers/order/generate-purchase-order.d.ts +0 -11
- package/lib/helpers/order/generate-purchase-order.js +0 -196
- package/lib/helpers/store/all-purchase-orders-actions.d.ts +0 -13
- package/lib/helpers/store/all-purchase-orders-actions.js +0 -56
- package/lib/helpers/store/all-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-sale-orders-actions.js +0 -8
- package/lib/helpers/store/all-warehouse-sale-orders-actions.d.ts +0 -2
- package/lib/helpers/store/all-warehouse-sale-orders-actions.js +0 -8
- package/lib/helpers/store/common-purchase-order-actions.d.ts +0 -31
- package/lib/helpers/store/common-purchase-order-actions.js +0 -543
- package/lib/helpers/store/common-sale-order-actions.d.ts +0 -5
- package/lib/helpers/store/common-sale-order-actions.js +0 -65
- package/lib/helpers/store/purchase-order-rfq-cart-actions.d.ts +0 -19
- package/lib/helpers/store/purchase-order-rfq-cart-actions.js +0 -373
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +0 -57
- package/lib/helpers/store/purchase-orders-cart-actions.js +0 -486
- package/lib/helpers/types/purchase-order-cart-actions.d.ts +0 -26
- package/lib/helpers/types/purchase-order-cart-actions.js +0 -2
- package/lib/helpers/utils/invoice-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/invoice-x-report-helpers.js +0 -1432
- package/lib/helpers/utils/purchase-order-engine.d.ts +0 -9
- package/lib/helpers/utils/purchase-order-engine.js +0 -34
- package/lib/helpers/utils/purchase-order-receipt-engine.d.ts +0 -149
- package/lib/helpers/utils/purchase-order-receipt-engine.js +0 -214
- package/lib/helpers/utils/purchase-order-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/purchase-order-x-report-helpers.js +0 -1440
- package/lib/helpers/utils/sale-order-x-report-helpers.d.ts +0 -44
- package/lib/helpers/utils/sale-order-x-report-helpers.js +0 -22
- package/lib/helpers/utils/sale-x-report-helpers.d.ts +0 -58
- package/lib/helpers/utils/sale-x-report-helpers.js +0 -1456
- package/lib/helpers/utils/terminal-devices-helpers.d.ts +0 -2
- package/lib/helpers/utils/terminal-devices-helpers.js +0 -13
- package/lib/helpers/utils/void-purchase-order-items-helpers.d.ts +0 -3
- package/lib/helpers/utils/void-purchase-order-items-helpers.js +0 -38
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.d.ts +0 -13
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.js +0 -22
- package/lib/schemas/models/applied-order-discounts.d.ts +0 -80
- package/lib/schemas/models/applied-order-discounts.js +0 -106
- package/lib/schemas/models/brand.d.ts +0 -45
- package/lib/schemas/models/brand.js +0 -45
- package/lib/schemas/models/category.d.ts +0 -60
- package/lib/schemas/models/category.js +0 -67
- package/lib/schemas/models/dinein_table_fingerprints.d.ts +0 -65
- package/lib/schemas/models/dinein_table_fingerprints.js +0 -85
- package/lib/schemas/models/expense_category.d.ts +0 -83
- package/lib/schemas/models/expense_category.js +0 -64
- package/lib/schemas/models/internal_movements.d.ts +0 -357
- package/lib/schemas/models/internal_movements.js +0 -323
- package/lib/schemas/models/inventory.d.ts +0 -99
- package/lib/schemas/models/inventory.js +0 -87
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +0 -154
- package/lib/schemas/models/inventory_lot_serial_numbers.js +0 -193
- package/lib/schemas/models/item.d.ts +0 -11269
- package/lib/schemas/models/item.js +0 -333
- package/lib/schemas/models/menu.d.ts +0 -941
- package/lib/schemas/models/menu.js +0 -69
- package/lib/schemas/models/order.d.ts +0 -15437
- package/lib/schemas/models/order.js +0 -891
- package/lib/schemas/models/purchase_order_receipts.d.ts +0 -165
- package/lib/schemas/models/purchase_order_receipts.js +0 -151
- package/lib/schemas/models/purchase_order_rfq.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfq.js +0 -328
- package/lib/schemas/models/purchase_order_rfqs.d.ts +0 -1959
- package/lib/schemas/models/purchase_order_rfqs.js +0 -328
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +0 -234
- package/lib/schemas/models/purchase_order_vendor_returns.js +0 -188
- package/lib/schemas/models/purchase_orders.d.ts +0 -2678
- package/lib/schemas/models/purchase_orders.js +0 -336
- package/lib/schemas/models/rider.d.ts +0 -65
- package/lib/schemas/models/rider.js +0 -74
- package/lib/schemas/models/sale_order_deliveries.d.ts +0 -167
- package/lib/schemas/models/sale_order_deliveries.js +0 -155
- package/lib/schemas/models/sale_order_invoices.d.ts +0 -227
- package/lib/schemas/models/sale_order_invoices.js +0 -206
- package/lib/schemas/models/sale_order_rfq.d.ts +0 -1938
- package/lib/schemas/models/sale_order_rfq.js +0 -309
- package/lib/schemas/models/sale_orders.d.ts +0 -1943
- package/lib/schemas/models/sale_orders.js +0 -324
- package/lib/schemas/models/tenant.d.ts +0 -528
- package/lib/schemas/models/tenant.js +0 -755
- package/lib/schemas/models/tenant_staff.d.ts +0 -932
- package/lib/schemas/models/tenant_staff.js +0 -96
- package/lib/schemas/models/track_order_number.d.ts +0 -413
- package/lib/schemas/models/track_order_number.js +0 -45
- package/lib/schemas/models/void_purchase_order_items.d.ts +0 -176
- package/lib/schemas/models/void_purchase_order_items.js +0 -177
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +0 -176
- package/lib/schemas/models/void_warehouse_invoice_items.js +0 -176
- package/lib/schemas/models/wallet.d.ts +0 -38
- package/lib/schemas/models/wallet.js +0 -37
- package/lib/schemas/models/warehouse-communications.d.ts +0 -228
- package/lib/schemas/models/warehouse-communications.js +0 -216
- package/lib/schemas/models/warehouse.d.ts +0 -162
- package/lib/schemas/models/warehouse.js +0 -222
- package/lib/schemas/models/warehouse_staff.d.ts +0 -65
- package/lib/schemas/models/warehouse_staff.js +0 -78
- package/lib/schemas/models/warehouse_track_order_number.d.ts +0 -50
- package/lib/schemas/models/warehouse_track_order_number.js +0 -52
- package/lib/schemas/types/applied-order-discounts.d.ts +0 -22
- package/lib/schemas/types/applied-order-discounts.js +0 -2
- package/lib/schemas/types/brand.d.ts +0 -32
- package/lib/schemas/types/brand.js +0 -2
- package/lib/schemas/types/category.d.ts +0 -15
- package/lib/schemas/types/category.js +0 -2
- package/lib/schemas/types/expense_category.d.ts +0 -20
- package/lib/schemas/types/expense_category.js +0 -2
- package/lib/schemas/types/internal_movements.d.ts +0 -73
- package/lib/schemas/types/internal_movements.js +0 -2
- package/lib/schemas/types/inventory.d.ts +0 -48
- package/lib/schemas/types/inventory.js +0 -2
- package/lib/schemas/types/inventory_lot_serial_numbers.d.ts +0 -85
- package/lib/schemas/types/inventory_lot_serial_numbers.js +0 -4
- package/lib/schemas/types/item.d.ts +0 -89
- package/lib/schemas/types/item.js +0 -2
- package/lib/schemas/types/menu.d.ts +0 -17
- package/lib/schemas/types/menu.js +0 -2
- package/lib/schemas/types/order.d.ts +0 -242
- package/lib/schemas/types/order.js +0 -2
- package/lib/schemas/types/purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/purchase_order_common.js +0 -2
- package/lib/schemas/types/purchase_order_receipts.d.ts +0 -39
- package/lib/schemas/types/purchase_order_receipts.js +0 -21
- package/lib/schemas/types/purchase_order_rfq.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfq.js +0 -2
- package/lib/schemas/types/purchase_order_rfqs.d.ts +0 -33
- package/lib/schemas/types/purchase_order_rfqs.js +0 -2
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +0 -49
- package/lib/schemas/types/purchase_order_vendor_returns.js +0 -42
- package/lib/schemas/types/purchase_orders.d.ts +0 -33
- package/lib/schemas/types/purchase_orders.js +0 -2
- package/lib/schemas/types/rider.d.ts +0 -16
- package/lib/schemas/types/rider.js +0 -2
- package/lib/schemas/types/sale_order_common.d.ts +0 -39
- package/lib/schemas/types/sale_order_common.js +0 -2
- package/lib/schemas/types/sale_order_deliveries.d.ts +0 -67
- package/lib/schemas/types/sale_order_deliveries.js +0 -2
- package/lib/schemas/types/sale_order_invoices.d.ts +0 -49
- package/lib/schemas/types/sale_order_invoices.js +0 -2
- package/lib/schemas/types/sale_order_rfq.d.ts +0 -25
- package/lib/schemas/types/sale_order_rfq.js +0 -2
- package/lib/schemas/types/sale_orders.d.ts +0 -30
- package/lib/schemas/types/sale_orders.js +0 -2
- package/lib/schemas/types/tenant.d.ts +0 -205
- package/lib/schemas/types/tenant.js +0 -2
- package/lib/schemas/types/tenant_staff.d.ts +0 -22
- package/lib/schemas/types/tenant_staff.js +0 -2
- package/lib/schemas/types/track_order_number.d.ts +0 -10
- package/lib/schemas/types/track_order_number.js +0 -2
- package/lib/schemas/types/void_purchase_order_items.d.ts +0 -37
- package/lib/schemas/types/void_purchase_order_items.js +0 -2
- package/lib/schemas/types/void_warehouse_invoice_items.d.ts +0 -37
- package/lib/schemas/types/void_warehouse_invoice_items.js +0 -2
- package/lib/schemas/types/wallet.d.ts +0 -7
- package/lib/schemas/types/wallet.js +0 -2
- package/lib/schemas/types/warehouse-communications.d.ts +0 -54
- package/lib/schemas/types/warehouse-communications.js +0 -2
- package/lib/schemas/types/warehouse.d.ts +0 -49
- package/lib/schemas/types/warehouse.js +0 -2
- package/lib/schemas/types/warehouse_purchase_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_purchase_order_common.js +0 -2
- package/lib/schemas/types/warehouse_sale_order_common.d.ts +0 -39
- package/lib/schemas/types/warehouse_sale_order_common.js +0 -2
- package/lib/schemas/types/warehouse_staff.d.ts +0 -17
- package/lib/schemas/types/warehouse_staff.js +0 -2
- package/lib/schemas/types/warehouse_track_order_number.d.ts +0 -11
- package/lib/schemas/types/warehouse_track_order_number.js +0 -2
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { COUNTRY_ALPHA_2_ENUM, CURRENCY_SYMBOL_ENUM, ISaleOrderXReport } from '../../constants';
|
|
2
|
-
import { IUsableSaleXReportChannel, IUsableSaleXReportSubChannel } from './sale-x-report-helpers';
|
|
3
|
-
export type IUsableSaleOrderXReportSubChannel = IUsableSaleXReportSubChannel;
|
|
4
|
-
export type IUsableSaleOrderXReportChannel = IUsableSaleXReportChannel;
|
|
5
|
-
export interface IUsableSaleOrderXReportData {
|
|
6
|
-
_id: string;
|
|
7
|
-
title: string;
|
|
8
|
-
netSale: number;
|
|
9
|
-
netWithoutGst: number;
|
|
10
|
-
netWithoutGstSubtitle: string;
|
|
11
|
-
totalOrders: number;
|
|
12
|
-
unpaidOrders: number;
|
|
13
|
-
unpaidAmount: number;
|
|
14
|
-
amountCollected: number;
|
|
15
|
-
itemSales: number;
|
|
16
|
-
channels: IUsableSaleOrderXReportChannel[];
|
|
17
|
-
}
|
|
18
|
-
export interface ISaleOrderXReportProps {
|
|
19
|
-
from: Date;
|
|
20
|
-
to: Date;
|
|
21
|
-
clientWiseData: IUsableSaleOrderXReportData[];
|
|
22
|
-
combinedData?: IUsableSaleOrderXReportData;
|
|
23
|
-
currency_symbol: CURRENCY_SYMBOL_ENUM | undefined;
|
|
24
|
-
warehouseName: string | undefined;
|
|
25
|
-
isFilterApplied: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface IUsableSaleOrderXReportResult {
|
|
28
|
-
clientWiseData: IUsableSaleOrderXReportData[];
|
|
29
|
-
combinedData: IUsableSaleOrderXReportData;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Transforms raw sale-order x-report aggregation output into
|
|
33
|
-
* Delegates to the sale-x-report data pipeline which derives
|
|
34
|
-
* netSale from payment data and handles GST consistently.
|
|
35
|
-
*/
|
|
36
|
-
export declare const getSaleOrderXReportData: (data: ISaleOrderXReport, currencySymbol: CURRENCY_SYMBOL_ENUM | undefined, countryAlpha2: COUNTRY_ALPHA_2_ENUM | undefined) => IUsableSaleOrderXReportResult;
|
|
37
|
-
/**
|
|
38
|
-
* Generates an HTML x-report for a sale order.
|
|
39
|
-
* Delegates to the sale-x-report HTML generator.
|
|
40
|
-
*/
|
|
41
|
-
export declare const getSaleOrderXReportHtml: (props: ISaleOrderXReportProps & {
|
|
42
|
-
width?: number;
|
|
43
|
-
monochrome?: boolean;
|
|
44
|
-
}) => string;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSaleOrderXReportHtml = exports.getSaleOrderXReportData = void 0;
|
|
4
|
-
const sale_x_report_helpers_1 = require("./sale-x-report-helpers");
|
|
5
|
-
// --- Functions ---
|
|
6
|
-
/**
|
|
7
|
-
* Transforms raw sale-order x-report aggregation output into
|
|
8
|
-
* Delegates to the sale-x-report data pipeline which derives
|
|
9
|
-
* netSale from payment data and handles GST consistently.
|
|
10
|
-
*/
|
|
11
|
-
const getSaleOrderXReportData = (data, currencySymbol, countryAlpha2) => {
|
|
12
|
-
return (0, sale_x_report_helpers_1.getSaleXReportData)(data, currencySymbol, countryAlpha2);
|
|
13
|
-
};
|
|
14
|
-
exports.getSaleOrderXReportData = getSaleOrderXReportData;
|
|
15
|
-
/**
|
|
16
|
-
* Generates an HTML x-report for a sale order.
|
|
17
|
-
* Delegates to the sale-x-report HTML generator.
|
|
18
|
-
*/
|
|
19
|
-
const getSaleOrderXReportHtml = (props) => {
|
|
20
|
-
return (0, sale_x_report_helpers_1.getSaleXReportHtml)(props);
|
|
21
|
-
};
|
|
22
|
-
exports.getSaleOrderXReportHtml = getSaleOrderXReportHtml;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { COUNTRY_ALPHA_2_ENUM, CURRENCY_SYMBOL_ENUM, ISaleOrderXReport } from '../../constants';
|
|
2
|
-
interface IFooterDetail {
|
|
3
|
-
amount: number;
|
|
4
|
-
count: number;
|
|
5
|
-
title: string;
|
|
6
|
-
sortIndex: number;
|
|
7
|
-
}
|
|
8
|
-
export interface IUsableSaleXReportSubChannel {
|
|
9
|
-
_id: string;
|
|
10
|
-
ref: string | number;
|
|
11
|
-
title: string;
|
|
12
|
-
count: number;
|
|
13
|
-
amount: number;
|
|
14
|
-
strikeThrough?: boolean;
|
|
15
|
-
bold?: boolean;
|
|
16
|
-
sortIndex: number;
|
|
17
|
-
}
|
|
18
|
-
export interface IUsableSaleXReportChannel {
|
|
19
|
-
_id: string;
|
|
20
|
-
ref: string;
|
|
21
|
-
title: string;
|
|
22
|
-
sortIndex: number;
|
|
23
|
-
footerDetails: IFooterDetail[];
|
|
24
|
-
subChannels: IUsableSaleXReportSubChannel[];
|
|
25
|
-
}
|
|
26
|
-
export interface IUsableSaleXReportData {
|
|
27
|
-
_id: string;
|
|
28
|
-
title: string;
|
|
29
|
-
netSale: number;
|
|
30
|
-
netWithoutGst: number;
|
|
31
|
-
netWithoutGstSubtitle: string;
|
|
32
|
-
totalOrders: number;
|
|
33
|
-
unpaidOrders: number;
|
|
34
|
-
unpaidAmount: number;
|
|
35
|
-
amountCollected: number;
|
|
36
|
-
itemSales: number;
|
|
37
|
-
channels: IUsableSaleXReportChannel[];
|
|
38
|
-
}
|
|
39
|
-
export interface ISaleXReportProps {
|
|
40
|
-
from: Date;
|
|
41
|
-
to: Date;
|
|
42
|
-
clientWiseData: IUsableSaleXReportData[];
|
|
43
|
-
combinedData?: IUsableSaleXReportData;
|
|
44
|
-
currency_symbol: CURRENCY_SYMBOL_ENUM | undefined;
|
|
45
|
-
warehouseName: string | undefined;
|
|
46
|
-
isFilterApplied: boolean;
|
|
47
|
-
}
|
|
48
|
-
interface IUsableData {
|
|
49
|
-
clientWiseData: IUsableSaleXReportData[];
|
|
50
|
-
combinedData: IUsableSaleXReportData;
|
|
51
|
-
}
|
|
52
|
-
interface IProps extends ISaleXReportProps {
|
|
53
|
-
width?: number;
|
|
54
|
-
monochrome?: boolean;
|
|
55
|
-
}
|
|
56
|
-
export declare function getSaleXReportHtml({ width, monochrome, clientWiseData, combinedData, currency_symbol, from, to, warehouseName, isFilterApplied, }: IProps): string;
|
|
57
|
-
export declare const getSaleXReportData: (data: ISaleOrderXReport, currencySymbol: CURRENCY_SYMBOL_ENUM | undefined, countryAlpha2: COUNTRY_ALPHA_2_ENUM | undefined) => IUsableData;
|
|
58
|
-
export {};
|