@flowselections/floriday-verkoop-module 1.0.73 → 1.0.76

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 (32) hide show
  1. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderKarindelingCard.js +36 -114
  3. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts +6 -0
  4. package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/PlanCoverageBadge.js +23 -0
  6. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrderDetailView.js +2 -1
  8. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/SalesOrdersTable.js +2 -1
  10. package/dist-lib/integrations/supabase/types.d.ts +607 -3
  11. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  12. package/dist-lib/lib/cart-replan.functions.d.ts +2 -22
  13. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  14. package/dist-lib/lib/cart-replan.functions.js +10 -163
  15. package/dist-lib/lib/create-order.functions.d.ts +0 -57
  16. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/create-order.functions.js +1 -205
  18. package/dist-lib/lib/logistics-engine.server.d.ts.map +1 -1
  19. package/dist-lib/lib/logistics-engine.server.js +8 -3
  20. package/dist-lib/lib/plan-coverage.d.ts +56 -0
  21. package/dist-lib/lib/plan-coverage.d.ts.map +1 -0
  22. package/dist-lib/lib/plan-coverage.js +120 -0
  23. package/dist-lib/lib/plan-coverage.server.d.ts +3 -0
  24. package/dist-lib/lib/plan-coverage.server.d.ts.map +1 -0
  25. package/dist-lib/lib/plan-coverage.server.js +97 -0
  26. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  27. package/dist-lib/lib/salesorders-list.server.js +43 -82
  28. package/dist-lib/lib/salesorders-mapping.d.ts +5 -0
  29. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  30. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/salesorders.functions.js +21 -18
  32. package/package.json +1 -1
@@ -3125,6 +3125,135 @@ export type Database = {
3125
3125
  };
3126
3126
  Relationships: [];
3127
3127
  };
3128
+ dashboard_werkbon_dagtellers: {
3129
+ Row: {
3130
+ aantal: number;
3131
+ created_at: string;
3132
+ datum: string;
3133
+ soort: string;
3134
+ updated_at: string;
3135
+ };
3136
+ Insert: {
3137
+ aantal?: number;
3138
+ created_at?: string;
3139
+ datum: string;
3140
+ soort: string;
3141
+ updated_at?: string;
3142
+ };
3143
+ Update: {
3144
+ aantal?: number;
3145
+ created_at?: string;
3146
+ datum?: string;
3147
+ soort?: string;
3148
+ updated_at?: string;
3149
+ };
3150
+ Relationships: [];
3151
+ };
3152
+ dashboard_werkbon_factuurhistorie: {
3153
+ Row: {
3154
+ bedrag_cents: number;
3155
+ created_at: string;
3156
+ factuur_id: string;
3157
+ status: string;
3158
+ updated_at: string;
3159
+ werkbon_id: string;
3160
+ };
3161
+ Insert: {
3162
+ bedrag_cents: number;
3163
+ created_at?: string;
3164
+ factuur_id: string;
3165
+ status: string;
3166
+ updated_at?: string;
3167
+ werkbon_id: string;
3168
+ };
3169
+ Update: {
3170
+ bedrag_cents?: number;
3171
+ created_at?: string;
3172
+ factuur_id?: string;
3173
+ status?: string;
3174
+ updated_at?: string;
3175
+ werkbon_id?: string;
3176
+ };
3177
+ Relationships: [];
3178
+ };
3179
+ dashboard_werkbon_historie: {
3180
+ Row: {
3181
+ aangemaakt_op: string;
3182
+ afgerond_op: string | null;
3183
+ created_at: string;
3184
+ parent_werkbon_id: string | null;
3185
+ soort: string;
3186
+ updated_at: string;
3187
+ werkbon_id: string;
3188
+ };
3189
+ Insert: {
3190
+ aangemaakt_op: string;
3191
+ afgerond_op?: string | null;
3192
+ created_at?: string;
3193
+ parent_werkbon_id?: string | null;
3194
+ soort: string;
3195
+ updated_at?: string;
3196
+ werkbon_id: string;
3197
+ };
3198
+ Update: {
3199
+ aangemaakt_op?: string;
3200
+ afgerond_op?: string | null;
3201
+ created_at?: string;
3202
+ parent_werkbon_id?: string | null;
3203
+ soort?: string;
3204
+ updated_at?: string;
3205
+ werkbon_id?: string;
3206
+ };
3207
+ Relationships: [];
3208
+ };
3209
+ dashboard_werkbon_mailhistorie: {
3210
+ Row: {
3211
+ created_at: string;
3212
+ goedgekeurd_op: string;
3213
+ updated_at: string;
3214
+ voorstel_id: string;
3215
+ werkbon_id: string | null;
3216
+ };
3217
+ Insert: {
3218
+ created_at?: string;
3219
+ goedgekeurd_op: string;
3220
+ updated_at?: string;
3221
+ voorstel_id: string;
3222
+ werkbon_id?: string | null;
3223
+ };
3224
+ Update: {
3225
+ created_at?: string;
3226
+ goedgekeurd_op?: string;
3227
+ updated_at?: string;
3228
+ voorstel_id?: string;
3229
+ werkbon_id?: string | null;
3230
+ };
3231
+ Relationships: [];
3232
+ };
3233
+ dashboard_werkbon_tellers: {
3234
+ Row: {
3235
+ aantal: number;
3236
+ jaar: number;
3237
+ maand: number;
3238
+ soort: string;
3239
+ updated_at: string;
3240
+ };
3241
+ Insert: {
3242
+ aantal?: number;
3243
+ jaar: number;
3244
+ maand: number;
3245
+ soort: string;
3246
+ updated_at?: string;
3247
+ };
3248
+ Update: {
3249
+ aantal?: number;
3250
+ jaar?: number;
3251
+ maand?: number;
3252
+ soort?: string;
3253
+ updated_at?: string;
3254
+ };
3255
+ Relationships: [];
3256
+ };
3128
3257
  delivery_notes: {
3129
3258
  Row: {
3130
3259
  byte_size: number | null;
@@ -6648,19 +6777,25 @@ export type Database = {
6648
6777
  Row: {
6649
6778
  attempts: number;
6650
6779
  availability_sent_at: string | null;
6780
+ base_supply_outcome: string | null;
6651
6781
  connection_id: string;
6652
6782
  created_at: string;
6653
6783
  dead_lettered_at: string | null;
6654
6784
  desired_available: boolean | null;
6655
6785
  gateway_attempt_id: string | null;
6786
+ gateway_unreachable_since: string | null;
6656
6787
  id: string;
6657
6788
  last_error: string | null;
6658
6789
  locked_at: string | null;
6659
6790
  locked_by: string | null;
6660
6791
  next_attempt_at: string;
6661
6792
  number_of_pieces: number;
6793
+ price_note: string | null;
6794
+ price_sent: number | null;
6795
+ price_status: string | null;
6662
6796
  product_id: string | null;
6663
6797
  quantity_sent_at: string | null;
6798
+ result_label: string | null;
6664
6799
  sent_at: string | null;
6665
6800
  skip_reason: string | null;
6666
6801
  status: string;
@@ -6675,19 +6810,25 @@ export type Database = {
6675
6810
  Insert: {
6676
6811
  attempts?: number;
6677
6812
  availability_sent_at?: string | null;
6813
+ base_supply_outcome?: string | null;
6678
6814
  connection_id: string;
6679
6815
  created_at?: string;
6680
6816
  dead_lettered_at?: string | null;
6681
6817
  desired_available?: boolean | null;
6682
6818
  gateway_attempt_id?: string | null;
6819
+ gateway_unreachable_since?: string | null;
6683
6820
  id?: string;
6684
6821
  last_error?: string | null;
6685
6822
  locked_at?: string | null;
6686
6823
  locked_by?: string | null;
6687
6824
  next_attempt_at?: string;
6688
6825
  number_of_pieces?: number;
6826
+ price_note?: string | null;
6827
+ price_sent?: number | null;
6828
+ price_status?: string | null;
6689
6829
  product_id?: string | null;
6690
6830
  quantity_sent_at?: string | null;
6831
+ result_label?: string | null;
6691
6832
  sent_at?: string | null;
6692
6833
  skip_reason?: string | null;
6693
6834
  status?: string;
@@ -6702,19 +6843,25 @@ export type Database = {
6702
6843
  Update: {
6703
6844
  attempts?: number;
6704
6845
  availability_sent_at?: string | null;
6846
+ base_supply_outcome?: string | null;
6705
6847
  connection_id?: string;
6706
6848
  created_at?: string;
6707
6849
  dead_lettered_at?: string | null;
6708
6850
  desired_available?: boolean | null;
6709
6851
  gateway_attempt_id?: string | null;
6852
+ gateway_unreachable_since?: string | null;
6710
6853
  id?: string;
6711
6854
  last_error?: string | null;
6712
6855
  locked_at?: string | null;
6713
6856
  locked_by?: string | null;
6714
6857
  next_attempt_at?: string;
6715
6858
  number_of_pieces?: number;
6859
+ price_note?: string | null;
6860
+ price_sent?: number | null;
6861
+ price_status?: string | null;
6716
6862
  product_id?: string | null;
6717
6863
  quantity_sent_at?: string | null;
6864
+ result_label?: string | null;
6718
6865
  sent_at?: string | null;
6719
6866
  skip_reason?: string | null;
6720
6867
  status?: string;
@@ -7440,6 +7587,33 @@ export type Database = {
7440
7587
  };
7441
7588
  Relationships: [];
7442
7589
  };
7590
+ floriday_loading_identifiers: {
7591
+ Row: {
7592
+ created_at: string;
7593
+ created_by: string | null;
7594
+ id: string;
7595
+ identifier: string;
7596
+ natural_key: string;
7597
+ scope: string;
7598
+ };
7599
+ Insert: {
7600
+ created_at?: string;
7601
+ created_by?: string | null;
7602
+ id?: string;
7603
+ identifier?: string;
7604
+ natural_key: string;
7605
+ scope: string;
7606
+ };
7607
+ Update: {
7608
+ created_at?: string;
7609
+ created_by?: string | null;
7610
+ id?: string;
7611
+ identifier?: string;
7612
+ natural_key?: string;
7613
+ scope?: string;
7614
+ };
7615
+ Relationships: [];
7616
+ };
7443
7617
  floriday_log_retention: {
7444
7618
  Row: {
7445
7619
  created_at: string;
@@ -8645,7 +8819,7 @@ export type Database = {
8645
8819
  note?: string | null;
8646
8820
  reason?: string;
8647
8821
  trade_item_key?: string | null;
8648
- user_id: string;
8822
+ user_id?: string;
8649
8823
  };
8650
8824
  Update: {
8651
8825
  created_at?: string;
@@ -8706,7 +8880,7 @@ export type Database = {
8706
8880
  stock?: number;
8707
8881
  updated_at?: string;
8708
8882
  used_by_count?: number;
8709
- user_id: string;
8883
+ user_id?: string;
8710
8884
  vbn_code?: number | null;
8711
8885
  width_mm?: number | null;
8712
8886
  };
@@ -8890,6 +9064,8 @@ export type Database = {
8890
9064
  };
8891
9065
  inventory_recompute_limits: {
8892
9066
  Row: {
9067
+ base_supply_batch: number;
9068
+ base_supply_uses_catalog_availability: boolean;
8893
9069
  drain_batch: number;
8894
9070
  id: boolean;
8895
9071
  import_chunk_size: number;
@@ -8899,15 +9075,20 @@ export type Database = {
8899
9075
  import_retention_days: number;
8900
9076
  max_ms_inline: number;
8901
9077
  max_parents_inline: number;
9078
+ queue_base_supply_timeout_minutes: number;
8902
9079
  queue_cleanup_batch: number;
8903
9080
  queue_cleanup_max_batches: number;
8904
9081
  queue_failed_days: number;
9082
+ queue_gateway_backoff_minutes: number[];
9083
+ queue_gateway_give_up_hours: number;
8905
9084
  queue_sent_days: number;
8906
9085
  queue_skipped_days: number;
8907
9086
  queue_superseded_days: number;
8908
9087
  updated_at: string;
8909
9088
  };
8910
9089
  Insert: {
9090
+ base_supply_batch?: number;
9091
+ base_supply_uses_catalog_availability?: boolean;
8911
9092
  drain_batch?: number;
8912
9093
  id?: boolean;
8913
9094
  import_chunk_size?: number;
@@ -8917,15 +9098,20 @@ export type Database = {
8917
9098
  import_retention_days?: number;
8918
9099
  max_ms_inline?: number;
8919
9100
  max_parents_inline?: number;
9101
+ queue_base_supply_timeout_minutes?: number;
8920
9102
  queue_cleanup_batch?: number;
8921
9103
  queue_cleanup_max_batches?: number;
8922
9104
  queue_failed_days?: number;
9105
+ queue_gateway_backoff_minutes?: number[];
9106
+ queue_gateway_give_up_hours?: number;
8923
9107
  queue_sent_days?: number;
8924
9108
  queue_skipped_days?: number;
8925
9109
  queue_superseded_days?: number;
8926
9110
  updated_at?: string;
8927
9111
  };
8928
9112
  Update: {
9113
+ base_supply_batch?: number;
9114
+ base_supply_uses_catalog_availability?: boolean;
8929
9115
  drain_batch?: number;
8930
9116
  id?: boolean;
8931
9117
  import_chunk_size?: number;
@@ -8935,9 +9121,12 @@ export type Database = {
8935
9121
  import_retention_days?: number;
8936
9122
  max_ms_inline?: number;
8937
9123
  max_parents_inline?: number;
9124
+ queue_base_supply_timeout_minutes?: number;
8938
9125
  queue_cleanup_batch?: number;
8939
9126
  queue_cleanup_max_batches?: number;
8940
9127
  queue_failed_days?: number;
9128
+ queue_gateway_backoff_minutes?: number[];
9129
+ queue_gateway_give_up_hours?: number;
8941
9130
  queue_sent_days?: number;
8942
9131
  queue_skipped_days?: number;
8943
9132
  queue_superseded_days?: number;
@@ -11173,6 +11362,33 @@ export type Database = {
11173
11362
  };
11174
11363
  Relationships: [];
11175
11364
  };
11365
+ logistics_allocation_fingerprint: {
11366
+ Row: {
11367
+ created_at: string;
11368
+ fingerprint: string;
11369
+ last_replan_at: string | null;
11370
+ order_id: string;
11371
+ pending_since: string | null;
11372
+ updated_at: string;
11373
+ };
11374
+ Insert: {
11375
+ created_at?: string;
11376
+ fingerprint: string;
11377
+ last_replan_at?: string | null;
11378
+ order_id: string;
11379
+ pending_since?: string | null;
11380
+ updated_at?: string;
11381
+ };
11382
+ Update: {
11383
+ created_at?: string;
11384
+ fingerprint?: string;
11385
+ last_replan_at?: string | null;
11386
+ order_id?: string;
11387
+ pending_since?: string | null;
11388
+ updated_at?: string;
11389
+ };
11390
+ Relationships: [];
11391
+ };
11176
11392
  logistics_autolink_audit: {
11177
11393
  Row: {
11178
11394
  created_at: string;
@@ -12392,6 +12608,33 @@ export type Database = {
12392
12608
  };
12393
12609
  Relationships: [];
12394
12610
  };
12611
+ logistics_plan_coverage_retries: {
12612
+ Row: {
12613
+ attempts: number;
12614
+ gave_up_at: string | null;
12615
+ last_at: string;
12616
+ last_pct: number | null;
12617
+ next_at: string;
12618
+ order_id: string;
12619
+ };
12620
+ Insert: {
12621
+ attempts?: number;
12622
+ gave_up_at?: string | null;
12623
+ last_at?: string;
12624
+ last_pct?: number | null;
12625
+ next_at?: string;
12626
+ order_id: string;
12627
+ };
12628
+ Update: {
12629
+ attempts?: number;
12630
+ gave_up_at?: string | null;
12631
+ last_at?: string;
12632
+ last_pct?: number | null;
12633
+ next_at?: string;
12634
+ order_id?: string;
12635
+ };
12636
+ Relationships: [];
12637
+ };
12395
12638
  logistics_plan_locks: {
12396
12639
  Row: {
12397
12640
  created_at: string;
@@ -12788,6 +13031,7 @@ export type Database = {
12788
13031
  created_at: string;
12789
13032
  group_id: string | null;
12790
13033
  id: string;
13034
+ line_qty: number | null;
12791
13035
  order_item_id: string;
12792
13036
  qty: number;
12793
13037
  source: string;
@@ -12799,6 +13043,7 @@ export type Database = {
12799
13043
  created_at?: string;
12800
13044
  group_id?: string | null;
12801
13045
  id?: string;
13046
+ line_qty?: number | null;
12802
13047
  order_item_id: string;
12803
13048
  qty: number;
12804
13049
  source: string;
@@ -12810,6 +13055,7 @@ export type Database = {
12810
13055
  created_at?: string;
12811
13056
  group_id?: string | null;
12812
13057
  id?: string;
13058
+ line_qty?: number | null;
12813
13059
  order_item_id?: string;
12814
13060
  qty?: number;
12815
13061
  source?: string;
@@ -15565,6 +15811,7 @@ export type Database = {
15565
15811
  Row: {
15566
15812
  boxes: number | null;
15567
15813
  cart_id: string;
15814
+ components: Json | null;
15568
15815
  crates: number;
15569
15816
  crates_in_layer: number | null;
15570
15817
  crates_per_layer: number;
@@ -15583,6 +15830,7 @@ export type Database = {
15583
15830
  Insert: {
15584
15831
  boxes?: number | null;
15585
15832
  cart_id: string;
15833
+ components?: Json | null;
15586
15834
  crates: number;
15587
15835
  crates_in_layer?: number | null;
15588
15836
  crates_per_layer?: number;
@@ -15601,6 +15849,7 @@ export type Database = {
15601
15849
  Update: {
15602
15850
  boxes?: number | null;
15603
15851
  cart_id?: string;
15852
+ components?: Json | null;
15604
15853
  crates?: number;
15605
15854
  crates_in_layer?: number | null;
15606
15855
  crates_per_layer?: number;
@@ -17756,6 +18005,12 @@ export type Database = {
17756
18005
  email_purpose: string | null;
17757
18006
  enabled: boolean;
17758
18007
  id: boolean;
18008
+ overrun_auto_mail: boolean;
18009
+ overrun_body_template: string;
18010
+ overrun_enabled: boolean;
18011
+ overrun_mail_minutes: number;
18012
+ overrun_notice_minutes: number;
18013
+ overrun_subject_template: string;
17759
18014
  reply_to: string | null;
17760
18015
  reschedule_body_template: string;
17761
18016
  reschedule_subject_template: string;
@@ -17772,6 +18027,12 @@ export type Database = {
17772
18027
  email_purpose?: string | null;
17773
18028
  enabled?: boolean;
17774
18029
  id?: boolean;
18030
+ overrun_auto_mail?: boolean;
18031
+ overrun_body_template?: string;
18032
+ overrun_enabled?: boolean;
18033
+ overrun_mail_minutes?: number;
18034
+ overrun_notice_minutes?: number;
18035
+ overrun_subject_template?: string;
17775
18036
  reply_to?: string | null;
17776
18037
  reschedule_body_template?: string;
17777
18038
  reschedule_subject_template?: string;
@@ -17788,6 +18049,12 @@ export type Database = {
17788
18049
  email_purpose?: string | null;
17789
18050
  enabled?: boolean;
17790
18051
  id?: boolean;
18052
+ overrun_auto_mail?: boolean;
18053
+ overrun_body_template?: string;
18054
+ overrun_enabled?: boolean;
18055
+ overrun_mail_minutes?: number;
18056
+ overrun_notice_minutes?: number;
18057
+ overrun_subject_template?: string;
17791
18058
  reply_to?: string | null;
17792
18059
  reschedule_body_template?: string;
17793
18060
  reschedule_subject_template?: string;
@@ -17879,6 +18146,66 @@ export type Database = {
17879
18146
  };
17880
18147
  Relationships: [];
17881
18148
  };
18149
+ planning_overrun_events: {
18150
+ Row: {
18151
+ created_at: string;
18152
+ id: string;
18153
+ mail_level: number;
18154
+ mailed_at: string | null;
18155
+ mailed_item_id: string | null;
18156
+ mailed_items: Json;
18157
+ monteur_id: string | null;
18158
+ original_end_at: string;
18159
+ overrun_minutes: number;
18160
+ planning_item_id: string;
18161
+ shifted: Json;
18162
+ updated_at: string;
18163
+ };
18164
+ Insert: {
18165
+ created_at?: string;
18166
+ id?: string;
18167
+ mail_level?: number;
18168
+ mailed_at?: string | null;
18169
+ mailed_item_id?: string | null;
18170
+ mailed_items?: Json;
18171
+ monteur_id?: string | null;
18172
+ original_end_at: string;
18173
+ overrun_minutes?: number;
18174
+ planning_item_id: string;
18175
+ shifted?: Json;
18176
+ updated_at?: string;
18177
+ };
18178
+ Update: {
18179
+ created_at?: string;
18180
+ id?: string;
18181
+ mail_level?: number;
18182
+ mailed_at?: string | null;
18183
+ mailed_item_id?: string | null;
18184
+ mailed_items?: Json;
18185
+ monteur_id?: string | null;
18186
+ original_end_at?: string;
18187
+ overrun_minutes?: number;
18188
+ planning_item_id?: string;
18189
+ shifted?: Json;
18190
+ updated_at?: string;
18191
+ };
18192
+ Relationships: [
18193
+ {
18194
+ foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
18195
+ columns: ["planning_item_id"];
18196
+ isOneToOne: true;
18197
+ referencedRelation: "planning_items";
18198
+ referencedColumns: ["id"];
18199
+ },
18200
+ {
18201
+ foreignKeyName: "planning_overrun_events_planning_item_id_fkey";
18202
+ columns: ["planning_item_id"];
18203
+ isOneToOne: true;
18204
+ referencedRelation: "planning_overview";
18205
+ referencedColumns: ["id"];
18206
+ }
18207
+ ];
18208
+ };
17882
18209
  planning_settings: {
17883
18210
  Row: {
17884
18211
  company_address: string | null;
@@ -22379,7 +22706,7 @@ export type Database = {
22379
22706
  reserved_stock?: number;
22380
22707
  trade_item_key: string;
22381
22708
  updated_at?: string;
22382
- user_id: string;
22709
+ user_id?: string;
22383
22710
  };
22384
22711
  Update: {
22385
22712
  change_source?: string;
@@ -27580,6 +27907,24 @@ export type Database = {
27580
27907
  isSetofReturn: true;
27581
27908
  };
27582
27909
  };
27910
+ claim_floriday_base_supply: {
27911
+ Args: {
27912
+ p_worker?: string;
27913
+ };
27914
+ Returns: {
27915
+ attempts: number;
27916
+ id: string;
27917
+ number_of_pieces: number;
27918
+ product_id: string;
27919
+ sale_price: number;
27920
+ stock_mode: string;
27921
+ target_week: number;
27922
+ target_year: number;
27923
+ trade_item_id: string;
27924
+ unit: string;
27925
+ uses_catalog_availability: boolean;
27926
+ }[];
27927
+ };
27583
27928
  claim_floriday_stock_queue: {
27584
27929
  Args: {
27585
27930
  p_limit?: number;
@@ -27588,19 +27933,25 @@ export type Database = {
27588
27933
  Returns: {
27589
27934
  attempts: number;
27590
27935
  availability_sent_at: string | null;
27936
+ base_supply_outcome: string | null;
27591
27937
  connection_id: string;
27592
27938
  created_at: string;
27593
27939
  dead_lettered_at: string | null;
27594
27940
  desired_available: boolean | null;
27595
27941
  gateway_attempt_id: string | null;
27942
+ gateway_unreachable_since: string | null;
27596
27943
  id: string;
27597
27944
  last_error: string | null;
27598
27945
  locked_at: string | null;
27599
27946
  locked_by: string | null;
27600
27947
  next_attempt_at: string;
27601
27948
  number_of_pieces: number;
27949
+ price_note: string | null;
27950
+ price_sent: number | null;
27951
+ price_status: string | null;
27602
27952
  product_id: string | null;
27603
27953
  quantity_sent_at: string | null;
27954
+ result_label: string | null;
27604
27955
  sent_at: string | null;
27605
27956
  skip_reason: string | null;
27606
27957
  status: string;
@@ -27864,6 +28215,19 @@ export type Database = {
27864
28215
  Args: never;
27865
28216
  Returns: undefined;
27866
28217
  };
28218
+ complete_floriday_base_supply: {
28219
+ Args: {
28220
+ p_attempt_id?: string;
28221
+ p_error?: string;
28222
+ p_id: string;
28223
+ p_kind: string;
28224
+ p_label?: string;
28225
+ p_outcome?: string;
28226
+ p_price?: number;
28227
+ p_price_status?: string;
28228
+ };
28229
+ Returns: string;
28230
+ };
27867
28231
  complete_floriday_stock_queue: {
27868
28232
  Args: {
27869
28233
  p_attempt_id?: string;
@@ -28040,6 +28404,19 @@ export type Database = {
28040
28404
  };
28041
28405
  Returns: Json;
28042
28406
  };
28407
+ dashboard_funnel_betaald: {
28408
+ Args: {
28409
+ _bedragen: number[];
28410
+ _statussen: string[];
28411
+ };
28412
+ Returns: boolean;
28413
+ };
28414
+ dashboard_jaar_start: {
28415
+ Args: {
28416
+ _vandaag: string;
28417
+ };
28418
+ Returns: string;
28419
+ };
28043
28420
  dashboard_list_public_schema: {
28044
28421
  Args: never;
28045
28422
  Returns: {
@@ -28048,6 +28425,29 @@ export type Database = {
28048
28425
  table_name: string;
28049
28426
  }[];
28050
28427
  };
28428
+ dashboard_werkbon_funnel: {
28429
+ Args: {
28430
+ _periode?: string;
28431
+ };
28432
+ Returns: Json;
28433
+ };
28434
+ dashboard_werkbon_jaarstats: {
28435
+ Args: never;
28436
+ Returns: Json;
28437
+ };
28438
+ dashboard_werkbon_soort: {
28439
+ Args: {
28440
+ _source: string;
28441
+ };
28442
+ Returns: string;
28443
+ };
28444
+ dashboard_werkbon_teller_plus: {
28445
+ Args: {
28446
+ _soort: string;
28447
+ _ts: string;
28448
+ };
28449
+ Returns: undefined;
28450
+ };
28051
28451
  delete_samenstelling: {
28052
28452
  Args: {
28053
28453
  p_parent_id: string;
@@ -28341,6 +28741,17 @@ export type Database = {
28341
28741
  };
28342
28742
  Returns: string;
28343
28743
  };
28744
+ fust_negative_stock_report: {
28745
+ Args: never;
28746
+ Returns: {
28747
+ duplicate_names: number;
28748
+ fust_key: string;
28749
+ fust_type_id: string;
28750
+ name: string;
28751
+ shortage: number;
28752
+ stock: number;
28753
+ }[];
28754
+ };
28344
28755
  get_active_floriday_connection_public: {
28345
28756
  Args: never;
28346
28757
  Returns: {
@@ -29253,6 +29664,24 @@ export type Database = {
29253
29664
  };
29254
29665
  Returns: string;
29255
29666
  };
29667
+ logistics_allocation_check_changes: {
29668
+ Args: {
29669
+ p_order_item_ids?: string[];
29670
+ };
29671
+ Returns: Json;
29672
+ };
29673
+ logistics_allocation_fp: {
29674
+ Args: {
29675
+ p_order_id: string;
29676
+ };
29677
+ Returns: string;
29678
+ };
29679
+ logistics_allocation_frozen: {
29680
+ Args: {
29681
+ p_order_id: string;
29682
+ };
29683
+ Returns: boolean;
29684
+ };
29256
29685
  logistics_allowed_load_carriers: {
29257
29686
  Args: {
29258
29687
  p_strategy_id?: string;
@@ -29949,6 +30378,15 @@ export type Database = {
29949
30378
  };
29950
30379
  Returns: Database["public"]["Enums"]["doc_layout_type"][];
29951
30380
  };
30381
+ logistics_double_group_lines: {
30382
+ Args: {
30383
+ p_order_id?: string;
30384
+ };
30385
+ Returns: {
30386
+ group_id: string;
30387
+ order_item_id: string;
30388
+ }[];
30389
+ };
29952
30390
  logistics_emit_event: {
29953
30391
  Args: {
29954
30392
  p_event_type: string;
@@ -30207,6 +30645,18 @@ export type Database = {
30207
30645
  };
30208
30646
  Returns: boolean;
30209
30647
  };
30648
+ logistics_frozen_allocation_scaled: {
30649
+ Args: {
30650
+ p_new_qty: number;
30651
+ p_order_item_id: string;
30652
+ };
30653
+ Returns: {
30654
+ group_id: string;
30655
+ qty: number;
30656
+ source: string;
30657
+ trade_item_key: string;
30658
+ }[];
30659
+ };
30210
30660
  logistics_fulfill_barcode_requests: {
30211
30661
  Args: {
30212
30662
  p_limit?: number;
@@ -30221,6 +30671,10 @@ export type Database = {
30221
30671
  Args: never;
30222
30672
  Returns: number;
30223
30673
  };
30674
+ logistics_is_beheer: {
30675
+ Args: never;
30676
+ Returns: boolean;
30677
+ };
30224
30678
  logistics_is_engine_response: {
30225
30679
  Args: {
30226
30680
  p_content: string;
@@ -30240,6 +30694,12 @@ export type Database = {
30240
30694
  };
30241
30695
  Returns: boolean;
30242
30696
  };
30697
+ logistics_key_product: {
30698
+ Args: {
30699
+ p_key: string;
30700
+ };
30701
+ Returns: string;
30702
+ };
30243
30703
  logistics_layout_method_status: {
30244
30704
  Args: never;
30245
30705
  Returns: Json;
@@ -30342,6 +30802,12 @@ export type Database = {
30342
30802
  };
30343
30803
  Returns: undefined;
30344
30804
  };
30805
+ logistics_order_current_warnings: {
30806
+ Args: {
30807
+ p_order_id: string;
30808
+ };
30809
+ Returns: string[];
30810
+ };
30345
30811
  logistics_order_documents_ready: {
30346
30812
  Args: {
30347
30813
  p_order_ref: string;
@@ -30416,6 +30882,12 @@ export type Database = {
30416
30882
  };
30417
30883
  Returns: boolean;
30418
30884
  };
30885
+ logistics_order_is_frozen: {
30886
+ Args: {
30887
+ p_order_id: string;
30888
+ };
30889
+ Returns: boolean;
30890
+ };
30419
30891
  logistics_order_is_topick: {
30420
30892
  Args: {
30421
30893
  p_order_id: string;
@@ -30478,6 +30950,30 @@ export type Database = {
30478
30950
  };
30479
30951
  Returns: string;
30480
30952
  };
30953
+ logistics_order_plan_coverage: {
30954
+ Args: {
30955
+ p_order_id: string;
30956
+ };
30957
+ Returns: Json;
30958
+ };
30959
+ logistics_order_plan_coverage_list: {
30960
+ Args: {
30961
+ p_order_ids: string[];
30962
+ };
30963
+ Returns: {
30964
+ buffer_id: string;
30965
+ cart_count: number;
30966
+ label: string;
30967
+ order_id: string;
30968
+ order_number: string;
30969
+ pick_row_count: number;
30970
+ pick_status: string;
30971
+ picked_at: string;
30972
+ progress_pct: number;
30973
+ reason: string;
30974
+ state: string;
30975
+ }[];
30976
+ };
30481
30977
  logistics_order_released: {
30482
30978
  Args: {
30483
30979
  p_order_ref: string;
@@ -30638,12 +31134,22 @@ export type Database = {
30638
31134
  order_id: string;
30639
31135
  }[];
30640
31136
  };
31137
+ logistics_plan_coverage_check: {
31138
+ Args: {
31139
+ p_limit?: number;
31140
+ };
31141
+ Returns: Json;
31142
+ };
30641
31143
  logistics_plan_defer: {
30642
31144
  Args: {
30643
31145
  p_id: string;
30644
31146
  };
30645
31147
  Returns: undefined;
30646
31148
  };
31149
+ logistics_plan_due_count: {
31150
+ Args: never;
31151
+ Returns: number;
31152
+ };
30647
31153
  logistics_plan_enqueue: {
30648
31154
  Args: {
30649
31155
  p_order_id: string;
@@ -30824,6 +31330,23 @@ export type Database = {
30824
31330
  Args: never;
30825
31331
  Returns: number;
30826
31332
  };
31333
+ logistics_planner_lines: {
31334
+ Args: {
31335
+ p_order_id: string;
31336
+ };
31337
+ Returns: {
31338
+ components: Json;
31339
+ frozen: boolean;
31340
+ group_id: string;
31341
+ note: string;
31342
+ order_item_id: string;
31343
+ product_id: string;
31344
+ product_name: string;
31345
+ qty: number;
31346
+ trade_item_key: string;
31347
+ unit_kind: string;
31348
+ }[];
31349
+ };
30827
31350
  logistics_prepare_pick_documents: {
30828
31351
  Args: {
30829
31352
  p_limit?: number;
@@ -30935,6 +31458,16 @@ export type Database = {
30935
31458
  };
30936
31459
  Returns: Json;
30937
31460
  };
31461
+ logistics_replan_candidates: {
31462
+ Args: {
31463
+ p_delivery_date?: string;
31464
+ p_include_frozen?: boolean;
31465
+ };
31466
+ Returns: {
31467
+ frozen: boolean;
31468
+ order_id: string;
31469
+ }[];
31470
+ };
30938
31471
  logistics_replan_clear_foreign_cart_items: {
30939
31472
  Args: {
30940
31473
  p_order_id: string;
@@ -30954,6 +31487,28 @@ export type Database = {
30954
31487
  };
30955
31488
  Returns: Json;
30956
31489
  };
31490
+ logistics_replan_preview: {
31491
+ Args: {
31492
+ p_delivery_date?: string;
31493
+ p_include_frozen?: boolean;
31494
+ };
31495
+ Returns: Json;
31496
+ };
31497
+ logistics_replan_selected: {
31498
+ Args: {
31499
+ p_confirm_count: number;
31500
+ p_delivery_date?: string;
31501
+ p_include_frozen?: boolean;
31502
+ };
31503
+ Returns: Json;
31504
+ };
31505
+ logistics_replan_selected_orders: {
31506
+ Args: {
31507
+ p_order_ids: string[];
31508
+ p_reason?: string;
31509
+ };
31510
+ Returns: Json;
31511
+ };
30957
31512
  logistics_report_delay: {
30958
31513
  Args: {
30959
31514
  p_expected_date?: string;
@@ -30970,6 +31525,12 @@ export type Database = {
30970
31525
  };
30971
31526
  Returns: string;
30972
31527
  };
31528
+ logistics_report_frozen_shortage: {
31529
+ Args: {
31530
+ p_order_item_ids: string[];
31531
+ };
31532
+ Returns: undefined;
31533
+ };
30973
31534
  logistics_rescan_orders: {
30974
31535
  Args: {
30975
31536
  p_days?: number;
@@ -31110,6 +31671,13 @@ export type Database = {
31110
31671
  };
31111
31672
  Returns: number;
31112
31673
  };
31674
+ logistics_set_components_scaled: {
31675
+ Args: {
31676
+ p_order_item_id: string;
31677
+ p_plants: number;
31678
+ };
31679
+ Returns: Json;
31680
+ };
31113
31681
  logistics_set_order_priority: {
31114
31682
  Args: {
31115
31683
  p_order_ref: string;
@@ -33070,6 +33638,10 @@ export type Database = {
33070
33638
  };
33071
33639
  Returns: number;
33072
33640
  };
33641
+ run_floriday_base_supply_process: {
33642
+ Args: never;
33643
+ Returns: undefined;
33644
+ };
33073
33645
  run_floriday_continuous_stock_sync: {
33074
33646
  Args: never;
33075
33647
  Returns: undefined;
@@ -34429,16 +35001,40 @@ export type Database = {
34429
35001
  };
34430
35002
  Returns: Json;
34431
35003
  };
35004
+ voorraad_can_write: {
35005
+ Args: never;
35006
+ Returns: boolean;
35007
+ };
34432
35008
  voorraad_cleanup_old_rows: {
34433
35009
  Args: never;
34434
35010
  Returns: Json;
34435
35011
  };
35012
+ voorraad_production_enabled: {
35013
+ Args: never;
35014
+ Returns: boolean;
35015
+ };
35016
+ voorraad_week_is_past: {
35017
+ Args: {
35018
+ p_week: number;
35019
+ p_year: number;
35020
+ };
35021
+ Returns: boolean;
35022
+ };
34436
35023
  wake_print_queue: {
34437
35024
  Args: {
34438
35025
  _min_interval_ms?: number;
34439
35026
  };
34440
35027
  Returns: number;
34441
35028
  };
35029
+ werkbon_format_project_number: {
35030
+ Args: {
35031
+ _parent_project_number?: string;
35032
+ _sequence_number: number;
35033
+ _source_type: string;
35034
+ _version: number;
35035
+ };
35036
+ Returns: string;
35037
+ };
34442
35038
  werkbon_pakket_tijden: {
34443
35039
  Args: {
34444
35040
  _werkbon_id: string;
@@ -34461,6 +35057,14 @@ export type Database = {
34461
35057
  total_minutes: number;
34462
35058
  }[];
34463
35059
  };
35060
+ wo_boek_standby_uren: {
35061
+ Args: {
35062
+ _datum: string;
35063
+ _minuten: number;
35064
+ _werkbon_id: string;
35065
+ };
35066
+ Returns: Json;
35067
+ };
34464
35068
  wo_create_from_source: {
34465
35069
  Args: {
34466
35070
  _payload?: Json;