@freedom_sky/feige-lib 5.17.0 → 5.19.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.
- package/dist/const/const.js +0 -49
- package/dist/enum/printer.enum.d.ts +0 -1
- package/dist/enum/printer.enum.js +0 -1
- package/dist/interfaces/common/language.interface.d.ts +0 -2
- package/dist/interfaces/store/store.interface.d.ts +13 -0
- package/package.json +1 -1
- package/src/const/const.ts +3 -49
- package/src/enum/printer.enum.ts +0 -1
- package/src/interfaces/common/language.interface.ts +0 -2
- package/src/interfaces/order/baseOrder.interface.ts +89 -89
- package/src/interfaces/store/store.interface.ts +316 -303
package/src/const/const.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateFormat } from '../enum/common.enum';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { ContinentEnum } from '../enum/continent.enum';
|
|
4
4
|
import { LanguageItem } from '../interfaces/common/language.interface';
|
|
5
5
|
class Const {
|
|
@@ -192,7 +192,6 @@ class Const {
|
|
|
192
192
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
193
193
|
defaultAreaCode: '86',
|
|
194
194
|
codepage: 'cp936',
|
|
195
|
-
defaultPrintEncodeType: EncodeTypeEnum.CODEPAGE,
|
|
196
195
|
},
|
|
197
196
|
{
|
|
198
197
|
name: 'English',
|
|
@@ -202,7 +201,6 @@ class Const {
|
|
|
202
201
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
203
202
|
defaultAreaCode: '61',
|
|
204
203
|
codepage: 'cp936',
|
|
205
|
-
defaultPrintEncodeType: EncodeTypeEnum.CODEPAGE,
|
|
206
204
|
},
|
|
207
205
|
{
|
|
208
206
|
name: '漢語',
|
|
@@ -212,7 +210,6 @@ class Const {
|
|
|
212
210
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
213
211
|
defaultAreaCode: '852',
|
|
214
212
|
codepage: 'cp936',
|
|
215
|
-
defaultPrintEncodeType: EncodeTypeEnum.CODEPAGE,
|
|
216
213
|
},
|
|
217
214
|
{
|
|
218
215
|
name: 'ئۇيغۇرچە',
|
|
@@ -225,7 +222,6 @@ class Const {
|
|
|
225
222
|
defaultAreaCode: '86',
|
|
226
223
|
rtl: true,
|
|
227
224
|
codepage: 'utf-8',
|
|
228
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
229
225
|
},
|
|
230
226
|
{
|
|
231
227
|
name: 'Tiếng Việt',
|
|
@@ -235,7 +231,6 @@ class Const {
|
|
|
235
231
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
236
232
|
defaultAreaCode: '84',
|
|
237
233
|
codepage: 'cp1258',
|
|
238
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
239
234
|
},
|
|
240
235
|
{
|
|
241
236
|
name: 'Deutsch',
|
|
@@ -245,7 +240,6 @@ class Const {
|
|
|
245
240
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
246
241
|
defaultAreaCode: '49',
|
|
247
242
|
codepage: 'cp850',
|
|
248
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
249
243
|
},
|
|
250
244
|
{
|
|
251
245
|
name: '日本語',
|
|
@@ -255,7 +249,6 @@ class Const {
|
|
|
255
249
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
256
250
|
defaultAreaCode: '81',
|
|
257
251
|
codepage: 'cp936',
|
|
258
|
-
defaultPrintEncodeType: EncodeTypeEnum.CODEPAGE,
|
|
259
252
|
},
|
|
260
253
|
{
|
|
261
254
|
name: '한국어',
|
|
@@ -265,7 +258,6 @@ class Const {
|
|
|
265
258
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
266
259
|
defaultAreaCode: '82',
|
|
267
260
|
codepage: 'cp949',
|
|
268
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
269
261
|
},
|
|
270
262
|
{
|
|
271
263
|
name: 'Español',
|
|
@@ -275,7 +267,6 @@ class Const {
|
|
|
275
267
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
276
268
|
defaultAreaCode: '34',
|
|
277
269
|
codepage: 'cp850',
|
|
278
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
279
270
|
},
|
|
280
271
|
{
|
|
281
272
|
name: 'Português',
|
|
@@ -285,7 +276,6 @@ class Const {
|
|
|
285
276
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
286
277
|
defaultAreaCode: '351',
|
|
287
278
|
codepage: 'cp850',
|
|
288
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
289
279
|
},
|
|
290
280
|
{
|
|
291
281
|
name: 'Français',
|
|
@@ -295,7 +285,6 @@ class Const {
|
|
|
295
285
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
296
286
|
defaultAreaCode: '33',
|
|
297
287
|
codepage: 'cp850',
|
|
298
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
299
288
|
},
|
|
300
289
|
{
|
|
301
290
|
name: 'Italiano',
|
|
@@ -305,7 +294,6 @@ class Const {
|
|
|
305
294
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
306
295
|
defaultAreaCode: '39',
|
|
307
296
|
codepage: 'cp850',
|
|
308
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
309
297
|
},
|
|
310
298
|
{
|
|
311
299
|
name: 'قازاقشا',
|
|
@@ -318,7 +306,6 @@ class Const {
|
|
|
318
306
|
defaultAreaCode: '86',
|
|
319
307
|
rtl: true,
|
|
320
308
|
codepage: 'utf-8',
|
|
321
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
322
309
|
},
|
|
323
310
|
{
|
|
324
311
|
name: 'čeština',
|
|
@@ -328,7 +315,6 @@ class Const {
|
|
|
328
315
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
329
316
|
defaultAreaCode: '420',
|
|
330
317
|
codepage: 'cp852',
|
|
331
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
332
318
|
},
|
|
333
319
|
{
|
|
334
320
|
name: 'ភាសាខ្មែរ', // Khmer
|
|
@@ -338,7 +324,6 @@ class Const {
|
|
|
338
324
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
339
325
|
defaultAreaCode: '855',
|
|
340
326
|
codepage: 'utf-8',
|
|
341
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
342
327
|
},
|
|
343
328
|
{
|
|
344
329
|
name: 'ไทย', // Thai
|
|
@@ -348,7 +333,6 @@ class Const {
|
|
|
348
333
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
349
334
|
defaultAreaCode: '66',
|
|
350
335
|
codepage: 'utf-8',
|
|
351
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
352
336
|
},
|
|
353
337
|
{
|
|
354
338
|
name: 'ລາວ', // Lao
|
|
@@ -358,7 +342,6 @@ class Const {
|
|
|
358
342
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
359
343
|
defaultAreaCode: '856',
|
|
360
344
|
codepage: 'utf-8',
|
|
361
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
362
345
|
},
|
|
363
346
|
{
|
|
364
347
|
name: 'မြန်မာစာ', // Burmese
|
|
@@ -368,7 +351,6 @@ class Const {
|
|
|
368
351
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
369
352
|
defaultAreaCode: '95',
|
|
370
353
|
codepage: 'utf-8',
|
|
371
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
372
354
|
},
|
|
373
355
|
{
|
|
374
356
|
name: 'Bahasa Melayu', // Malay
|
|
@@ -378,7 +360,6 @@ class Const {
|
|
|
378
360
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
379
361
|
defaultAreaCode: '60',
|
|
380
362
|
codepage: 'cp1252',
|
|
381
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
382
363
|
},
|
|
383
364
|
{
|
|
384
365
|
name: 'Filipino', // Filipino
|
|
@@ -388,7 +369,6 @@ class Const {
|
|
|
388
369
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
389
370
|
defaultAreaCode: '63',
|
|
390
371
|
codepage: 'cp1252',
|
|
391
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
392
372
|
},
|
|
393
373
|
{
|
|
394
374
|
name: 'Polski', // Polish
|
|
@@ -398,7 +378,6 @@ class Const {
|
|
|
398
378
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
399
379
|
defaultAreaCode: '48',
|
|
400
380
|
codepage: 'cp852',
|
|
401
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
402
381
|
},
|
|
403
382
|
{
|
|
404
383
|
name: 'Nederlands', // Dutch
|
|
@@ -408,7 +387,6 @@ class Const {
|
|
|
408
387
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
409
388
|
defaultAreaCode: '31',
|
|
410
389
|
codepage: 'cp850',
|
|
411
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
412
390
|
},
|
|
413
391
|
{
|
|
414
392
|
name: 'Magyar', // Hungarian
|
|
@@ -418,7 +396,6 @@ class Const {
|
|
|
418
396
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
419
397
|
defaultAreaCode: '36',
|
|
420
398
|
codepage: 'cp852',
|
|
421
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
422
399
|
},
|
|
423
400
|
{
|
|
424
401
|
name: 'Íslenska', // Icelandic
|
|
@@ -428,7 +405,6 @@ class Const {
|
|
|
428
405
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
429
406
|
defaultAreaCode: '354',
|
|
430
407
|
codepage: 'cp850',
|
|
431
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
432
408
|
},
|
|
433
409
|
{
|
|
434
410
|
name: 'Norsk', // Norwegian
|
|
@@ -438,7 +414,6 @@ class Const {
|
|
|
438
414
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
439
415
|
defaultAreaCode: '47',
|
|
440
416
|
codepage: 'cp850',
|
|
441
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
442
417
|
},
|
|
443
418
|
{
|
|
444
419
|
name: 'Sámegiella', // Sami
|
|
@@ -448,7 +423,6 @@ class Const {
|
|
|
448
423
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
449
424
|
defaultAreaCode: '47',
|
|
450
425
|
codepage: 'utf-8',
|
|
451
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
452
426
|
},
|
|
453
427
|
{
|
|
454
428
|
name: 'Suomi', // Finnish
|
|
@@ -458,7 +432,6 @@ class Const {
|
|
|
458
432
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
459
433
|
defaultAreaCode: '358',
|
|
460
434
|
codepage: 'cp850',
|
|
461
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
462
435
|
},
|
|
463
436
|
{
|
|
464
437
|
name: 'Svenska', // Swedish
|
|
@@ -468,7 +441,6 @@ class Const {
|
|
|
468
441
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
469
442
|
defaultAreaCode: '46',
|
|
470
443
|
codepage: 'cp850',
|
|
471
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
472
444
|
},
|
|
473
445
|
{
|
|
474
446
|
name: 'Kiswahili', // Swahili
|
|
@@ -478,7 +450,6 @@ class Const {
|
|
|
478
450
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
479
451
|
defaultAreaCode: '254',
|
|
480
452
|
codepage: 'utf-8',
|
|
481
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
482
453
|
},
|
|
483
454
|
{
|
|
484
455
|
name: 'Српски', // Serbian (Cyrillic)
|
|
@@ -488,7 +459,6 @@ class Const {
|
|
|
488
459
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
489
460
|
defaultAreaCode: '381',
|
|
490
461
|
codepage: 'cp1251',
|
|
491
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
492
462
|
},
|
|
493
463
|
{
|
|
494
464
|
name: 'Română', // Romanian
|
|
@@ -498,7 +468,6 @@ class Const {
|
|
|
498
468
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
499
469
|
defaultAreaCode: '40',
|
|
500
470
|
codepage: 'cp1250',
|
|
501
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
502
471
|
},
|
|
503
472
|
{
|
|
504
473
|
name: 'Ελληνικά', // Greek
|
|
@@ -508,7 +477,6 @@ class Const {
|
|
|
508
477
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
509
478
|
defaultAreaCode: '30',
|
|
510
479
|
codepage: 'cp1253',
|
|
511
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
512
480
|
},
|
|
513
481
|
{
|
|
514
482
|
name: 'العربية',
|
|
@@ -520,7 +488,6 @@ class Const {
|
|
|
520
488
|
defaultAreaCode: '971',
|
|
521
489
|
rtl: true,
|
|
522
490
|
codepage: 'utf-8',
|
|
523
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
524
491
|
},
|
|
525
492
|
{
|
|
526
493
|
name: 'Українська', // Ukrainian
|
|
@@ -530,7 +497,6 @@ class Const {
|
|
|
530
497
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
531
498
|
defaultAreaCode: '380',
|
|
532
499
|
codepage: 'cp1251',
|
|
533
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
534
500
|
},
|
|
535
501
|
{
|
|
536
502
|
name: 'Български', // Bulgarian
|
|
@@ -540,7 +506,6 @@ class Const {
|
|
|
540
506
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
541
507
|
defaultAreaCode: '359',
|
|
542
508
|
codepage: 'cp1251',
|
|
543
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
544
509
|
},
|
|
545
510
|
{
|
|
546
511
|
name: 'Hrvatski', // Croatian
|
|
@@ -550,7 +515,6 @@ class Const {
|
|
|
550
515
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
551
516
|
defaultAreaCode: '385',
|
|
552
517
|
codepage: 'cp1250',
|
|
553
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
554
518
|
},
|
|
555
519
|
{
|
|
556
520
|
name: 'Slovenščina', // Slovenian
|
|
@@ -560,7 +524,6 @@ class Const {
|
|
|
560
524
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
561
525
|
defaultAreaCode: '386',
|
|
562
526
|
codepage: 'cp1250',
|
|
563
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
564
527
|
},
|
|
565
528
|
{
|
|
566
529
|
name: 'Slovenský', // Slovak
|
|
@@ -570,7 +533,6 @@ class Const {
|
|
|
570
533
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
571
534
|
defaultAreaCode: '421',
|
|
572
535
|
codepage: 'cp1250',
|
|
573
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
574
536
|
},
|
|
575
537
|
{
|
|
576
538
|
name: 'Lietuvių', // Lithuanian
|
|
@@ -580,7 +542,6 @@ class Const {
|
|
|
580
542
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
581
543
|
defaultAreaCode: '370',
|
|
582
544
|
codepage: 'cp1257',
|
|
583
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
584
545
|
},
|
|
585
546
|
{
|
|
586
547
|
name: 'Türkçe', // Turkish
|
|
@@ -590,7 +551,6 @@ class Const {
|
|
|
590
551
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
591
552
|
defaultAreaCode: '90',
|
|
592
553
|
codepage: 'cp1254',
|
|
593
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
594
554
|
},
|
|
595
555
|
{
|
|
596
556
|
name: 'Svenska', // Swedish
|
|
@@ -600,7 +560,6 @@ class Const {
|
|
|
600
560
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
601
561
|
defaultAreaCode: '46',
|
|
602
562
|
codepage: 'cp1252',
|
|
603
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
604
563
|
},
|
|
605
564
|
{
|
|
606
565
|
name: 'Русский', // Russian
|
|
@@ -610,7 +569,6 @@ class Const {
|
|
|
610
569
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
611
570
|
defaultAreaCode: '7',
|
|
612
571
|
codepage: 'cp1251',
|
|
613
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
614
572
|
},
|
|
615
573
|
{
|
|
616
574
|
name: 'עברית', // Hebrew
|
|
@@ -620,7 +578,7 @@ class Const {
|
|
|
620
578
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
621
579
|
defaultAreaCode: '972',
|
|
622
580
|
codepage: 'cp1255',
|
|
623
|
-
|
|
581
|
+
|
|
624
582
|
rtl: true,
|
|
625
583
|
},
|
|
626
584
|
{
|
|
@@ -631,7 +589,7 @@ class Const {
|
|
|
631
589
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
632
590
|
defaultAreaCode: '98',
|
|
633
591
|
codepage: 'cp1256',
|
|
634
|
-
|
|
592
|
+
|
|
635
593
|
rtl: true,
|
|
636
594
|
},
|
|
637
595
|
{
|
|
@@ -642,7 +600,6 @@ class Const {
|
|
|
642
600
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
643
601
|
defaultAreaCode: '371',
|
|
644
602
|
codepage: 'cp1257',
|
|
645
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
646
603
|
},
|
|
647
604
|
{
|
|
648
605
|
name: 'Eesti', // Estonian
|
|
@@ -652,7 +609,6 @@ class Const {
|
|
|
652
609
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
653
610
|
defaultAreaCode: '372',
|
|
654
611
|
codepage: 'cp1257',
|
|
655
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
656
612
|
},
|
|
657
613
|
{
|
|
658
614
|
name: 'ትግርኛ', // Tigrinya
|
|
@@ -662,7 +618,6 @@ class Const {
|
|
|
662
618
|
dateFormat: DateFormat.DAY_MONTH_YEAR,
|
|
663
619
|
defaultAreaCode: '291',
|
|
664
620
|
codepage: 'utf-8',
|
|
665
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
666
621
|
},
|
|
667
622
|
{
|
|
668
623
|
name: 'Монгол', // Mongolian
|
|
@@ -672,7 +627,6 @@ class Const {
|
|
|
672
627
|
dateFormat: DateFormat.YEAR_MONTH_DAY,
|
|
673
628
|
defaultAreaCode: '976',
|
|
674
629
|
codepage: 'utf-8',
|
|
675
|
-
defaultPrintEncodeType: EncodeTypeEnum.IMG,
|
|
676
630
|
},
|
|
677
631
|
];
|
|
678
632
|
DATE_FORMAT = {
|
package/src/enum/printer.enum.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EncodeTypeEnum } from '../../enum/printer.enum';
|
|
2
1
|
import { DateFormat } from '../../enum/common.enum';
|
|
3
2
|
export interface LanguageItem {
|
|
4
3
|
readonly name: string;
|
|
@@ -11,5 +10,4 @@ export interface LanguageItem {
|
|
|
11
10
|
readonly defaultAreaCode: string;
|
|
12
11
|
readonly rtl?: boolean;
|
|
13
12
|
readonly codepage: string;
|
|
14
|
-
readonly defaultPrintEncodeType: EncodeTypeEnum;
|
|
15
13
|
}
|
|
@@ -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
|
+
}
|