@managesome/eposmatic-toolkit 0.4.89 → 0.4.90

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 (34) hide show
  1. package/esm/helpers/order/generate-warehouse-internal-movement.js +3 -0
  2. package/esm/helpers/store/common-warehouse-internal-movement-actions.js +124 -4
  3. package/esm/helpers/utils/discount-amounts.js +64 -0
  4. package/esm/helpers/utils/index.js +2 -0
  5. package/esm/helpers/utils/internal-movement-items.js +30 -0
  6. package/esm/helpers/utils/tenant-purchase-order-engine.js +10 -18
  7. package/esm/helpers/utils/warehouse-purchase-order-engine.js +10 -18
  8. package/esm/schemas/models/warehouse_internal_movements.js +54 -0
  9. package/lib/helpers/order/generate-warehouse-internal-movement.js +3 -0
  10. package/lib/helpers/store/common-warehouse-internal-movement-actions.d.ts +33 -1
  11. package/lib/helpers/store/common-warehouse-internal-movement-actions.js +126 -3
  12. package/lib/helpers/utils/discount-amounts.d.ts +50 -0
  13. package/lib/helpers/utils/discount-amounts.js +69 -0
  14. package/lib/helpers/utils/index.d.ts +2 -0
  15. package/lib/helpers/utils/index.js +2 -0
  16. package/lib/helpers/utils/internal-movement-items.d.ts +35 -0
  17. package/lib/helpers/utils/internal-movement-items.js +36 -0
  18. package/lib/helpers/utils/tenant-purchase-order-engine.js +9 -17
  19. package/lib/helpers/utils/warehouse-purchase-order-engine.js +9 -17
  20. package/lib/schemas/models/inventories.d.ts +3 -3
  21. package/lib/schemas/models/inventory_transactions.d.ts +3 -3
  22. package/lib/schemas/models/item_transactions.d.ts +3 -3
  23. package/lib/schemas/models/materialized_tenant_discount_entries.d.ts +3 -3
  24. package/lib/schemas/models/materialized_tenant_prep_time_entries.d.ts +3 -3
  25. package/lib/schemas/models/orders.d.ts +120 -120
  26. package/lib/schemas/models/tenant_inventory_department_transactions.d.ts +3 -3
  27. package/lib/schemas/models/tenant_inventory_department_utilities.d.ts +3 -3
  28. package/lib/schemas/models/warehouse_internal_movements.d.ts +570 -0
  29. package/lib/schemas/models/warehouse_internal_movements.js +54 -0
  30. package/lib/schemas/models/warehouse_inventory_transactions.d.ts +3 -3
  31. package/lib/schemas/models/warehouse_item_transactions.d.ts +3 -3
  32. package/lib/schemas/models/warehouse_items.d.ts +3 -3
  33. package/lib/schemas/types/warehouse_internal_movements.d.ts +17 -1
  34. package/package.json +1 -1
@@ -8,6 +8,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
8
8
  items: import("mongoose").Types.DocumentArray<{
9
9
  _id: import("mongoose").Types.ObjectId;
10
10
  inventory_code: string;
11
+ item_discount_details: {
12
+ total_discount: number;
13
+ special_discount_id?: string | null | undefined;
14
+ special_discount?: number | null | undefined;
15
+ is_special_discount_percentage?: boolean | null | undefined;
16
+ special_discount_name?: string | null | undefined;
17
+ special_discount_reason?: string | null | undefined;
18
+ special_reference_number?: string | null | undefined;
19
+ };
11
20
  item_id: import("mongoose").Types.ObjectId;
12
21
  quantity: number;
13
22
  item_name: string;
@@ -18,6 +27,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
18
27
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
19
28
  _id: import("mongoose").Types.ObjectId;
20
29
  inventory_code: string;
30
+ item_discount_details: {
31
+ total_discount: number;
32
+ special_discount_id?: string | null | undefined;
33
+ special_discount?: number | null | undefined;
34
+ is_special_discount_percentage?: boolean | null | undefined;
35
+ special_discount_name?: string | null | undefined;
36
+ special_discount_reason?: string | null | undefined;
37
+ special_reference_number?: string | null | undefined;
38
+ };
21
39
  item_id: import("mongoose").Types.ObjectId;
22
40
  quantity: number;
23
41
  item_name: string;
@@ -28,6 +46,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
28
46
  }> & {
29
47
  _id: import("mongoose").Types.ObjectId;
30
48
  inventory_code: string;
49
+ item_discount_details: {
50
+ total_discount: number;
51
+ special_discount_id?: string | null | undefined;
52
+ special_discount?: number | null | undefined;
53
+ is_special_discount_percentage?: boolean | null | undefined;
54
+ special_discount_name?: string | null | undefined;
55
+ special_discount_reason?: string | null | undefined;
56
+ special_reference_number?: string | null | undefined;
57
+ };
31
58
  item_id: import("mongoose").Types.ObjectId;
32
59
  quantity: number;
33
60
  item_name: string;
@@ -103,6 +130,17 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
103
130
  amount_collected: number;
104
131
  total_items: number;
105
132
  total_quantity: number;
133
+ order_discount_details?: {
134
+ total_discount: number;
135
+ special_discount_id?: string | null | undefined;
136
+ special_discount?: number | null | undefined;
137
+ is_special_discount_percentage?: boolean | null | undefined;
138
+ special_discount_name?: string | null | undefined;
139
+ special_discount_reason?: string | null | undefined;
140
+ special_reference_number?: string | null | undefined;
141
+ } | null | undefined;
142
+ total_discount_applied?: number | null | undefined;
143
+ exclude_discount_from_gst?: boolean | null | undefined;
106
144
  is_gst_inclusive?: boolean | null | undefined;
107
145
  gst?: number | null | undefined;
108
146
  gst_amount?: number | null | undefined;
@@ -120,6 +158,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
120
158
  items: import("mongoose").Types.DocumentArray<{
121
159
  _id: import("mongoose").Types.ObjectId;
122
160
  inventory_code: string;
161
+ item_discount_details: {
162
+ total_discount: number;
163
+ special_discount_id?: string | null | undefined;
164
+ special_discount?: number | null | undefined;
165
+ is_special_discount_percentage?: boolean | null | undefined;
166
+ special_discount_name?: string | null | undefined;
167
+ special_discount_reason?: string | null | undefined;
168
+ special_reference_number?: string | null | undefined;
169
+ };
123
170
  item_id: import("mongoose").Types.ObjectId;
124
171
  quantity: number;
125
172
  item_name: string;
@@ -130,6 +177,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
130
177
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
131
178
  _id: import("mongoose").Types.ObjectId;
132
179
  inventory_code: string;
180
+ item_discount_details: {
181
+ total_discount: number;
182
+ special_discount_id?: string | null | undefined;
183
+ special_discount?: number | null | undefined;
184
+ is_special_discount_percentage?: boolean | null | undefined;
185
+ special_discount_name?: string | null | undefined;
186
+ special_discount_reason?: string | null | undefined;
187
+ special_reference_number?: string | null | undefined;
188
+ };
133
189
  item_id: import("mongoose").Types.ObjectId;
134
190
  quantity: number;
135
191
  item_name: string;
@@ -140,6 +196,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
140
196
  }> & {
141
197
  _id: import("mongoose").Types.ObjectId;
142
198
  inventory_code: string;
199
+ item_discount_details: {
200
+ total_discount: number;
201
+ special_discount_id?: string | null | undefined;
202
+ special_discount?: number | null | undefined;
203
+ is_special_discount_percentage?: boolean | null | undefined;
204
+ special_discount_name?: string | null | undefined;
205
+ special_discount_reason?: string | null | undefined;
206
+ special_reference_number?: string | null | undefined;
207
+ };
143
208
  item_id: import("mongoose").Types.ObjectId;
144
209
  quantity: number;
145
210
  item_name: string;
@@ -215,6 +280,17 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
215
280
  amount_collected: number;
216
281
  total_items: number;
217
282
  total_quantity: number;
283
+ order_discount_details?: {
284
+ total_discount: number;
285
+ special_discount_id?: string | null | undefined;
286
+ special_discount?: number | null | undefined;
287
+ is_special_discount_percentage?: boolean | null | undefined;
288
+ special_discount_name?: string | null | undefined;
289
+ special_discount_reason?: string | null | undefined;
290
+ special_reference_number?: string | null | undefined;
291
+ } | null | undefined;
292
+ total_discount_applied?: number | null | undefined;
293
+ exclude_discount_from_gst?: boolean | null | undefined;
218
294
  is_gst_inclusive?: boolean | null | undefined;
219
295
  gst?: number | null | undefined;
220
296
  gst_amount?: number | null | undefined;
@@ -232,6 +308,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
232
308
  items: import("mongoose").Types.DocumentArray<{
233
309
  _id: import("mongoose").Types.ObjectId;
234
310
  inventory_code: string;
311
+ item_discount_details: {
312
+ total_discount: number;
313
+ special_discount_id?: string | null | undefined;
314
+ special_discount?: number | null | undefined;
315
+ is_special_discount_percentage?: boolean | null | undefined;
316
+ special_discount_name?: string | null | undefined;
317
+ special_discount_reason?: string | null | undefined;
318
+ special_reference_number?: string | null | undefined;
319
+ };
235
320
  item_id: import("mongoose").Types.ObjectId;
236
321
  quantity: number;
237
322
  item_name: string;
@@ -242,6 +327,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
242
327
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
243
328
  _id: import("mongoose").Types.ObjectId;
244
329
  inventory_code: string;
330
+ item_discount_details: {
331
+ total_discount: number;
332
+ special_discount_id?: string | null | undefined;
333
+ special_discount?: number | null | undefined;
334
+ is_special_discount_percentage?: boolean | null | undefined;
335
+ special_discount_name?: string | null | undefined;
336
+ special_discount_reason?: string | null | undefined;
337
+ special_reference_number?: string | null | undefined;
338
+ };
245
339
  item_id: import("mongoose").Types.ObjectId;
246
340
  quantity: number;
247
341
  item_name: string;
@@ -252,6 +346,15 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
252
346
  }> & {
253
347
  _id: import("mongoose").Types.ObjectId;
254
348
  inventory_code: string;
349
+ item_discount_details: {
350
+ total_discount: number;
351
+ special_discount_id?: string | null | undefined;
352
+ special_discount?: number | null | undefined;
353
+ is_special_discount_percentage?: boolean | null | undefined;
354
+ special_discount_name?: string | null | undefined;
355
+ special_discount_reason?: string | null | undefined;
356
+ special_reference_number?: string | null | undefined;
357
+ };
255
358
  item_id: import("mongoose").Types.ObjectId;
256
359
  quantity: number;
257
360
  item_name: string;
@@ -327,6 +430,17 @@ export declare const WarehouseInternalMovementIterationSchema: Schema<any, impor
327
430
  amount_collected: number;
328
431
  total_items: number;
329
432
  total_quantity: number;
433
+ order_discount_details?: {
434
+ total_discount: number;
435
+ special_discount_id?: string | null | undefined;
436
+ special_discount?: number | null | undefined;
437
+ is_special_discount_percentage?: boolean | null | undefined;
438
+ special_discount_name?: string | null | undefined;
439
+ special_discount_reason?: string | null | undefined;
440
+ special_reference_number?: string | null | undefined;
441
+ } | null | undefined;
442
+ total_discount_applied?: number | null | undefined;
443
+ exclude_discount_from_gst?: boolean | null | undefined;
330
444
  is_gst_inclusive?: boolean | null | undefined;
331
445
  gst?: number | null | undefined;
332
446
  gst_amount?: number | null | undefined;
@@ -358,6 +472,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
358
472
  items: import("mongoose").Types.DocumentArray<{
359
473
  _id: import("mongoose").Types.ObjectId;
360
474
  inventory_code: string;
475
+ item_discount_details: {
476
+ total_discount: number;
477
+ special_discount_id?: string | null | undefined;
478
+ special_discount?: number | null | undefined;
479
+ is_special_discount_percentage?: boolean | null | undefined;
480
+ special_discount_name?: string | null | undefined;
481
+ special_discount_reason?: string | null | undefined;
482
+ special_reference_number?: string | null | undefined;
483
+ };
361
484
  item_id: import("mongoose").Types.ObjectId;
362
485
  quantity: number;
363
486
  item_name: string;
@@ -368,6 +491,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
368
491
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
369
492
  _id: import("mongoose").Types.ObjectId;
370
493
  inventory_code: string;
494
+ item_discount_details: {
495
+ total_discount: number;
496
+ special_discount_id?: string | null | undefined;
497
+ special_discount?: number | null | undefined;
498
+ is_special_discount_percentage?: boolean | null | undefined;
499
+ special_discount_name?: string | null | undefined;
500
+ special_discount_reason?: string | null | undefined;
501
+ special_reference_number?: string | null | undefined;
502
+ };
371
503
  item_id: import("mongoose").Types.ObjectId;
372
504
  quantity: number;
373
505
  item_name: string;
@@ -378,6 +510,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
378
510
  }> & {
379
511
  _id: import("mongoose").Types.ObjectId;
380
512
  inventory_code: string;
513
+ item_discount_details: {
514
+ total_discount: number;
515
+ special_discount_id?: string | null | undefined;
516
+ special_discount?: number | null | undefined;
517
+ is_special_discount_percentage?: boolean | null | undefined;
518
+ special_discount_name?: string | null | undefined;
519
+ special_discount_reason?: string | null | undefined;
520
+ special_reference_number?: string | null | undefined;
521
+ };
381
522
  item_id: import("mongoose").Types.ObjectId;
382
523
  quantity: number;
383
524
  item_name: string;
@@ -394,6 +535,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
394
535
  items: import("mongoose").Types.DocumentArray<{
395
536
  _id: import("mongoose").Types.ObjectId;
396
537
  inventory_code: string;
538
+ item_discount_details: {
539
+ total_discount: number;
540
+ special_discount_id?: string | null | undefined;
541
+ special_discount?: number | null | undefined;
542
+ is_special_discount_percentage?: boolean | null | undefined;
543
+ special_discount_name?: string | null | undefined;
544
+ special_discount_reason?: string | null | undefined;
545
+ special_reference_number?: string | null | undefined;
546
+ };
397
547
  item_id: import("mongoose").Types.ObjectId;
398
548
  quantity: number;
399
549
  item_name: string;
@@ -404,6 +554,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
404
554
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
405
555
  _id: import("mongoose").Types.ObjectId;
406
556
  inventory_code: string;
557
+ item_discount_details: {
558
+ total_discount: number;
559
+ special_discount_id?: string | null | undefined;
560
+ special_discount?: number | null | undefined;
561
+ is_special_discount_percentage?: boolean | null | undefined;
562
+ special_discount_name?: string | null | undefined;
563
+ special_discount_reason?: string | null | undefined;
564
+ special_reference_number?: string | null | undefined;
565
+ };
407
566
  item_id: import("mongoose").Types.ObjectId;
408
567
  quantity: number;
409
568
  item_name: string;
@@ -414,6 +573,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
414
573
  }> & {
415
574
  _id: import("mongoose").Types.ObjectId;
416
575
  inventory_code: string;
576
+ item_discount_details: {
577
+ total_discount: number;
578
+ special_discount_id?: string | null | undefined;
579
+ special_discount?: number | null | undefined;
580
+ is_special_discount_percentage?: boolean | null | undefined;
581
+ special_discount_name?: string | null | undefined;
582
+ special_discount_reason?: string | null | undefined;
583
+ special_reference_number?: string | null | undefined;
584
+ };
417
585
  item_id: import("mongoose").Types.ObjectId;
418
586
  quantity: number;
419
587
  item_name: string;
@@ -489,6 +657,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
489
657
  amount_collected: number;
490
658
  total_items: number;
491
659
  total_quantity: number;
660
+ order_discount_details?: {
661
+ total_discount: number;
662
+ special_discount_id?: string | null | undefined;
663
+ special_discount?: number | null | undefined;
664
+ is_special_discount_percentage?: boolean | null | undefined;
665
+ special_discount_name?: string | null | undefined;
666
+ special_discount_reason?: string | null | undefined;
667
+ special_reference_number?: string | null | undefined;
668
+ } | null | undefined;
669
+ total_discount_applied?: number | null | undefined;
670
+ exclude_discount_from_gst?: boolean | null | undefined;
492
671
  is_gst_inclusive?: boolean | null | undefined;
493
672
  gst?: number | null | undefined;
494
673
  gst_amount?: number | null | undefined;
@@ -506,6 +685,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
506
685
  items: import("mongoose").Types.DocumentArray<{
507
686
  _id: import("mongoose").Types.ObjectId;
508
687
  inventory_code: string;
688
+ item_discount_details: {
689
+ total_discount: number;
690
+ special_discount_id?: string | null | undefined;
691
+ special_discount?: number | null | undefined;
692
+ is_special_discount_percentage?: boolean | null | undefined;
693
+ special_discount_name?: string | null | undefined;
694
+ special_discount_reason?: string | null | undefined;
695
+ special_reference_number?: string | null | undefined;
696
+ };
509
697
  item_id: import("mongoose").Types.ObjectId;
510
698
  quantity: number;
511
699
  item_name: string;
@@ -516,6 +704,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
516
704
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
517
705
  _id: import("mongoose").Types.ObjectId;
518
706
  inventory_code: string;
707
+ item_discount_details: {
708
+ total_discount: number;
709
+ special_discount_id?: string | null | undefined;
710
+ special_discount?: number | null | undefined;
711
+ is_special_discount_percentage?: boolean | null | undefined;
712
+ special_discount_name?: string | null | undefined;
713
+ special_discount_reason?: string | null | undefined;
714
+ special_reference_number?: string | null | undefined;
715
+ };
519
716
  item_id: import("mongoose").Types.ObjectId;
520
717
  quantity: number;
521
718
  item_name: string;
@@ -526,6 +723,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
526
723
  }> & {
527
724
  _id: import("mongoose").Types.ObjectId;
528
725
  inventory_code: string;
726
+ item_discount_details: {
727
+ total_discount: number;
728
+ special_discount_id?: string | null | undefined;
729
+ special_discount?: number | null | undefined;
730
+ is_special_discount_percentage?: boolean | null | undefined;
731
+ special_discount_name?: string | null | undefined;
732
+ special_discount_reason?: string | null | undefined;
733
+ special_reference_number?: string | null | undefined;
734
+ };
529
735
  item_id: import("mongoose").Types.ObjectId;
530
736
  quantity: number;
531
737
  item_name: string;
@@ -601,6 +807,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
601
807
  amount_collected: number;
602
808
  total_items: number;
603
809
  total_quantity: number;
810
+ order_discount_details?: {
811
+ total_discount: number;
812
+ special_discount_id?: string | null | undefined;
813
+ special_discount?: number | null | undefined;
814
+ is_special_discount_percentage?: boolean | null | undefined;
815
+ special_discount_name?: string | null | undefined;
816
+ special_discount_reason?: string | null | undefined;
817
+ special_reference_number?: string | null | undefined;
818
+ } | null | undefined;
819
+ total_discount_applied?: number | null | undefined;
820
+ exclude_discount_from_gst?: boolean | null | undefined;
604
821
  is_gst_inclusive?: boolean | null | undefined;
605
822
  gst?: number | null | undefined;
606
823
  gst_amount?: number | null | undefined;
@@ -618,6 +835,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
618
835
  items: import("mongoose").Types.DocumentArray<{
619
836
  _id: import("mongoose").Types.ObjectId;
620
837
  inventory_code: string;
838
+ item_discount_details: {
839
+ total_discount: number;
840
+ special_discount_id?: string | null | undefined;
841
+ special_discount?: number | null | undefined;
842
+ is_special_discount_percentage?: boolean | null | undefined;
843
+ special_discount_name?: string | null | undefined;
844
+ special_discount_reason?: string | null | undefined;
845
+ special_reference_number?: string | null | undefined;
846
+ };
621
847
  item_id: import("mongoose").Types.ObjectId;
622
848
  quantity: number;
623
849
  item_name: string;
@@ -628,6 +854,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
628
854
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
629
855
  _id: import("mongoose").Types.ObjectId;
630
856
  inventory_code: string;
857
+ item_discount_details: {
858
+ total_discount: number;
859
+ special_discount_id?: string | null | undefined;
860
+ special_discount?: number | null | undefined;
861
+ is_special_discount_percentage?: boolean | null | undefined;
862
+ special_discount_name?: string | null | undefined;
863
+ special_discount_reason?: string | null | undefined;
864
+ special_reference_number?: string | null | undefined;
865
+ };
631
866
  item_id: import("mongoose").Types.ObjectId;
632
867
  quantity: number;
633
868
  item_name: string;
@@ -638,6 +873,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
638
873
  }> & {
639
874
  _id: import("mongoose").Types.ObjectId;
640
875
  inventory_code: string;
876
+ item_discount_details: {
877
+ total_discount: number;
878
+ special_discount_id?: string | null | undefined;
879
+ special_discount?: number | null | undefined;
880
+ is_special_discount_percentage?: boolean | null | undefined;
881
+ special_discount_name?: string | null | undefined;
882
+ special_discount_reason?: string | null | undefined;
883
+ special_reference_number?: string | null | undefined;
884
+ };
641
885
  item_id: import("mongoose").Types.ObjectId;
642
886
  quantity: number;
643
887
  item_name: string;
@@ -713,6 +957,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
713
957
  amount_collected: number;
714
958
  total_items: number;
715
959
  total_quantity: number;
960
+ order_discount_details?: {
961
+ total_discount: number;
962
+ special_discount_id?: string | null | undefined;
963
+ special_discount?: number | null | undefined;
964
+ is_special_discount_percentage?: boolean | null | undefined;
965
+ special_discount_name?: string | null | undefined;
966
+ special_discount_reason?: string | null | undefined;
967
+ special_reference_number?: string | null | undefined;
968
+ } | null | undefined;
969
+ total_discount_applied?: number | null | undefined;
970
+ exclude_discount_from_gst?: boolean | null | undefined;
716
971
  is_gst_inclusive?: boolean | null | undefined;
717
972
  gst?: number | null | undefined;
718
973
  gst_amount?: number | null | undefined;
@@ -808,6 +1063,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
808
1063
  total_quantity: number;
809
1064
  delivered_at?: NativeDate | null | undefined;
810
1065
  cancelled_at?: NativeDate | null | undefined;
1066
+ order_discount_details?: {
1067
+ total_discount: number;
1068
+ special_discount_id?: string | null | undefined;
1069
+ special_discount?: number | null | undefined;
1070
+ is_special_discount_percentage?: boolean | null | undefined;
1071
+ special_discount_name?: string | null | undefined;
1072
+ special_discount_reason?: string | null | undefined;
1073
+ special_reference_number?: string | null | undefined;
1074
+ } | null | undefined;
1075
+ total_discount_applied?: number | null | undefined;
1076
+ exclude_discount_from_gst?: boolean | null | undefined;
811
1077
  is_gst_inclusive?: boolean | null | undefined;
812
1078
  gst?: number | null | undefined;
813
1079
  gst_amount?: number | null | undefined;
@@ -891,6 +1157,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
891
1157
  items: import("mongoose").Types.DocumentArray<{
892
1158
  _id: import("mongoose").Types.ObjectId;
893
1159
  inventory_code: string;
1160
+ item_discount_details: {
1161
+ total_discount: number;
1162
+ special_discount_id?: string | null | undefined;
1163
+ special_discount?: number | null | undefined;
1164
+ is_special_discount_percentage?: boolean | null | undefined;
1165
+ special_discount_name?: string | null | undefined;
1166
+ special_discount_reason?: string | null | undefined;
1167
+ special_reference_number?: string | null | undefined;
1168
+ };
894
1169
  item_id: import("mongoose").Types.ObjectId;
895
1170
  quantity: number;
896
1171
  item_name: string;
@@ -901,6 +1176,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
901
1176
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
902
1177
  _id: import("mongoose").Types.ObjectId;
903
1178
  inventory_code: string;
1179
+ item_discount_details: {
1180
+ total_discount: number;
1181
+ special_discount_id?: string | null | undefined;
1182
+ special_discount?: number | null | undefined;
1183
+ is_special_discount_percentage?: boolean | null | undefined;
1184
+ special_discount_name?: string | null | undefined;
1185
+ special_discount_reason?: string | null | undefined;
1186
+ special_reference_number?: string | null | undefined;
1187
+ };
904
1188
  item_id: import("mongoose").Types.ObjectId;
905
1189
  quantity: number;
906
1190
  item_name: string;
@@ -911,6 +1195,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
911
1195
  }> & {
912
1196
  _id: import("mongoose").Types.ObjectId;
913
1197
  inventory_code: string;
1198
+ item_discount_details: {
1199
+ total_discount: number;
1200
+ special_discount_id?: string | null | undefined;
1201
+ special_discount?: number | null | undefined;
1202
+ is_special_discount_percentage?: boolean | null | undefined;
1203
+ special_discount_name?: string | null | undefined;
1204
+ special_discount_reason?: string | null | undefined;
1205
+ special_reference_number?: string | null | undefined;
1206
+ };
914
1207
  item_id: import("mongoose").Types.ObjectId;
915
1208
  quantity: number;
916
1209
  item_name: string;
@@ -927,6 +1220,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
927
1220
  items: import("mongoose").Types.DocumentArray<{
928
1221
  _id: import("mongoose").Types.ObjectId;
929
1222
  inventory_code: string;
1223
+ item_discount_details: {
1224
+ total_discount: number;
1225
+ special_discount_id?: string | null | undefined;
1226
+ special_discount?: number | null | undefined;
1227
+ is_special_discount_percentage?: boolean | null | undefined;
1228
+ special_discount_name?: string | null | undefined;
1229
+ special_discount_reason?: string | null | undefined;
1230
+ special_reference_number?: string | null | undefined;
1231
+ };
930
1232
  item_id: import("mongoose").Types.ObjectId;
931
1233
  quantity: number;
932
1234
  item_name: string;
@@ -937,6 +1239,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
937
1239
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
938
1240
  _id: import("mongoose").Types.ObjectId;
939
1241
  inventory_code: string;
1242
+ item_discount_details: {
1243
+ total_discount: number;
1244
+ special_discount_id?: string | null | undefined;
1245
+ special_discount?: number | null | undefined;
1246
+ is_special_discount_percentage?: boolean | null | undefined;
1247
+ special_discount_name?: string | null | undefined;
1248
+ special_discount_reason?: string | null | undefined;
1249
+ special_reference_number?: string | null | undefined;
1250
+ };
940
1251
  item_id: import("mongoose").Types.ObjectId;
941
1252
  quantity: number;
942
1253
  item_name: string;
@@ -947,6 +1258,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
947
1258
  }> & {
948
1259
  _id: import("mongoose").Types.ObjectId;
949
1260
  inventory_code: string;
1261
+ item_discount_details: {
1262
+ total_discount: number;
1263
+ special_discount_id?: string | null | undefined;
1264
+ special_discount?: number | null | undefined;
1265
+ is_special_discount_percentage?: boolean | null | undefined;
1266
+ special_discount_name?: string | null | undefined;
1267
+ special_discount_reason?: string | null | undefined;
1268
+ special_reference_number?: string | null | undefined;
1269
+ };
950
1270
  item_id: import("mongoose").Types.ObjectId;
951
1271
  quantity: number;
952
1272
  item_name: string;
@@ -1022,6 +1342,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1022
1342
  amount_collected: number;
1023
1343
  total_items: number;
1024
1344
  total_quantity: number;
1345
+ order_discount_details?: {
1346
+ total_discount: number;
1347
+ special_discount_id?: string | null | undefined;
1348
+ special_discount?: number | null | undefined;
1349
+ is_special_discount_percentage?: boolean | null | undefined;
1350
+ special_discount_name?: string | null | undefined;
1351
+ special_discount_reason?: string | null | undefined;
1352
+ special_reference_number?: string | null | undefined;
1353
+ } | null | undefined;
1354
+ total_discount_applied?: number | null | undefined;
1355
+ exclude_discount_from_gst?: boolean | null | undefined;
1025
1356
  is_gst_inclusive?: boolean | null | undefined;
1026
1357
  gst?: number | null | undefined;
1027
1358
  gst_amount?: number | null | undefined;
@@ -1039,6 +1370,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1039
1370
  items: import("mongoose").Types.DocumentArray<{
1040
1371
  _id: import("mongoose").Types.ObjectId;
1041
1372
  inventory_code: string;
1373
+ item_discount_details: {
1374
+ total_discount: number;
1375
+ special_discount_id?: string | null | undefined;
1376
+ special_discount?: number | null | undefined;
1377
+ is_special_discount_percentage?: boolean | null | undefined;
1378
+ special_discount_name?: string | null | undefined;
1379
+ special_discount_reason?: string | null | undefined;
1380
+ special_reference_number?: string | null | undefined;
1381
+ };
1042
1382
  item_id: import("mongoose").Types.ObjectId;
1043
1383
  quantity: number;
1044
1384
  item_name: string;
@@ -1049,6 +1389,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1049
1389
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1050
1390
  _id: import("mongoose").Types.ObjectId;
1051
1391
  inventory_code: string;
1392
+ item_discount_details: {
1393
+ total_discount: number;
1394
+ special_discount_id?: string | null | undefined;
1395
+ special_discount?: number | null | undefined;
1396
+ is_special_discount_percentage?: boolean | null | undefined;
1397
+ special_discount_name?: string | null | undefined;
1398
+ special_discount_reason?: string | null | undefined;
1399
+ special_reference_number?: string | null | undefined;
1400
+ };
1052
1401
  item_id: import("mongoose").Types.ObjectId;
1053
1402
  quantity: number;
1054
1403
  item_name: string;
@@ -1059,6 +1408,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1059
1408
  }> & {
1060
1409
  _id: import("mongoose").Types.ObjectId;
1061
1410
  inventory_code: string;
1411
+ item_discount_details: {
1412
+ total_discount: number;
1413
+ special_discount_id?: string | null | undefined;
1414
+ special_discount?: number | null | undefined;
1415
+ is_special_discount_percentage?: boolean | null | undefined;
1416
+ special_discount_name?: string | null | undefined;
1417
+ special_discount_reason?: string | null | undefined;
1418
+ special_reference_number?: string | null | undefined;
1419
+ };
1062
1420
  item_id: import("mongoose").Types.ObjectId;
1063
1421
  quantity: number;
1064
1422
  item_name: string;
@@ -1134,6 +1492,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1134
1492
  amount_collected: number;
1135
1493
  total_items: number;
1136
1494
  total_quantity: number;
1495
+ order_discount_details?: {
1496
+ total_discount: number;
1497
+ special_discount_id?: string | null | undefined;
1498
+ special_discount?: number | null | undefined;
1499
+ is_special_discount_percentage?: boolean | null | undefined;
1500
+ special_discount_name?: string | null | undefined;
1501
+ special_discount_reason?: string | null | undefined;
1502
+ special_reference_number?: string | null | undefined;
1503
+ } | null | undefined;
1504
+ total_discount_applied?: number | null | undefined;
1505
+ exclude_discount_from_gst?: boolean | null | undefined;
1137
1506
  is_gst_inclusive?: boolean | null | undefined;
1138
1507
  gst?: number | null | undefined;
1139
1508
  gst_amount?: number | null | undefined;
@@ -1151,6 +1520,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1151
1520
  items: import("mongoose").Types.DocumentArray<{
1152
1521
  _id: import("mongoose").Types.ObjectId;
1153
1522
  inventory_code: string;
1523
+ item_discount_details: {
1524
+ total_discount: number;
1525
+ special_discount_id?: string | null | undefined;
1526
+ special_discount?: number | null | undefined;
1527
+ is_special_discount_percentage?: boolean | null | undefined;
1528
+ special_discount_name?: string | null | undefined;
1529
+ special_discount_reason?: string | null | undefined;
1530
+ special_reference_number?: string | null | undefined;
1531
+ };
1154
1532
  item_id: import("mongoose").Types.ObjectId;
1155
1533
  quantity: number;
1156
1534
  item_name: string;
@@ -1161,6 +1539,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1161
1539
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1162
1540
  _id: import("mongoose").Types.ObjectId;
1163
1541
  inventory_code: string;
1542
+ item_discount_details: {
1543
+ total_discount: number;
1544
+ special_discount_id?: string | null | undefined;
1545
+ special_discount?: number | null | undefined;
1546
+ is_special_discount_percentage?: boolean | null | undefined;
1547
+ special_discount_name?: string | null | undefined;
1548
+ special_discount_reason?: string | null | undefined;
1549
+ special_reference_number?: string | null | undefined;
1550
+ };
1164
1551
  item_id: import("mongoose").Types.ObjectId;
1165
1552
  quantity: number;
1166
1553
  item_name: string;
@@ -1171,6 +1558,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1171
1558
  }> & {
1172
1559
  _id: import("mongoose").Types.ObjectId;
1173
1560
  inventory_code: string;
1561
+ item_discount_details: {
1562
+ total_discount: number;
1563
+ special_discount_id?: string | null | undefined;
1564
+ special_discount?: number | null | undefined;
1565
+ is_special_discount_percentage?: boolean | null | undefined;
1566
+ special_discount_name?: string | null | undefined;
1567
+ special_discount_reason?: string | null | undefined;
1568
+ special_reference_number?: string | null | undefined;
1569
+ };
1174
1570
  item_id: import("mongoose").Types.ObjectId;
1175
1571
  quantity: number;
1176
1572
  item_name: string;
@@ -1246,6 +1642,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1246
1642
  amount_collected: number;
1247
1643
  total_items: number;
1248
1644
  total_quantity: number;
1645
+ order_discount_details?: {
1646
+ total_discount: number;
1647
+ special_discount_id?: string | null | undefined;
1648
+ special_discount?: number | null | undefined;
1649
+ is_special_discount_percentage?: boolean | null | undefined;
1650
+ special_discount_name?: string | null | undefined;
1651
+ special_discount_reason?: string | null | undefined;
1652
+ special_reference_number?: string | null | undefined;
1653
+ } | null | undefined;
1654
+ total_discount_applied?: number | null | undefined;
1655
+ exclude_discount_from_gst?: boolean | null | undefined;
1249
1656
  is_gst_inclusive?: boolean | null | undefined;
1250
1657
  gst?: number | null | undefined;
1251
1658
  gst_amount?: number | null | undefined;
@@ -1341,6 +1748,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1341
1748
  total_quantity: number;
1342
1749
  delivered_at?: NativeDate | null | undefined;
1343
1750
  cancelled_at?: NativeDate | null | undefined;
1751
+ order_discount_details?: {
1752
+ total_discount: number;
1753
+ special_discount_id?: string | null | undefined;
1754
+ special_discount?: number | null | undefined;
1755
+ is_special_discount_percentage?: boolean | null | undefined;
1756
+ special_discount_name?: string | null | undefined;
1757
+ special_discount_reason?: string | null | undefined;
1758
+ special_reference_number?: string | null | undefined;
1759
+ } | null | undefined;
1760
+ total_discount_applied?: number | null | undefined;
1761
+ exclude_discount_from_gst?: boolean | null | undefined;
1344
1762
  is_gst_inclusive?: boolean | null | undefined;
1345
1763
  gst?: number | null | undefined;
1346
1764
  gst_amount?: number | null | undefined;
@@ -1424,6 +1842,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1424
1842
  items: import("mongoose").Types.DocumentArray<{
1425
1843
  _id: import("mongoose").Types.ObjectId;
1426
1844
  inventory_code: string;
1845
+ item_discount_details: {
1846
+ total_discount: number;
1847
+ special_discount_id?: string | null | undefined;
1848
+ special_discount?: number | null | undefined;
1849
+ is_special_discount_percentage?: boolean | null | undefined;
1850
+ special_discount_name?: string | null | undefined;
1851
+ special_discount_reason?: string | null | undefined;
1852
+ special_reference_number?: string | null | undefined;
1853
+ };
1427
1854
  item_id: import("mongoose").Types.ObjectId;
1428
1855
  quantity: number;
1429
1856
  item_name: string;
@@ -1434,6 +1861,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1434
1861
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1435
1862
  _id: import("mongoose").Types.ObjectId;
1436
1863
  inventory_code: string;
1864
+ item_discount_details: {
1865
+ total_discount: number;
1866
+ special_discount_id?: string | null | undefined;
1867
+ special_discount?: number | null | undefined;
1868
+ is_special_discount_percentage?: boolean | null | undefined;
1869
+ special_discount_name?: string | null | undefined;
1870
+ special_discount_reason?: string | null | undefined;
1871
+ special_reference_number?: string | null | undefined;
1872
+ };
1437
1873
  item_id: import("mongoose").Types.ObjectId;
1438
1874
  quantity: number;
1439
1875
  item_name: string;
@@ -1444,6 +1880,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1444
1880
  }> & {
1445
1881
  _id: import("mongoose").Types.ObjectId;
1446
1882
  inventory_code: string;
1883
+ item_discount_details: {
1884
+ total_discount: number;
1885
+ special_discount_id?: string | null | undefined;
1886
+ special_discount?: number | null | undefined;
1887
+ is_special_discount_percentage?: boolean | null | undefined;
1888
+ special_discount_name?: string | null | undefined;
1889
+ special_discount_reason?: string | null | undefined;
1890
+ special_reference_number?: string | null | undefined;
1891
+ };
1447
1892
  item_id: import("mongoose").Types.ObjectId;
1448
1893
  quantity: number;
1449
1894
  item_name: string;
@@ -1460,6 +1905,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1460
1905
  items: import("mongoose").Types.DocumentArray<{
1461
1906
  _id: import("mongoose").Types.ObjectId;
1462
1907
  inventory_code: string;
1908
+ item_discount_details: {
1909
+ total_discount: number;
1910
+ special_discount_id?: string | null | undefined;
1911
+ special_discount?: number | null | undefined;
1912
+ is_special_discount_percentage?: boolean | null | undefined;
1913
+ special_discount_name?: string | null | undefined;
1914
+ special_discount_reason?: string | null | undefined;
1915
+ special_reference_number?: string | null | undefined;
1916
+ };
1463
1917
  item_id: import("mongoose").Types.ObjectId;
1464
1918
  quantity: number;
1465
1919
  item_name: string;
@@ -1470,6 +1924,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1470
1924
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1471
1925
  _id: import("mongoose").Types.ObjectId;
1472
1926
  inventory_code: string;
1927
+ item_discount_details: {
1928
+ total_discount: number;
1929
+ special_discount_id?: string | null | undefined;
1930
+ special_discount?: number | null | undefined;
1931
+ is_special_discount_percentage?: boolean | null | undefined;
1932
+ special_discount_name?: string | null | undefined;
1933
+ special_discount_reason?: string | null | undefined;
1934
+ special_reference_number?: string | null | undefined;
1935
+ };
1473
1936
  item_id: import("mongoose").Types.ObjectId;
1474
1937
  quantity: number;
1475
1938
  item_name: string;
@@ -1480,6 +1943,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1480
1943
  }> & {
1481
1944
  _id: import("mongoose").Types.ObjectId;
1482
1945
  inventory_code: string;
1946
+ item_discount_details: {
1947
+ total_discount: number;
1948
+ special_discount_id?: string | null | undefined;
1949
+ special_discount?: number | null | undefined;
1950
+ is_special_discount_percentage?: boolean | null | undefined;
1951
+ special_discount_name?: string | null | undefined;
1952
+ special_discount_reason?: string | null | undefined;
1953
+ special_reference_number?: string | null | undefined;
1954
+ };
1483
1955
  item_id: import("mongoose").Types.ObjectId;
1484
1956
  quantity: number;
1485
1957
  item_name: string;
@@ -1555,6 +2027,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1555
2027
  amount_collected: number;
1556
2028
  total_items: number;
1557
2029
  total_quantity: number;
2030
+ order_discount_details?: {
2031
+ total_discount: number;
2032
+ special_discount_id?: string | null | undefined;
2033
+ special_discount?: number | null | undefined;
2034
+ is_special_discount_percentage?: boolean | null | undefined;
2035
+ special_discount_name?: string | null | undefined;
2036
+ special_discount_reason?: string | null | undefined;
2037
+ special_reference_number?: string | null | undefined;
2038
+ } | null | undefined;
2039
+ total_discount_applied?: number | null | undefined;
2040
+ exclude_discount_from_gst?: boolean | null | undefined;
1558
2041
  is_gst_inclusive?: boolean | null | undefined;
1559
2042
  gst?: number | null | undefined;
1560
2043
  gst_amount?: number | null | undefined;
@@ -1572,6 +2055,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1572
2055
  items: import("mongoose").Types.DocumentArray<{
1573
2056
  _id: import("mongoose").Types.ObjectId;
1574
2057
  inventory_code: string;
2058
+ item_discount_details: {
2059
+ total_discount: number;
2060
+ special_discount_id?: string | null | undefined;
2061
+ special_discount?: number | null | undefined;
2062
+ is_special_discount_percentage?: boolean | null | undefined;
2063
+ special_discount_name?: string | null | undefined;
2064
+ special_discount_reason?: string | null | undefined;
2065
+ special_reference_number?: string | null | undefined;
2066
+ };
1575
2067
  item_id: import("mongoose").Types.ObjectId;
1576
2068
  quantity: number;
1577
2069
  item_name: string;
@@ -1582,6 +2074,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1582
2074
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1583
2075
  _id: import("mongoose").Types.ObjectId;
1584
2076
  inventory_code: string;
2077
+ item_discount_details: {
2078
+ total_discount: number;
2079
+ special_discount_id?: string | null | undefined;
2080
+ special_discount?: number | null | undefined;
2081
+ is_special_discount_percentage?: boolean | null | undefined;
2082
+ special_discount_name?: string | null | undefined;
2083
+ special_discount_reason?: string | null | undefined;
2084
+ special_reference_number?: string | null | undefined;
2085
+ };
1585
2086
  item_id: import("mongoose").Types.ObjectId;
1586
2087
  quantity: number;
1587
2088
  item_name: string;
@@ -1592,6 +2093,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1592
2093
  }> & {
1593
2094
  _id: import("mongoose").Types.ObjectId;
1594
2095
  inventory_code: string;
2096
+ item_discount_details: {
2097
+ total_discount: number;
2098
+ special_discount_id?: string | null | undefined;
2099
+ special_discount?: number | null | undefined;
2100
+ is_special_discount_percentage?: boolean | null | undefined;
2101
+ special_discount_name?: string | null | undefined;
2102
+ special_discount_reason?: string | null | undefined;
2103
+ special_reference_number?: string | null | undefined;
2104
+ };
1595
2105
  item_id: import("mongoose").Types.ObjectId;
1596
2106
  quantity: number;
1597
2107
  item_name: string;
@@ -1667,6 +2177,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1667
2177
  amount_collected: number;
1668
2178
  total_items: number;
1669
2179
  total_quantity: number;
2180
+ order_discount_details?: {
2181
+ total_discount: number;
2182
+ special_discount_id?: string | null | undefined;
2183
+ special_discount?: number | null | undefined;
2184
+ is_special_discount_percentage?: boolean | null | undefined;
2185
+ special_discount_name?: string | null | undefined;
2186
+ special_discount_reason?: string | null | undefined;
2187
+ special_reference_number?: string | null | undefined;
2188
+ } | null | undefined;
2189
+ total_discount_applied?: number | null | undefined;
2190
+ exclude_discount_from_gst?: boolean | null | undefined;
1670
2191
  is_gst_inclusive?: boolean | null | undefined;
1671
2192
  gst?: number | null | undefined;
1672
2193
  gst_amount?: number | null | undefined;
@@ -1684,6 +2205,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1684
2205
  items: import("mongoose").Types.DocumentArray<{
1685
2206
  _id: import("mongoose").Types.ObjectId;
1686
2207
  inventory_code: string;
2208
+ item_discount_details: {
2209
+ total_discount: number;
2210
+ special_discount_id?: string | null | undefined;
2211
+ special_discount?: number | null | undefined;
2212
+ is_special_discount_percentage?: boolean | null | undefined;
2213
+ special_discount_name?: string | null | undefined;
2214
+ special_discount_reason?: string | null | undefined;
2215
+ special_reference_number?: string | null | undefined;
2216
+ };
1687
2217
  item_id: import("mongoose").Types.ObjectId;
1688
2218
  quantity: number;
1689
2219
  item_name: string;
@@ -1694,6 +2224,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1694
2224
  }, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
1695
2225
  _id: import("mongoose").Types.ObjectId;
1696
2226
  inventory_code: string;
2227
+ item_discount_details: {
2228
+ total_discount: number;
2229
+ special_discount_id?: string | null | undefined;
2230
+ special_discount?: number | null | undefined;
2231
+ is_special_discount_percentage?: boolean | null | undefined;
2232
+ special_discount_name?: string | null | undefined;
2233
+ special_discount_reason?: string | null | undefined;
2234
+ special_reference_number?: string | null | undefined;
2235
+ };
1697
2236
  item_id: import("mongoose").Types.ObjectId;
1698
2237
  quantity: number;
1699
2238
  item_name: string;
@@ -1704,6 +2243,15 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1704
2243
  }> & {
1705
2244
  _id: import("mongoose").Types.ObjectId;
1706
2245
  inventory_code: string;
2246
+ item_discount_details: {
2247
+ total_discount: number;
2248
+ special_discount_id?: string | null | undefined;
2249
+ special_discount?: number | null | undefined;
2250
+ is_special_discount_percentage?: boolean | null | undefined;
2251
+ special_discount_name?: string | null | undefined;
2252
+ special_discount_reason?: string | null | undefined;
2253
+ special_reference_number?: string | null | undefined;
2254
+ };
1707
2255
  item_id: import("mongoose").Types.ObjectId;
1708
2256
  quantity: number;
1709
2257
  item_name: string;
@@ -1779,6 +2327,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1779
2327
  amount_collected: number;
1780
2328
  total_items: number;
1781
2329
  total_quantity: number;
2330
+ order_discount_details?: {
2331
+ total_discount: number;
2332
+ special_discount_id?: string | null | undefined;
2333
+ special_discount?: number | null | undefined;
2334
+ is_special_discount_percentage?: boolean | null | undefined;
2335
+ special_discount_name?: string | null | undefined;
2336
+ special_discount_reason?: string | null | undefined;
2337
+ special_reference_number?: string | null | undefined;
2338
+ } | null | undefined;
2339
+ total_discount_applied?: number | null | undefined;
2340
+ exclude_discount_from_gst?: boolean | null | undefined;
1782
2341
  is_gst_inclusive?: boolean | null | undefined;
1783
2342
  gst?: number | null | undefined;
1784
2343
  gst_amount?: number | null | undefined;
@@ -1874,6 +2433,17 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
1874
2433
  total_quantity: number;
1875
2434
  delivered_at?: NativeDate | null | undefined;
1876
2435
  cancelled_at?: NativeDate | null | undefined;
2436
+ order_discount_details?: {
2437
+ total_discount: number;
2438
+ special_discount_id?: string | null | undefined;
2439
+ special_discount?: number | null | undefined;
2440
+ is_special_discount_percentage?: boolean | null | undefined;
2441
+ special_discount_name?: string | null | undefined;
2442
+ special_discount_reason?: string | null | undefined;
2443
+ special_reference_number?: string | null | undefined;
2444
+ } | null | undefined;
2445
+ total_discount_applied?: number | null | undefined;
2446
+ exclude_discount_from_gst?: boolean | null | undefined;
1877
2447
  is_gst_inclusive?: boolean | null | undefined;
1878
2448
  gst?: number | null | undefined;
1879
2449
  gst_amount?: number | null | undefined;