@managesome/eposmatic-toolkit 0.2.390 → 0.2.391
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.
|
@@ -191,6 +191,18 @@ export interface IInvoiceItemSales {
|
|
|
191
191
|
category_id: string;
|
|
192
192
|
category_name: string;
|
|
193
193
|
}
|
|
194
|
+
export interface ISaleOrderItemSales {
|
|
195
|
+
_id: string;
|
|
196
|
+
item_id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
count: number;
|
|
199
|
+
itemNetAmount: number;
|
|
200
|
+
itemGrossAmount: number;
|
|
201
|
+
itemGstAmount: number;
|
|
202
|
+
itemDiscountAmount: number;
|
|
203
|
+
category_id: string;
|
|
204
|
+
category_name: string;
|
|
205
|
+
}
|
|
194
206
|
export declare enum PURCHASE_ORDER_X_REPORT_TYPE_ENUM {
|
|
195
207
|
TOTAL_SALES = "TOTAL_SALES",
|
|
196
208
|
GST = "GST",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSaleOrdersFetchedData = getSaleOrdersFetchedData;
|
|
4
|
+
const common_order_actions_1 = require("./common-order-actions");
|
|
5
|
+
const common_sale_order_actions_1 = require("./common-sale-order-actions");
|
|
6
|
+
function getSaleOrdersFetchedData(data) {
|
|
7
|
+
return data.map((order) => (0, common_sale_order_actions_1.getSaleOrderWithPrice)(order, false)).sort(common_order_actions_1.sortByCreatedAt);
|
|
8
|
+
}
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./all-orders-actions"), exports);
|
|
18
18
|
__exportStar(require("./all-purchase-orders-actions"), exports);
|
|
19
|
+
__exportStar(require("./all-sale-orders-actions"), exports);
|
|
19
20
|
__exportStar(require("./all-warehouse-invoice-actions"), exports);
|
|
20
21
|
__exportStar(require("./cart-actions"), exports);
|
|
21
22
|
__exportStar(require("./catalog-actions"), exports);
|