@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,2 @@
1
+ import { ISaleOrder } from '../../schemas';
2
+ export declare function getSaleOrdersFetchedData(data: ISaleOrder[]): ISaleOrder[];
@@ -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
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './all-orders-actions';
2
2
  export * from './all-purchase-orders-actions';
3
+ export * from './all-sale-orders-actions';
3
4
  export * from './all-warehouse-invoice-actions';
4
5
  export * from './cart-actions';
5
6
  export * from './catalog-actions';
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.390",
3
+ "version": "0.2.391",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",