@darkpos/pricing 1.0.15 → 1.0.16

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.
Files changed (65) hide show
  1. package/__TEST__/mocks/partially-paid/input-items.json +1 -0
  2. package/__TEST__/mocks/partially-paid/order-modifiers.json +53 -0
  3. package/__TEST__/mocks/partially-paid/order-partially-paid.json +890 -0
  4. package/__TEST__/mocks/scripts/calculate-partially-paid/index.js +27 -0
  5. package/__TEST__/mocks/scripts/calculate-unpaid/index.js +28 -0
  6. package/__TEST__/mocks/scripts/order-to-string.js +18 -0
  7. package/__TEST__/mocks/stores.js +435 -0
  8. package/__TEST__/mocks/unpaid/input-items.json +6 -0
  9. package/__TEST__/mocks/unpaid/order-modifiers.json +53 -0
  10. package/__TEST__/mocks/unpaid/order-not-paid.json +684 -0
  11. package/__TEST__/order/order.test.js +610 -0
  12. package/lib/item/addIndirectModifier.js +2 -3
  13. package/lib/item/calculate.js +1 -2
  14. package/lib/item/getBalance.js +9 -0
  15. package/lib/item/getItemModifiers.js +3 -14
  16. package/lib/item/getItems.js +5 -0
  17. package/lib/item/getTotal.js +1 -1
  18. package/lib/item/getTotalPrice.js +10 -0
  19. package/lib/item/getTotals.js +31 -18
  20. package/lib/item/index.js +12 -0
  21. package/lib/item/isFullyPaid.js +6 -0
  22. package/lib/item/markModifiersAsLocked.js +11 -0
  23. package/lib/item/removeModifier.js +10 -9
  24. package/lib/item/removePaymentModifiers.js +15 -0
  25. package/lib/modifier/create.js +2 -2
  26. package/lib/modifier/createAmountOverrideModifier.js +1 -3
  27. package/lib/modifier/createCreditModifier.js +2 -4
  28. package/lib/modifier/createDiscountModifier.js +1 -3
  29. package/lib/modifier/createIndirectModifier.js +1 -1
  30. package/lib/modifier/createPaymentModifier.js +12 -0
  31. package/lib/modifier/createSubscriptionModifier.js +1 -3
  32. package/lib/modifier/duplicate.js +1 -1
  33. package/lib/modifier/findById.js +4 -1
  34. package/lib/modifier/findByPaymentMethod.js +1 -1
  35. package/lib/modifier/findByPaymentType.js +1 -1
  36. package/lib/modifier/getItemModifiers.js +1 -3
  37. package/lib/modifier/getLockedModifiers.js +5 -0
  38. package/lib/modifier/getSplittedModifiers.js +4 -6
  39. package/lib/modifier/hasItems.js +8 -0
  40. package/lib/modifier/index.js +20 -4
  41. package/lib/modifier/isFixed.js +10 -0
  42. package/lib/modifier/isFixedDiscount.js +4 -0
  43. package/lib/modifier/isPaymentMethodModifier.js +8 -0
  44. package/lib/modifier/isPaymentModifier.js +7 -0
  45. package/lib/modifier/isPaymentTypeModifier.js +8 -0
  46. package/lib/modifier/isSubtract.js +10 -0
  47. package/lib/modifier/removeLocked.js +8 -0
  48. package/lib/order/addItem.js +104 -106
  49. package/lib/order/addItemModifier.js +0 -3
  50. package/lib/order/addModifier.js +14 -2
  51. package/lib/order/addModifiers.js +15 -0
  52. package/lib/order/autoSplit.js +34 -0
  53. package/lib/order/calculate.js +46 -68
  54. package/lib/order/getScheduleByCustomer.js +0 -1
  55. package/lib/order/index.js +10 -0
  56. package/lib/order/markModifiersAsLocked.js +14 -0
  57. package/lib/order/removeItem.js +0 -2
  58. package/lib/order/removeModifier.js +5 -1
  59. package/lib/order/removeModifiers.js +18 -0
  60. package/lib/order/splitByDepartments.js +1 -13
  61. package/lib/order/syncSubOrderItemsFromParent.js +24 -0
  62. package/package.json +3 -2
  63. package/__TEST__/order.test.js +0 -233
  64. package/lib/modifier/isPaymentMethods.js +0 -8
  65. package/lib/modifier/isPaymentTypes.js +0 -8
@@ -0,0 +1,684 @@
1
+ {
2
+ "__typename": "Order",
3
+ "_createdAt": "2022-12-06T17:38:47.008Z",
4
+ "_updatedAt": "2022-12-06T17:38:47.008Z",
5
+ "totalPaid": 0,
6
+ "user": {
7
+ "__typename": "User",
8
+ "_id": "63652e1daa91c400196496e3",
9
+ "firstName": "nov4",
10
+ "lastName": "nov4",
11
+ "username": "nov4"
12
+ },
13
+ "items": [
14
+ {
15
+ "__typename": "OrderItem",
16
+ "modifiers": [
17
+ {
18
+ "__typename": "Modifier",
19
+ "addModifiers": [],
20
+ "delModifiers": [],
21
+ "conditions": null,
22
+ "compute": null,
23
+ "_createdAt": "2022-12-06T17:38:47.007Z",
24
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
25
+ "_id": "638f7dfb03b4c49d135cf345",
26
+ "modifierId": "63652e1eed087c0012dbddda",
27
+ "_parentId": null,
28
+ "locked": null,
29
+ "name": "Dry Cleaning",
30
+ "sku": "",
31
+ "description": "",
32
+ "group": "",
33
+ "type": null,
34
+ "attributes": [
35
+ "department"
36
+ ],
37
+ "color": "",
38
+ "backgroundColor": null,
39
+ "icon": null,
40
+ "url": "",
41
+ "tags": null,
42
+ "order": 1,
43
+ "included": false,
44
+ "direct": true,
45
+ "hidden": true,
46
+ "print": false,
47
+ "required": true,
48
+ "recommended": false,
49
+ "default": false,
50
+ "code": "D",
51
+ "properties": {
52
+ "department": {
53
+ "tagSize": "Small",
54
+ "customerTagsExtend": null,
55
+ "maxItems": 4
56
+ }
57
+ },
58
+ "_computed": {
59
+ "amount": 0,
60
+ "description": "Dry Cleaning ($0.00)"
61
+ }
62
+ },
63
+ {
64
+ "__typename": "Modifier",
65
+ "addModifiers": [],
66
+ "delModifiers": [],
67
+ "conditions": null,
68
+ "compute": {
69
+ "__typename": "Compute",
70
+ "type": "fixed",
71
+ "action": "subtract",
72
+ "amount": 2.36
73
+ },
74
+ "_createdAt": "2022-12-06T17:38:47.007Z",
75
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
76
+ "_id": "638f7e26881ae9b528a307e8",
77
+ "modifierId": "638f7e0003b4c49d135cf34a",
78
+ "_parentId": "638f7e0003b4c49d135cf34a",
79
+ "locked": false,
80
+ "name": "$10.00 discount",
81
+ "sku": "",
82
+ "description": "",
83
+ "group": "",
84
+ "type": "discount",
85
+ "attributes": [],
86
+ "color": "",
87
+ "backgroundColor": "",
88
+ "icon": "",
89
+ "url": "",
90
+ "tags": [],
91
+ "order": 0,
92
+ "included": false,
93
+ "direct": false,
94
+ "hidden": false,
95
+ "print": true,
96
+ "required": false,
97
+ "recommended": false,
98
+ "default": false,
99
+ "code": "",
100
+ "properties": {
101
+ "ignoreQuantity": true
102
+ },
103
+ "_computed": {
104
+ "amount": -2.36,
105
+ "description": "$10.00 discount (-$2.36)"
106
+ }
107
+ }
108
+ ],
109
+ "notes": [],
110
+ "totalPaid": 0,
111
+ "status": {
112
+ "picked": {
113
+ "value": false,
114
+ "date": ""
115
+ },
116
+ "paid": {
117
+ "value": false,
118
+ "date": ""
119
+ },
120
+ "tracker": []
121
+ },
122
+ "_id": "638f7dfb03b4c49d135cf344",
123
+ "itemId": "63652e1eed087c0012dbde60",
124
+ "name": "Army 2pc Uniform",
125
+ "description": null,
126
+ "modifiersTotalAmount": 0,
127
+ "location": null,
128
+ "price": 9.95,
129
+ "pieces": 2,
130
+ "quantity": 1,
131
+ "path": [
132
+ "menuCategories",
133
+ "0"
134
+ ],
135
+ "menuId": "63652e1faa91c40019649787",
136
+ "serial": null,
137
+ "sku": null,
138
+ "total": 7.59,
139
+ "subTotals": {
140
+ "_included": 0,
141
+ "_xincluded": -2.36,
142
+ "_direct": 0,
143
+ "_xdirect": -2.36,
144
+ "_simple": 9.95,
145
+ "_actual": 9.95,
146
+ "discount": -2.36
147
+ },
148
+ "taxes": [],
149
+ "properties": false
150
+ },
151
+ {
152
+ "__typename": "OrderItem",
153
+ "modifiers": [
154
+ {
155
+ "__typename": "Modifier",
156
+ "addModifiers": [],
157
+ "delModifiers": [],
158
+ "conditions": null,
159
+ "compute": null,
160
+ "_createdAt": "2022-12-06T17:38:47.007Z",
161
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
162
+ "_id": "638f7dfa03b4c49d135cf343",
163
+ "modifierId": "63652e1eed087c0012dbddda",
164
+ "_parentId": null,
165
+ "locked": null,
166
+ "name": "Dry Cleaning",
167
+ "sku": "",
168
+ "description": "",
169
+ "group": "",
170
+ "type": null,
171
+ "attributes": [
172
+ "department"
173
+ ],
174
+ "color": "",
175
+ "backgroundColor": null,
176
+ "icon": null,
177
+ "url": "",
178
+ "tags": null,
179
+ "order": 1,
180
+ "included": false,
181
+ "direct": true,
182
+ "hidden": true,
183
+ "print": false,
184
+ "required": true,
185
+ "recommended": false,
186
+ "default": false,
187
+ "code": "D",
188
+ "properties": {
189
+ "department": {
190
+ "tagSize": "Small",
191
+ "customerTagsExtend": null,
192
+ "maxItems": 4
193
+ }
194
+ },
195
+ "_computed": {
196
+ "amount": 0,
197
+ "description": "Dry Cleaning ($0.00)"
198
+ }
199
+ },
200
+ {
201
+ "__typename": "Modifier",
202
+ "addModifiers": [],
203
+ "delModifiers": [],
204
+ "conditions": null,
205
+ "compute": {
206
+ "__typename": "Compute",
207
+ "type": "fixed",
208
+ "action": "subtract",
209
+ "amount": 2.23
210
+ },
211
+ "_createdAt": "2022-12-06T17:38:47.007Z",
212
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
213
+ "_id": "638f7e26881ae9b528a307e9",
214
+ "modifierId": "638f7e0003b4c49d135cf34a",
215
+ "_parentId": "638f7e0003b4c49d135cf34a",
216
+ "locked": false,
217
+ "name": "$10.00 discount",
218
+ "sku": "",
219
+ "description": "",
220
+ "group": "",
221
+ "type": "discount",
222
+ "attributes": [],
223
+ "color": "",
224
+ "backgroundColor": "",
225
+ "icon": "",
226
+ "url": "",
227
+ "tags": [],
228
+ "order": 0,
229
+ "included": false,
230
+ "direct": false,
231
+ "hidden": false,
232
+ "print": true,
233
+ "required": false,
234
+ "recommended": false,
235
+ "default": false,
236
+ "code": "",
237
+ "properties": null,
238
+ "_computed": {
239
+ "amount": -2.23,
240
+ "description": "$10.00 discount (-$2.23)"
241
+ }
242
+ }
243
+ ],
244
+ "notes": [],
245
+ "totalPaid": 0,
246
+ "status": {
247
+ "picked": {
248
+ "value": false,
249
+ "date": ""
250
+ },
251
+ "paid": {
252
+ "value": false,
253
+ "date": ""
254
+ },
255
+ "tracker": []
256
+ },
257
+ "_id": "638f7dfa03b4c49d135cf342",
258
+ "itemId": "63652e1eed087c0012dbde61",
259
+ "name": "Sport Men's 2pc Suit",
260
+ "description": "",
261
+ "modifiersTotalAmount": 0,
262
+ "location": null,
263
+ "price": 9.5,
264
+ "pieces": 2,
265
+ "quantity": 1,
266
+ "path": [
267
+ "menuCategories",
268
+ "0"
269
+ ],
270
+ "menuId": "63652e1faa91c40019649787",
271
+ "serial": null,
272
+ "sku": null,
273
+ "total": 7.27,
274
+ "subTotals": {
275
+ "_included": 0,
276
+ "_xincluded": -2.23,
277
+ "_direct": 0,
278
+ "_xdirect": -2.23,
279
+ "_simple": 9.5,
280
+ "_actual": 9.5,
281
+ "discount": -2.23
282
+ },
283
+ "taxes": [],
284
+ "properties": false
285
+ },
286
+ {
287
+ "__typename": "OrderItem",
288
+ "modifiers": [
289
+ {
290
+ "__typename": "Modifier",
291
+ "addModifiers": [],
292
+ "delModifiers": [],
293
+ "conditions": null,
294
+ "compute": null,
295
+ "_createdAt": "2022-12-06T17:38:47.007Z",
296
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
297
+ "_id": "638f7dfa03b4c49d135cf341",
298
+ "modifierId": "63652e1eed087c0012dbddda",
299
+ "_parentId": null,
300
+ "locked": null,
301
+ "name": "Dry Cleaning",
302
+ "sku": "",
303
+ "description": "",
304
+ "group": "",
305
+ "type": null,
306
+ "attributes": [
307
+ "department"
308
+ ],
309
+ "color": "",
310
+ "backgroundColor": null,
311
+ "icon": null,
312
+ "url": "",
313
+ "tags": null,
314
+ "order": 1,
315
+ "included": false,
316
+ "direct": true,
317
+ "hidden": true,
318
+ "print": false,
319
+ "required": true,
320
+ "recommended": false,
321
+ "default": false,
322
+ "code": "D",
323
+ "properties": {
324
+ "department": {
325
+ "tagSize": "Small",
326
+ "customerTagsExtend": null,
327
+ "maxItems": 4
328
+ }
329
+ },
330
+ "_computed": {
331
+ "amount": 0,
332
+ "description": "Dry Cleaning ($0.00)"
333
+ }
334
+ },
335
+ {
336
+ "__typename": "Modifier",
337
+ "addModifiers": [],
338
+ "delModifiers": [],
339
+ "conditions": null,
340
+ "compute": {
341
+ "__typename": "Compute",
342
+ "type": "fixed",
343
+ "action": "subtract",
344
+ "amount": 3.29
345
+ },
346
+ "_createdAt": "2022-12-06T17:38:47.007Z",
347
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
348
+ "_id": "638f7e26881ae9b528a307ea",
349
+ "modifierId": "638f7e0003b4c49d135cf34a",
350
+ "_parentId": "638f7e0003b4c49d135cf34a",
351
+ "locked": false,
352
+ "name": "$10.00 discount",
353
+ "sku": "",
354
+ "description": "",
355
+ "group": "",
356
+ "type": "discount",
357
+ "attributes": [],
358
+ "color": "",
359
+ "backgroundColor": "",
360
+ "icon": "",
361
+ "url": "",
362
+ "tags": [],
363
+ "order": 0,
364
+ "included": false,
365
+ "direct": false,
366
+ "hidden": false,
367
+ "print": true,
368
+ "required": false,
369
+ "recommended": false,
370
+ "default": false,
371
+ "code": "",
372
+ "properties": null,
373
+ "_computed": {
374
+ "amount": -3.29,
375
+ "description": "$10.00 discount (-$3.29)"
376
+ }
377
+ }
378
+ ],
379
+ "notes": [],
380
+ "totalPaid": 0,
381
+ "status": {
382
+ "picked": {
383
+ "value": false,
384
+ "date": ""
385
+ },
386
+ "paid": {
387
+ "value": false,
388
+ "date": ""
389
+ },
390
+ "tracker": []
391
+ },
392
+ "_id": "638f7dfa03b4c49d135cf340",
393
+ "itemId": "63652e1eed087c0012dbde5f",
394
+ "name": "M-L 3pc Suit",
395
+ "description": null,
396
+ "modifiersTotalAmount": 0,
397
+ "location": null,
398
+ "price": 14,
399
+ "pieces": 3,
400
+ "quantity": 1,
401
+ "path": [
402
+ "menuCategories",
403
+ "0"
404
+ ],
405
+ "menuId": "63652e1faa91c40019649787",
406
+ "serial": null,
407
+ "sku": null,
408
+ "total": 10.71,
409
+ "subTotals": {
410
+ "_included": 0,
411
+ "_xincluded": -3.29,
412
+ "_direct": 0,
413
+ "_xdirect": -3.29,
414
+ "_simple": 14,
415
+ "_actual": 14,
416
+ "discount": -3.29
417
+ },
418
+ "taxes": [],
419
+ "properties": false
420
+ },
421
+ {
422
+ "__typename": "OrderItem",
423
+ "modifiers": [
424
+ {
425
+ "__typename": "Modifier",
426
+ "addModifiers": [],
427
+ "delModifiers": [],
428
+ "conditions": null,
429
+ "compute": null,
430
+ "_createdAt": "2022-12-06T17:38:47.007Z",
431
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
432
+ "_id": "638f7df903b4c49d135cf33f",
433
+ "modifierId": "63652e1eed087c0012dbddda",
434
+ "_parentId": null,
435
+ "locked": null,
436
+ "name": "Dry Cleaning",
437
+ "sku": "",
438
+ "description": "",
439
+ "group": "",
440
+ "type": null,
441
+ "attributes": [
442
+ "department"
443
+ ],
444
+ "color": "",
445
+ "backgroundColor": null,
446
+ "icon": null,
447
+ "url": "",
448
+ "tags": null,
449
+ "order": 1,
450
+ "included": false,
451
+ "direct": true,
452
+ "hidden": true,
453
+ "print": false,
454
+ "required": true,
455
+ "recommended": false,
456
+ "default": false,
457
+ "code": "D",
458
+ "properties": {
459
+ "department": {
460
+ "tagSize": "Small",
461
+ "customerTagsExtend": null,
462
+ "maxItems": 4
463
+ }
464
+ },
465
+ "_computed": {
466
+ "amount": 0,
467
+ "description": "Dry Cleaning ($0.00)"
468
+ }
469
+ },
470
+ {
471
+ "__typename": "Modifier",
472
+ "addModifiers": [],
473
+ "delModifiers": [],
474
+ "conditions": null,
475
+ "compute": {
476
+ "__typename": "Compute",
477
+ "type": "fixed",
478
+ "action": "subtract",
479
+ "amount": 2.12
480
+ },
481
+ "_createdAt": "2022-12-06T17:38:47.007Z",
482
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
483
+ "_id": "638f7e26881ae9b528a307eb",
484
+ "modifierId": "638f7e0003b4c49d135cf34a",
485
+ "_parentId": "638f7e0003b4c49d135cf34a",
486
+ "locked": false,
487
+ "name": "$10.00 discount",
488
+ "sku": "",
489
+ "description": "",
490
+ "group": "",
491
+ "type": "discount",
492
+ "attributes": [],
493
+ "color": "",
494
+ "backgroundColor": "",
495
+ "icon": "",
496
+ "url": "",
497
+ "tags": [],
498
+ "order": 0,
499
+ "included": false,
500
+ "direct": false,
501
+ "hidden": false,
502
+ "print": true,
503
+ "required": false,
504
+ "recommended": false,
505
+ "default": false,
506
+ "code": "",
507
+ "properties": null,
508
+ "_computed": {
509
+ "amount": -2.12,
510
+ "description": "$10.00 discount (-$2.12)"
511
+ }
512
+ }
513
+ ],
514
+ "notes": [],
515
+ "totalPaid": 0,
516
+ "status": {
517
+ "picked": {
518
+ "value": false,
519
+ "date": ""
520
+ },
521
+ "paid": {
522
+ "value": false,
523
+ "date": ""
524
+ },
525
+ "tracker": []
526
+ },
527
+ "_id": "638f7df903b4c49d135cf33e",
528
+ "itemId": "63652e1eed087c0012dbde5e",
529
+ "name": "M-L 2pc Suit",
530
+ "description": null,
531
+ "modifiersTotalAmount": 0,
532
+ "location": null,
533
+ "price": 9,
534
+ "pieces": 2,
535
+ "quantity": 1,
536
+ "path": [
537
+ "menuCategories",
538
+ "0"
539
+ ],
540
+ "menuId": "63652e1faa91c40019649787",
541
+ "serial": null,
542
+ "sku": null,
543
+ "total": 6.88,
544
+ "subTotals": {
545
+ "_included": 0,
546
+ "_xincluded": -2.12,
547
+ "_direct": 0,
548
+ "_xdirect": -2.12,
549
+ "_simple": 9,
550
+ "_actual": 9,
551
+ "discount": -2.12
552
+ },
553
+ "taxes": [],
554
+ "properties": false
555
+ }
556
+ ],
557
+ "notes": [
558
+ {
559
+ "__typename": "Note",
560
+ "user": {
561
+ "__typename": "User",
562
+ "_id": "63652e1daa91c400196496e3",
563
+ "firstName": "nov4",
564
+ "lastName": "nov4"
565
+ },
566
+ "message": "This order was split from order #194",
567
+ "attributes": [],
568
+ "name": null,
569
+ "type": null,
570
+ "date": "2022-12-06T17:38:46.649Z",
571
+ "url": ""
572
+ }
573
+ ],
574
+ "start": {
575
+ "__typename": "OrderStart",
576
+ "actualDate": "2022-12-06T17:04:26.318Z",
577
+ "requestDate": "2022-12-06T17:04:26.318Z",
578
+ "location": null
579
+ },
580
+ "end": {
581
+ "__typename": "OrderEnd",
582
+ "actualDate": null,
583
+ "requestDate": "2022-12-09T22:00:00.000Z",
584
+ "location": {
585
+ "name": "nov4",
586
+ "locationType": "store",
587
+ "storeId": "63652e1ced087c0012dbddc3"
588
+ }
589
+ },
590
+ "customer": {
591
+ "__typename": "Customer",
592
+ "_id": "637e99678c3a0690e8565397",
593
+ "firstName": "Test",
594
+ "lastName": "1",
595
+ "tags": [
596
+ "default",
597
+ "all"
598
+ ],
599
+ "notes": [],
600
+ "modifiers": [],
601
+ "properties": {
602
+ "events": [],
603
+ "relationships": [
604
+ {
605
+ "name": "dark",
606
+ "type": "_company",
607
+ "__typename": "Relationship"
608
+ }
609
+ ]
610
+ }
611
+ },
612
+ "modifiers": [
613
+ {
614
+ "__typename": "Modifier",
615
+ "addModifiers": [],
616
+ "delModifiers": [],
617
+ "conditions": null,
618
+ "compute": {
619
+ "__typename": "Compute",
620
+ "type": "fixed",
621
+ "action": "subtract",
622
+ "amount": 10
623
+ },
624
+ "_createdAt": "2022-12-06T17:38:47.007Z",
625
+ "_updatedAt": "2022-12-06T17:38:47.007Z",
626
+ "_id": "638f7e0003b4c49d135cf34a",
627
+ "modifierId": null,
628
+ "_parentId": null,
629
+ "locked": false,
630
+ "name": "$10.00 discount",
631
+ "sku": "",
632
+ "description": "",
633
+ "group": "",
634
+ "type": "discount",
635
+ "attributes": [],
636
+ "color": "",
637
+ "backgroundColor": "",
638
+ "icon": "",
639
+ "url": "",
640
+ "tags": [],
641
+ "order": 0,
642
+ "included": false,
643
+ "direct": true,
644
+ "hidden": false,
645
+ "print": true,
646
+ "required": false,
647
+ "recommended": false,
648
+ "default": false,
649
+ "code": "",
650
+ "properties": null,
651
+ "_computed": null
652
+ }
653
+ ],
654
+ "_storeId": "63652e1ced087c0012dbddc3",
655
+ "_id": "638f7e0703b4c49d135cf359",
656
+ "parentId": "638f7ded03b4c49d135cf328",
657
+ "isParent": false,
658
+ "subTotal": 42.45,
659
+ "tax": 0,
660
+ "discount": 0,
661
+ "total": 32.45,
662
+ "displayId": "194-1",
663
+ "description": "",
664
+ "type": "",
665
+ "fee": 0,
666
+ "location": null,
667
+ "status": {
668
+ "order": "open",
669
+ "kitchen": "open",
670
+ "delivery": "none",
671
+ "detailed": true
672
+ },
673
+ "attributes": [],
674
+ "properties": {
675
+ "notify": {
676
+ "sms": false
677
+ },
678
+ "pieces": [],
679
+ "split": "manual"
680
+ },
681
+ "subTotals": {
682
+ "discount": -10
683
+ }
684
+ }