@freedom_sky/feige-lib 5.15.0 → 5.17.0

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.
@@ -4,6 +4,7 @@ export interface PrinteDishInfo {
4
4
  count: number;
5
5
  price: number;
6
6
  specifications: string[];
7
+ note?: string;
7
8
  }
8
9
  /**
9
10
  *
@@ -30,6 +30,7 @@ function getDishArrFromContents(_a) {
30
30
  contents: order.content,
31
31
  }) / dishGroup.count,
32
32
  specifications: selectedNames,
33
+ note: dishGroup.note,
33
34
  };
34
35
  });
35
36
  if (showBuffet && order.type === index_1.OrderTypeEnum.Buffet) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freedom_sky/feige-lib",
3
- "version": "5.15.0",
3
+ "version": "5.17.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -1,89 +1,89 @@
1
- import { DishSnapshot } from '../store/dishSnapshot.interface';
2
- import { PrintStatusEnum } from '../../enum/printer.enum';
3
- import { OrderTypeEnum } from '../../enum/order.enum';
4
- import { TaxTypeEnum } from '../../enum/tax.enum';
5
-
6
- export interface BaseOrder {
7
- readonly _id: string;
8
- readonly serialOrderId: string;
9
- readonly type: OrderTypeEnum;
10
- readonly note?: string;
11
- readonly merchantNote?: string;
12
- readonly printerPrinted: string[];
13
- readonly kdsPrinted: string[];
14
- readonly printStatus: PrintStatusEnum;
15
- readonly content: Content[];
16
- readonly storeId: string;
17
- readonly clientId: string;
18
- readonly date: Date | string;
19
- readonly autoCleanTime?: Date | string;
20
- readonly status: string;
21
- readonly checkoutFirst: boolean;
22
- readonly salesmanId: string;
23
- readonly __v: number;
24
- readonly process?: Process[];
25
- readonly checkout?: Checkout[];
26
- readonly payed: boolean;
27
- readonly retreated?: boolean;
28
- readonly noTax?: boolean;
29
- readonly taxType?: TaxTypeEnum;
30
- readonly priceHaveTaxBindOrderTaxes?: {
31
- name: string;
32
- rate: number;
33
- }[];
34
- readonly taxes?: {
35
- name: string;
36
- volume: number;
37
- }[];
38
- }
39
-
40
- export interface Content {
41
- _id?: string;
42
- dishSnapshot: DishSnapshot;
43
- count: number;
44
- weight?: number;
45
- note?: string;
46
- delivering?: number;
47
- finished?: number;
48
- retreated?: number;
49
- retreatReason?: string;
50
- date?: Date | string;
51
- }
52
-
53
- export interface Task {
54
- _id: string;
55
- type: string;
56
- date: Date | string;
57
- dishGroupId?: string;
58
- status: string;
59
- operatorId?: string;
60
- outletNum?: number;
61
- count?: number;
62
- callReason?: string;
63
- content?: Content[];
64
- valet?: boolean;
65
- printerPrinted: string[];
66
- kdsPrinted: string[];
67
- printStatus: PrintStatusEnum;
68
- clientId: string;
69
- }
70
-
71
- export interface Process {
72
- readonly _id?: string;
73
- readonly type: string;
74
- readonly value: number;
75
- readonly volume?: number;
76
- }
77
-
78
- export interface Checkout {
79
- readonly _id?: string;
80
- readonly type: string;
81
- readonly customType?: string;
82
- readonly amount: number;
83
- readonly realCash?: number;
84
- readonly retreated?: boolean;
85
- readonly date?: Date | string;
86
- readonly payRecordId?: string;
87
- readonly memberTransactionId?: string;
88
- readonly operatorId?: string;
89
- }
1
+ import { DishSnapshot } from '../store/dishSnapshot.interface';
2
+ import { PrintStatusEnum } from '../../enum/printer.enum';
3
+ import { OrderTypeEnum } from '../../enum/order.enum';
4
+ import { TaxTypeEnum } from '../../enum/tax.enum';
5
+
6
+ export interface BaseOrder {
7
+ readonly _id: string;
8
+ readonly serialOrderId: string;
9
+ readonly type: OrderTypeEnum;
10
+ readonly note?: string;
11
+ readonly merchantNote?: string;
12
+ readonly printerPrinted: string[];
13
+ readonly kdsPrinted: string[];
14
+ readonly printStatus: PrintStatusEnum;
15
+ readonly content: Content[];
16
+ readonly storeId: string;
17
+ readonly clientId: string;
18
+ readonly date: Date | string;
19
+ readonly autoCleanTime?: Date | string;
20
+ readonly status: string;
21
+ readonly checkoutFirst: boolean;
22
+ readonly salesmanId: string;
23
+ readonly __v: number;
24
+ readonly process?: Process[];
25
+ readonly checkout?: Checkout[];
26
+ readonly payed: boolean;
27
+ readonly retreated?: boolean;
28
+ readonly noTax?: boolean;
29
+ readonly taxType?: TaxTypeEnum;
30
+ readonly priceHaveTaxBindOrderTaxes?: {
31
+ name: string;
32
+ rate: number;
33
+ }[];
34
+ readonly taxes?: {
35
+ name: string;
36
+ volume: number;
37
+ }[];
38
+ }
39
+
40
+ export interface Content {
41
+ _id?: string;
42
+ dishSnapshot: DishSnapshot;
43
+ count: number;
44
+ weight?: number;
45
+ note?: string;
46
+ delivering?: number;
47
+ finished?: number;
48
+ retreated?: number;
49
+ retreatReason?: string;
50
+ date?: Date | string;
51
+ }
52
+
53
+ export interface Task {
54
+ _id: string;
55
+ type: string;
56
+ date: Date | string;
57
+ dishGroupId?: string;
58
+ status: string;
59
+ operatorId?: string;
60
+ outletNum?: number;
61
+ count?: number;
62
+ callReason?: string;
63
+ content?: Content[];
64
+ valet?: boolean;
65
+ printerPrinted: string[];
66
+ kdsPrinted: string[];
67
+ printStatus: PrintStatusEnum;
68
+ clientId: string;
69
+ }
70
+
71
+ export interface Process {
72
+ readonly _id?: string;
73
+ readonly type: string;
74
+ readonly value: number;
75
+ readonly volume?: number;
76
+ }
77
+
78
+ export interface Checkout {
79
+ readonly _id?: string;
80
+ readonly type: string;
81
+ readonly customType?: string;
82
+ readonly amount: number;
83
+ readonly realCash?: number;
84
+ readonly retreated?: boolean;
85
+ readonly date?: Date | string;
86
+ readonly payRecordId?: string;
87
+ readonly memberTransactionId?: string;
88
+ readonly operatorId?: string;
89
+ }
@@ -14,6 +14,7 @@ export interface PrinteDishInfo {
14
14
  count: number;
15
15
  price: number;
16
16
  specifications: string[];
17
+ note?: string;
17
18
  }
18
19
 
19
20
  /**
@@ -37,7 +38,7 @@ export function getDishArrFromContents({
37
38
  };
38
39
  addSpecificationsAfterName?: boolean;
39
40
  }): PrinteDishInfo[] {
40
- const result = contents.map((dishGroup) => {
41
+ const result: PrinteDishInfo[] = contents.map((dishGroup) => {
41
42
  const selectedNames = [];
42
43
  dishGroup.dishSnapshot.selectedSpecifications.forEach((selectedItems) => {
43
44
  selectedItems.content.forEach((tag) => {
@@ -63,6 +64,7 @@ export function getDishArrFromContents({
63
64
  contents: order.content,
64
65
  }) / dishGroup.count,
65
66
  specifications: selectedNames,
67
+ note: dishGroup.note,
66
68
  };
67
69
  });
68
70
  if (showBuffet && order.type === OrderTypeEnum.Buffet) {