@flowselections/mailbox-orders 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +82 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +82 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +82 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +82 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/mailbox-template.functions.d.ts +492 -0
- package/dist-lib/lib/mailbox-template.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.d.ts +1396 -1
- package/dist-lib/lib/mailbox.functions.d.ts.map +1 -1
- package/dist-lib/lib/mailbox.functions.js +43 -8
- package/package.json +1 -1
|
@@ -748,6 +748,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
748
748
|
notes: string | null;
|
|
749
749
|
performed_at: string;
|
|
750
750
|
rescheduled_count: number;
|
|
751
|
+
stock_consumed_at: string | null;
|
|
751
752
|
total_carts: number;
|
|
752
753
|
updated_at: string;
|
|
753
754
|
user_id: string;
|
|
@@ -761,6 +762,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
761
762
|
notes?: string | null;
|
|
762
763
|
performed_at?: string;
|
|
763
764
|
rescheduled_count?: number;
|
|
765
|
+
stock_consumed_at?: string | null;
|
|
764
766
|
total_carts?: number;
|
|
765
767
|
updated_at?: string;
|
|
766
768
|
user_id: string;
|
|
@@ -774,6 +776,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
774
776
|
notes?: string | null;
|
|
775
777
|
performed_at?: string;
|
|
776
778
|
rescheduled_count?: number;
|
|
779
|
+
stock_consumed_at?: string | null;
|
|
777
780
|
total_carts?: number;
|
|
778
781
|
updated_at?: string;
|
|
779
782
|
user_id?: string;
|
|
@@ -6532,6 +6535,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
6532
6535
|
purchase_price: number | null;
|
|
6533
6536
|
quantity: number;
|
|
6534
6537
|
sale_price: number | null;
|
|
6538
|
+
trade_item_key: string | null;
|
|
6535
6539
|
unit: string;
|
|
6536
6540
|
updated_at: string;
|
|
6537
6541
|
weight: string | null;
|
|
@@ -6554,6 +6558,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
6554
6558
|
purchase_price?: number | null;
|
|
6555
6559
|
quantity?: number;
|
|
6556
6560
|
sale_price?: number | null;
|
|
6561
|
+
trade_item_key?: string | null;
|
|
6557
6562
|
unit?: string;
|
|
6558
6563
|
updated_at?: string;
|
|
6559
6564
|
weight?: string | null;
|
|
@@ -6576,6 +6581,7 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
6576
6581
|
purchase_price?: number | null;
|
|
6577
6582
|
quantity?: number;
|
|
6578
6583
|
sale_price?: number | null;
|
|
6584
|
+
trade_item_key?: string | null;
|
|
6579
6585
|
unit?: string;
|
|
6580
6586
|
updated_at?: string;
|
|
6581
6587
|
weight?: string | null;
|
|
@@ -7395,6 +7401,60 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
7395
7401
|
};
|
|
7396
7402
|
Relationships: [];
|
|
7397
7403
|
};
|
|
7404
|
+
stock_mutation_log: {
|
|
7405
|
+
Row: {
|
|
7406
|
+
connection_id: string | null;
|
|
7407
|
+
created_at: string;
|
|
7408
|
+
created_by: string | null;
|
|
7409
|
+
id: string;
|
|
7410
|
+
mutation_type: string;
|
|
7411
|
+
order_id: string | null;
|
|
7412
|
+
order_item_id: string | null;
|
|
7413
|
+
order_source: string | null;
|
|
7414
|
+
physical_after: number | null;
|
|
7415
|
+
physical_before: number | null;
|
|
7416
|
+
qty_delta: number;
|
|
7417
|
+
reason: string | null;
|
|
7418
|
+
reserved_after: number | null;
|
|
7419
|
+
reserved_before: number | null;
|
|
7420
|
+
trade_item_key: string;
|
|
7421
|
+
};
|
|
7422
|
+
Insert: {
|
|
7423
|
+
connection_id?: string | null;
|
|
7424
|
+
created_at?: string;
|
|
7425
|
+
created_by?: string | null;
|
|
7426
|
+
id?: string;
|
|
7427
|
+
mutation_type: string;
|
|
7428
|
+
order_id?: string | null;
|
|
7429
|
+
order_item_id?: string | null;
|
|
7430
|
+
order_source?: string | null;
|
|
7431
|
+
physical_after?: number | null;
|
|
7432
|
+
physical_before?: number | null;
|
|
7433
|
+
qty_delta: number;
|
|
7434
|
+
reason?: string | null;
|
|
7435
|
+
reserved_after?: number | null;
|
|
7436
|
+
reserved_before?: number | null;
|
|
7437
|
+
trade_item_key: string;
|
|
7438
|
+
};
|
|
7439
|
+
Update: {
|
|
7440
|
+
connection_id?: string | null;
|
|
7441
|
+
created_at?: string;
|
|
7442
|
+
created_by?: string | null;
|
|
7443
|
+
id?: string;
|
|
7444
|
+
mutation_type?: string;
|
|
7445
|
+
order_id?: string | null;
|
|
7446
|
+
order_item_id?: string | null;
|
|
7447
|
+
order_source?: string | null;
|
|
7448
|
+
physical_after?: number | null;
|
|
7449
|
+
physical_before?: number | null;
|
|
7450
|
+
qty_delta?: number;
|
|
7451
|
+
reason?: string | null;
|
|
7452
|
+
reserved_after?: number | null;
|
|
7453
|
+
reserved_before?: number | null;
|
|
7454
|
+
trade_item_key?: string;
|
|
7455
|
+
};
|
|
7456
|
+
Relationships: [];
|
|
7457
|
+
};
|
|
7398
7458
|
supplier_products: {
|
|
7399
7459
|
Row: {
|
|
7400
7460
|
article_number: string | null;
|
|
@@ -9256,6 +9316,28 @@ export declare const ingestEmailEvent: import("@tanstack/start-client-core").Opt
|
|
|
9256
9316
|
};
|
|
9257
9317
|
Returns: number;
|
|
9258
9318
|
};
|
|
9319
|
+
apply_stock_consumption: {
|
|
9320
|
+
Args: {
|
|
9321
|
+
p_order_id: string;
|
|
9322
|
+
p_order_item_id: string;
|
|
9323
|
+
p_qty: number;
|
|
9324
|
+
p_reason: string;
|
|
9325
|
+
p_source: string;
|
|
9326
|
+
p_trade_item_key: string;
|
|
9327
|
+
};
|
|
9328
|
+
Returns: undefined;
|
|
9329
|
+
};
|
|
9330
|
+
apply_stock_reservation: {
|
|
9331
|
+
Args: {
|
|
9332
|
+
p_order_id: string;
|
|
9333
|
+
p_order_item_id: string;
|
|
9334
|
+
p_qty: number;
|
|
9335
|
+
p_reason: string;
|
|
9336
|
+
p_source: string;
|
|
9337
|
+
p_trade_item_key: string;
|
|
9338
|
+
};
|
|
9339
|
+
Returns: undefined;
|
|
9340
|
+
};
|
|
9259
9341
|
assign_cart_numbers: {
|
|
9260
9342
|
Args: {
|
|
9261
9343
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -10673,6 +10755,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
10673
10755
|
notes: string | null;
|
|
10674
10756
|
performed_at: string;
|
|
10675
10757
|
rescheduled_count: number;
|
|
10758
|
+
stock_consumed_at: string | null;
|
|
10676
10759
|
total_carts: number;
|
|
10677
10760
|
updated_at: string;
|
|
10678
10761
|
user_id: string;
|
|
@@ -10686,6 +10769,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
10686
10769
|
notes?: string | null;
|
|
10687
10770
|
performed_at?: string;
|
|
10688
10771
|
rescheduled_count?: number;
|
|
10772
|
+
stock_consumed_at?: string | null;
|
|
10689
10773
|
total_carts?: number;
|
|
10690
10774
|
updated_at?: string;
|
|
10691
10775
|
user_id: string;
|
|
@@ -10699,6 +10783,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
10699
10783
|
notes?: string | null;
|
|
10700
10784
|
performed_at?: string;
|
|
10701
10785
|
rescheduled_count?: number;
|
|
10786
|
+
stock_consumed_at?: string | null;
|
|
10702
10787
|
total_carts?: number;
|
|
10703
10788
|
updated_at?: string;
|
|
10704
10789
|
user_id?: string;
|
|
@@ -16457,6 +16542,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
16457
16542
|
purchase_price: number | null;
|
|
16458
16543
|
quantity: number;
|
|
16459
16544
|
sale_price: number | null;
|
|
16545
|
+
trade_item_key: string | null;
|
|
16460
16546
|
unit: string;
|
|
16461
16547
|
updated_at: string;
|
|
16462
16548
|
weight: string | null;
|
|
@@ -16479,6 +16565,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
16479
16565
|
purchase_price?: number | null;
|
|
16480
16566
|
quantity?: number;
|
|
16481
16567
|
sale_price?: number | null;
|
|
16568
|
+
trade_item_key?: string | null;
|
|
16482
16569
|
unit?: string;
|
|
16483
16570
|
updated_at?: string;
|
|
16484
16571
|
weight?: string | null;
|
|
@@ -16501,6 +16588,7 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
16501
16588
|
purchase_price?: number | null;
|
|
16502
16589
|
quantity?: number;
|
|
16503
16590
|
sale_price?: number | null;
|
|
16591
|
+
trade_item_key?: string | null;
|
|
16504
16592
|
unit?: string;
|
|
16505
16593
|
updated_at?: string;
|
|
16506
16594
|
weight?: string | null;
|
|
@@ -17320,6 +17408,60 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
17320
17408
|
};
|
|
17321
17409
|
Relationships: [];
|
|
17322
17410
|
};
|
|
17411
|
+
stock_mutation_log: {
|
|
17412
|
+
Row: {
|
|
17413
|
+
connection_id: string | null;
|
|
17414
|
+
created_at: string;
|
|
17415
|
+
created_by: string | null;
|
|
17416
|
+
id: string;
|
|
17417
|
+
mutation_type: string;
|
|
17418
|
+
order_id: string | null;
|
|
17419
|
+
order_item_id: string | null;
|
|
17420
|
+
order_source: string | null;
|
|
17421
|
+
physical_after: number | null;
|
|
17422
|
+
physical_before: number | null;
|
|
17423
|
+
qty_delta: number;
|
|
17424
|
+
reason: string | null;
|
|
17425
|
+
reserved_after: number | null;
|
|
17426
|
+
reserved_before: number | null;
|
|
17427
|
+
trade_item_key: string;
|
|
17428
|
+
};
|
|
17429
|
+
Insert: {
|
|
17430
|
+
connection_id?: string | null;
|
|
17431
|
+
created_at?: string;
|
|
17432
|
+
created_by?: string | null;
|
|
17433
|
+
id?: string;
|
|
17434
|
+
mutation_type: string;
|
|
17435
|
+
order_id?: string | null;
|
|
17436
|
+
order_item_id?: string | null;
|
|
17437
|
+
order_source?: string | null;
|
|
17438
|
+
physical_after?: number | null;
|
|
17439
|
+
physical_before?: number | null;
|
|
17440
|
+
qty_delta: number;
|
|
17441
|
+
reason?: string | null;
|
|
17442
|
+
reserved_after?: number | null;
|
|
17443
|
+
reserved_before?: number | null;
|
|
17444
|
+
trade_item_key: string;
|
|
17445
|
+
};
|
|
17446
|
+
Update: {
|
|
17447
|
+
connection_id?: string | null;
|
|
17448
|
+
created_at?: string;
|
|
17449
|
+
created_by?: string | null;
|
|
17450
|
+
id?: string;
|
|
17451
|
+
mutation_type?: string;
|
|
17452
|
+
order_id?: string | null;
|
|
17453
|
+
order_item_id?: string | null;
|
|
17454
|
+
order_source?: string | null;
|
|
17455
|
+
physical_after?: number | null;
|
|
17456
|
+
physical_before?: number | null;
|
|
17457
|
+
qty_delta?: number;
|
|
17458
|
+
reason?: string | null;
|
|
17459
|
+
reserved_after?: number | null;
|
|
17460
|
+
reserved_before?: number | null;
|
|
17461
|
+
trade_item_key?: string;
|
|
17462
|
+
};
|
|
17463
|
+
Relationships: [];
|
|
17464
|
+
};
|
|
17323
17465
|
supplier_products: {
|
|
17324
17466
|
Row: {
|
|
17325
17467
|
article_number: string | null;
|
|
@@ -19181,6 +19323,28 @@ export declare const backfillRecentEvents: import("@tanstack/start-client-core")
|
|
|
19181
19323
|
};
|
|
19182
19324
|
Returns: number;
|
|
19183
19325
|
};
|
|
19326
|
+
apply_stock_consumption: {
|
|
19327
|
+
Args: {
|
|
19328
|
+
p_order_id: string;
|
|
19329
|
+
p_order_item_id: string;
|
|
19330
|
+
p_qty: number;
|
|
19331
|
+
p_reason: string;
|
|
19332
|
+
p_source: string;
|
|
19333
|
+
p_trade_item_key: string;
|
|
19334
|
+
};
|
|
19335
|
+
Returns: undefined;
|
|
19336
|
+
};
|
|
19337
|
+
apply_stock_reservation: {
|
|
19338
|
+
Args: {
|
|
19339
|
+
p_order_id: string;
|
|
19340
|
+
p_order_item_id: string;
|
|
19341
|
+
p_qty: number;
|
|
19342
|
+
p_reason: string;
|
|
19343
|
+
p_source: string;
|
|
19344
|
+
p_trade_item_key: string;
|
|
19345
|
+
};
|
|
19346
|
+
Returns: undefined;
|
|
19347
|
+
};
|
|
19184
19348
|
assign_cart_numbers: {
|
|
19185
19349
|
Args: {
|
|
19186
19350
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -20596,6 +20760,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
20596
20760
|
notes: string | null;
|
|
20597
20761
|
performed_at: string;
|
|
20598
20762
|
rescheduled_count: number;
|
|
20763
|
+
stock_consumed_at: string | null;
|
|
20599
20764
|
total_carts: number;
|
|
20600
20765
|
updated_at: string;
|
|
20601
20766
|
user_id: string;
|
|
@@ -20609,6 +20774,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
20609
20774
|
notes?: string | null;
|
|
20610
20775
|
performed_at?: string;
|
|
20611
20776
|
rescheduled_count?: number;
|
|
20777
|
+
stock_consumed_at?: string | null;
|
|
20612
20778
|
total_carts?: number;
|
|
20613
20779
|
updated_at?: string;
|
|
20614
20780
|
user_id: string;
|
|
@@ -20622,6 +20788,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
20622
20788
|
notes?: string | null;
|
|
20623
20789
|
performed_at?: string;
|
|
20624
20790
|
rescheduled_count?: number;
|
|
20791
|
+
stock_consumed_at?: string | null;
|
|
20625
20792
|
total_carts?: number;
|
|
20626
20793
|
updated_at?: string;
|
|
20627
20794
|
user_id?: string;
|
|
@@ -26380,6 +26547,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
26380
26547
|
purchase_price: number | null;
|
|
26381
26548
|
quantity: number;
|
|
26382
26549
|
sale_price: number | null;
|
|
26550
|
+
trade_item_key: string | null;
|
|
26383
26551
|
unit: string;
|
|
26384
26552
|
updated_at: string;
|
|
26385
26553
|
weight: string | null;
|
|
@@ -26402,6 +26570,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
26402
26570
|
purchase_price?: number | null;
|
|
26403
26571
|
quantity?: number;
|
|
26404
26572
|
sale_price?: number | null;
|
|
26573
|
+
trade_item_key?: string | null;
|
|
26405
26574
|
unit?: string;
|
|
26406
26575
|
updated_at?: string;
|
|
26407
26576
|
weight?: string | null;
|
|
@@ -26424,6 +26593,7 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
26424
26593
|
purchase_price?: number | null;
|
|
26425
26594
|
quantity?: number;
|
|
26426
26595
|
sale_price?: number | null;
|
|
26596
|
+
trade_item_key?: string | null;
|
|
26427
26597
|
unit?: string;
|
|
26428
26598
|
updated_at?: string;
|
|
26429
26599
|
weight?: string | null;
|
|
@@ -27243,6 +27413,60 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
27243
27413
|
};
|
|
27244
27414
|
Relationships: [];
|
|
27245
27415
|
};
|
|
27416
|
+
stock_mutation_log: {
|
|
27417
|
+
Row: {
|
|
27418
|
+
connection_id: string | null;
|
|
27419
|
+
created_at: string;
|
|
27420
|
+
created_by: string | null;
|
|
27421
|
+
id: string;
|
|
27422
|
+
mutation_type: string;
|
|
27423
|
+
order_id: string | null;
|
|
27424
|
+
order_item_id: string | null;
|
|
27425
|
+
order_source: string | null;
|
|
27426
|
+
physical_after: number | null;
|
|
27427
|
+
physical_before: number | null;
|
|
27428
|
+
qty_delta: number;
|
|
27429
|
+
reason: string | null;
|
|
27430
|
+
reserved_after: number | null;
|
|
27431
|
+
reserved_before: number | null;
|
|
27432
|
+
trade_item_key: string;
|
|
27433
|
+
};
|
|
27434
|
+
Insert: {
|
|
27435
|
+
connection_id?: string | null;
|
|
27436
|
+
created_at?: string;
|
|
27437
|
+
created_by?: string | null;
|
|
27438
|
+
id?: string;
|
|
27439
|
+
mutation_type: string;
|
|
27440
|
+
order_id?: string | null;
|
|
27441
|
+
order_item_id?: string | null;
|
|
27442
|
+
order_source?: string | null;
|
|
27443
|
+
physical_after?: number | null;
|
|
27444
|
+
physical_before?: number | null;
|
|
27445
|
+
qty_delta: number;
|
|
27446
|
+
reason?: string | null;
|
|
27447
|
+
reserved_after?: number | null;
|
|
27448
|
+
reserved_before?: number | null;
|
|
27449
|
+
trade_item_key: string;
|
|
27450
|
+
};
|
|
27451
|
+
Update: {
|
|
27452
|
+
connection_id?: string | null;
|
|
27453
|
+
created_at?: string;
|
|
27454
|
+
created_by?: string | null;
|
|
27455
|
+
id?: string;
|
|
27456
|
+
mutation_type?: string;
|
|
27457
|
+
order_id?: string | null;
|
|
27458
|
+
order_item_id?: string | null;
|
|
27459
|
+
order_source?: string | null;
|
|
27460
|
+
physical_after?: number | null;
|
|
27461
|
+
physical_before?: number | null;
|
|
27462
|
+
qty_delta?: number;
|
|
27463
|
+
reason?: string | null;
|
|
27464
|
+
reserved_after?: number | null;
|
|
27465
|
+
reserved_before?: number | null;
|
|
27466
|
+
trade_item_key?: string;
|
|
27467
|
+
};
|
|
27468
|
+
Relationships: [];
|
|
27469
|
+
};
|
|
27246
27470
|
supplier_products: {
|
|
27247
27471
|
Row: {
|
|
27248
27472
|
article_number: string | null;
|
|
@@ -29104,6 +29328,28 @@ export declare const listMessages: import("@tanstack/start-client-core").Optiona
|
|
|
29104
29328
|
};
|
|
29105
29329
|
Returns: number;
|
|
29106
29330
|
};
|
|
29331
|
+
apply_stock_consumption: {
|
|
29332
|
+
Args: {
|
|
29333
|
+
p_order_id: string;
|
|
29334
|
+
p_order_item_id: string;
|
|
29335
|
+
p_qty: number;
|
|
29336
|
+
p_reason: string;
|
|
29337
|
+
p_source: string;
|
|
29338
|
+
p_trade_item_key: string;
|
|
29339
|
+
};
|
|
29340
|
+
Returns: undefined;
|
|
29341
|
+
};
|
|
29342
|
+
apply_stock_reservation: {
|
|
29343
|
+
Args: {
|
|
29344
|
+
p_order_id: string;
|
|
29345
|
+
p_order_item_id: string;
|
|
29346
|
+
p_qty: number;
|
|
29347
|
+
p_reason: string;
|
|
29348
|
+
p_source: string;
|
|
29349
|
+
p_trade_item_key: string;
|
|
29350
|
+
};
|
|
29351
|
+
Returns: undefined;
|
|
29352
|
+
};
|
|
29107
29353
|
assign_cart_numbers: {
|
|
29108
29354
|
Args: {
|
|
29109
29355
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -30519,6 +30765,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
30519
30765
|
notes: string | null;
|
|
30520
30766
|
performed_at: string;
|
|
30521
30767
|
rescheduled_count: number;
|
|
30768
|
+
stock_consumed_at: string | null;
|
|
30522
30769
|
total_carts: number;
|
|
30523
30770
|
updated_at: string;
|
|
30524
30771
|
user_id: string;
|
|
@@ -30532,6 +30779,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
30532
30779
|
notes?: string | null;
|
|
30533
30780
|
performed_at?: string;
|
|
30534
30781
|
rescheduled_count?: number;
|
|
30782
|
+
stock_consumed_at?: string | null;
|
|
30535
30783
|
total_carts?: number;
|
|
30536
30784
|
updated_at?: string;
|
|
30537
30785
|
user_id: string;
|
|
@@ -30545,6 +30793,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
30545
30793
|
notes?: string | null;
|
|
30546
30794
|
performed_at?: string;
|
|
30547
30795
|
rescheduled_count?: number;
|
|
30796
|
+
stock_consumed_at?: string | null;
|
|
30548
30797
|
total_carts?: number;
|
|
30549
30798
|
updated_at?: string;
|
|
30550
30799
|
user_id?: string;
|
|
@@ -36303,6 +36552,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
36303
36552
|
purchase_price: number | null;
|
|
36304
36553
|
quantity: number;
|
|
36305
36554
|
sale_price: number | null;
|
|
36555
|
+
trade_item_key: string | null;
|
|
36306
36556
|
unit: string;
|
|
36307
36557
|
updated_at: string;
|
|
36308
36558
|
weight: string | null;
|
|
@@ -36325,6 +36575,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
36325
36575
|
purchase_price?: number | null;
|
|
36326
36576
|
quantity?: number;
|
|
36327
36577
|
sale_price?: number | null;
|
|
36578
|
+
trade_item_key?: string | null;
|
|
36328
36579
|
unit?: string;
|
|
36329
36580
|
updated_at?: string;
|
|
36330
36581
|
weight?: string | null;
|
|
@@ -36347,6 +36598,7 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
36347
36598
|
purchase_price?: number | null;
|
|
36348
36599
|
quantity?: number;
|
|
36349
36600
|
sale_price?: number | null;
|
|
36601
|
+
trade_item_key?: string | null;
|
|
36350
36602
|
unit?: string;
|
|
36351
36603
|
updated_at?: string;
|
|
36352
36604
|
weight?: string | null;
|
|
@@ -37166,6 +37418,60 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
37166
37418
|
};
|
|
37167
37419
|
Relationships: [];
|
|
37168
37420
|
};
|
|
37421
|
+
stock_mutation_log: {
|
|
37422
|
+
Row: {
|
|
37423
|
+
connection_id: string | null;
|
|
37424
|
+
created_at: string;
|
|
37425
|
+
created_by: string | null;
|
|
37426
|
+
id: string;
|
|
37427
|
+
mutation_type: string;
|
|
37428
|
+
order_id: string | null;
|
|
37429
|
+
order_item_id: string | null;
|
|
37430
|
+
order_source: string | null;
|
|
37431
|
+
physical_after: number | null;
|
|
37432
|
+
physical_before: number | null;
|
|
37433
|
+
qty_delta: number;
|
|
37434
|
+
reason: string | null;
|
|
37435
|
+
reserved_after: number | null;
|
|
37436
|
+
reserved_before: number | null;
|
|
37437
|
+
trade_item_key: string;
|
|
37438
|
+
};
|
|
37439
|
+
Insert: {
|
|
37440
|
+
connection_id?: string | null;
|
|
37441
|
+
created_at?: string;
|
|
37442
|
+
created_by?: string | null;
|
|
37443
|
+
id?: string;
|
|
37444
|
+
mutation_type: string;
|
|
37445
|
+
order_id?: string | null;
|
|
37446
|
+
order_item_id?: string | null;
|
|
37447
|
+
order_source?: string | null;
|
|
37448
|
+
physical_after?: number | null;
|
|
37449
|
+
physical_before?: number | null;
|
|
37450
|
+
qty_delta: number;
|
|
37451
|
+
reason?: string | null;
|
|
37452
|
+
reserved_after?: number | null;
|
|
37453
|
+
reserved_before?: number | null;
|
|
37454
|
+
trade_item_key: string;
|
|
37455
|
+
};
|
|
37456
|
+
Update: {
|
|
37457
|
+
connection_id?: string | null;
|
|
37458
|
+
created_at?: string;
|
|
37459
|
+
created_by?: string | null;
|
|
37460
|
+
id?: string;
|
|
37461
|
+
mutation_type?: string;
|
|
37462
|
+
order_id?: string | null;
|
|
37463
|
+
order_item_id?: string | null;
|
|
37464
|
+
order_source?: string | null;
|
|
37465
|
+
physical_after?: number | null;
|
|
37466
|
+
physical_before?: number | null;
|
|
37467
|
+
qty_delta?: number;
|
|
37468
|
+
reason?: string | null;
|
|
37469
|
+
reserved_after?: number | null;
|
|
37470
|
+
reserved_before?: number | null;
|
|
37471
|
+
trade_item_key?: string;
|
|
37472
|
+
};
|
|
37473
|
+
Relationships: [];
|
|
37474
|
+
};
|
|
37169
37475
|
supplier_products: {
|
|
37170
37476
|
Row: {
|
|
37171
37477
|
article_number: string | null;
|
|
@@ -39027,6 +39333,28 @@ export declare const parseMessage: import("@tanstack/start-client-core").Optiona
|
|
|
39027
39333
|
};
|
|
39028
39334
|
Returns: number;
|
|
39029
39335
|
};
|
|
39336
|
+
apply_stock_consumption: {
|
|
39337
|
+
Args: {
|
|
39338
|
+
p_order_id: string;
|
|
39339
|
+
p_order_item_id: string;
|
|
39340
|
+
p_qty: number;
|
|
39341
|
+
p_reason: string;
|
|
39342
|
+
p_source: string;
|
|
39343
|
+
p_trade_item_key: string;
|
|
39344
|
+
};
|
|
39345
|
+
Returns: undefined;
|
|
39346
|
+
};
|
|
39347
|
+
apply_stock_reservation: {
|
|
39348
|
+
Args: {
|
|
39349
|
+
p_order_id: string;
|
|
39350
|
+
p_order_item_id: string;
|
|
39351
|
+
p_qty: number;
|
|
39352
|
+
p_reason: string;
|
|
39353
|
+
p_source: string;
|
|
39354
|
+
p_trade_item_key: string;
|
|
39355
|
+
};
|
|
39356
|
+
Returns: undefined;
|
|
39357
|
+
};
|
|
39030
39358
|
assign_cart_numbers: {
|
|
39031
39359
|
Args: {
|
|
39032
39360
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -40434,6 +40762,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
40434
40762
|
notes: string | null;
|
|
40435
40763
|
performed_at: string;
|
|
40436
40764
|
rescheduled_count: number;
|
|
40765
|
+
stock_consumed_at: string | null;
|
|
40437
40766
|
total_carts: number;
|
|
40438
40767
|
updated_at: string;
|
|
40439
40768
|
user_id: string;
|
|
@@ -40447,6 +40776,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
40447
40776
|
notes?: string | null;
|
|
40448
40777
|
performed_at?: string;
|
|
40449
40778
|
rescheduled_count?: number;
|
|
40779
|
+
stock_consumed_at?: string | null;
|
|
40450
40780
|
total_carts?: number;
|
|
40451
40781
|
updated_at?: string;
|
|
40452
40782
|
user_id: string;
|
|
@@ -40460,6 +40790,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
40460
40790
|
notes?: string | null;
|
|
40461
40791
|
performed_at?: string;
|
|
40462
40792
|
rescheduled_count?: number;
|
|
40793
|
+
stock_consumed_at?: string | null;
|
|
40463
40794
|
total_carts?: number;
|
|
40464
40795
|
updated_at?: string;
|
|
40465
40796
|
user_id?: string;
|
|
@@ -46218,6 +46549,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
46218
46549
|
purchase_price: number | null;
|
|
46219
46550
|
quantity: number;
|
|
46220
46551
|
sale_price: number | null;
|
|
46552
|
+
trade_item_key: string | null;
|
|
46221
46553
|
unit: string;
|
|
46222
46554
|
updated_at: string;
|
|
46223
46555
|
weight: string | null;
|
|
@@ -46240,6 +46572,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
46240
46572
|
purchase_price?: number | null;
|
|
46241
46573
|
quantity?: number;
|
|
46242
46574
|
sale_price?: number | null;
|
|
46575
|
+
trade_item_key?: string | null;
|
|
46243
46576
|
unit?: string;
|
|
46244
46577
|
updated_at?: string;
|
|
46245
46578
|
weight?: string | null;
|
|
@@ -46262,6 +46595,7 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
46262
46595
|
purchase_price?: number | null;
|
|
46263
46596
|
quantity?: number;
|
|
46264
46597
|
sale_price?: number | null;
|
|
46598
|
+
trade_item_key?: string | null;
|
|
46265
46599
|
unit?: string;
|
|
46266
46600
|
updated_at?: string;
|
|
46267
46601
|
weight?: string | null;
|
|
@@ -47081,6 +47415,60 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
47081
47415
|
};
|
|
47082
47416
|
Relationships: [];
|
|
47083
47417
|
};
|
|
47418
|
+
stock_mutation_log: {
|
|
47419
|
+
Row: {
|
|
47420
|
+
connection_id: string | null;
|
|
47421
|
+
created_at: string;
|
|
47422
|
+
created_by: string | null;
|
|
47423
|
+
id: string;
|
|
47424
|
+
mutation_type: string;
|
|
47425
|
+
order_id: string | null;
|
|
47426
|
+
order_item_id: string | null;
|
|
47427
|
+
order_source: string | null;
|
|
47428
|
+
physical_after: number | null;
|
|
47429
|
+
physical_before: number | null;
|
|
47430
|
+
qty_delta: number;
|
|
47431
|
+
reason: string | null;
|
|
47432
|
+
reserved_after: number | null;
|
|
47433
|
+
reserved_before: number | null;
|
|
47434
|
+
trade_item_key: string;
|
|
47435
|
+
};
|
|
47436
|
+
Insert: {
|
|
47437
|
+
connection_id?: string | null;
|
|
47438
|
+
created_at?: string;
|
|
47439
|
+
created_by?: string | null;
|
|
47440
|
+
id?: string;
|
|
47441
|
+
mutation_type: string;
|
|
47442
|
+
order_id?: string | null;
|
|
47443
|
+
order_item_id?: string | null;
|
|
47444
|
+
order_source?: string | null;
|
|
47445
|
+
physical_after?: number | null;
|
|
47446
|
+
physical_before?: number | null;
|
|
47447
|
+
qty_delta: number;
|
|
47448
|
+
reason?: string | null;
|
|
47449
|
+
reserved_after?: number | null;
|
|
47450
|
+
reserved_before?: number | null;
|
|
47451
|
+
trade_item_key: string;
|
|
47452
|
+
};
|
|
47453
|
+
Update: {
|
|
47454
|
+
connection_id?: string | null;
|
|
47455
|
+
created_at?: string;
|
|
47456
|
+
created_by?: string | null;
|
|
47457
|
+
id?: string;
|
|
47458
|
+
mutation_type?: string;
|
|
47459
|
+
order_id?: string | null;
|
|
47460
|
+
order_item_id?: string | null;
|
|
47461
|
+
order_source?: string | null;
|
|
47462
|
+
physical_after?: number | null;
|
|
47463
|
+
physical_before?: number | null;
|
|
47464
|
+
qty_delta?: number;
|
|
47465
|
+
reason?: string | null;
|
|
47466
|
+
reserved_after?: number | null;
|
|
47467
|
+
reserved_before?: number | null;
|
|
47468
|
+
trade_item_key?: string;
|
|
47469
|
+
};
|
|
47470
|
+
Relationships: [];
|
|
47471
|
+
};
|
|
47084
47472
|
supplier_products: {
|
|
47085
47473
|
Row: {
|
|
47086
47474
|
article_number: string | null;
|
|
@@ -48942,6 +49330,28 @@ export declare const listProposals: import("@tanstack/start-client-core").Option
|
|
|
48942
49330
|
};
|
|
48943
49331
|
Returns: number;
|
|
48944
49332
|
};
|
|
49333
|
+
apply_stock_consumption: {
|
|
49334
|
+
Args: {
|
|
49335
|
+
p_order_id: string;
|
|
49336
|
+
p_order_item_id: string;
|
|
49337
|
+
p_qty: number;
|
|
49338
|
+
p_reason: string;
|
|
49339
|
+
p_source: string;
|
|
49340
|
+
p_trade_item_key: string;
|
|
49341
|
+
};
|
|
49342
|
+
Returns: undefined;
|
|
49343
|
+
};
|
|
49344
|
+
apply_stock_reservation: {
|
|
49345
|
+
Args: {
|
|
49346
|
+
p_order_id: string;
|
|
49347
|
+
p_order_item_id: string;
|
|
49348
|
+
p_qty: number;
|
|
49349
|
+
p_reason: string;
|
|
49350
|
+
p_source: string;
|
|
49351
|
+
p_trade_item_key: string;
|
|
49352
|
+
};
|
|
49353
|
+
Returns: undefined;
|
|
49354
|
+
};
|
|
48945
49355
|
assign_cart_numbers: {
|
|
48946
49356
|
Args: {
|
|
48947
49357
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -50394,6 +50804,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
50394
50804
|
notes: string | null;
|
|
50395
50805
|
performed_at: string;
|
|
50396
50806
|
rescheduled_count: number;
|
|
50807
|
+
stock_consumed_at: string | null;
|
|
50397
50808
|
total_carts: number;
|
|
50398
50809
|
updated_at: string;
|
|
50399
50810
|
user_id: string;
|
|
@@ -50407,6 +50818,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
50407
50818
|
notes?: string | null;
|
|
50408
50819
|
performed_at?: string;
|
|
50409
50820
|
rescheduled_count?: number;
|
|
50821
|
+
stock_consumed_at?: string | null;
|
|
50410
50822
|
total_carts?: number;
|
|
50411
50823
|
updated_at?: string;
|
|
50412
50824
|
user_id: string;
|
|
@@ -50420,6 +50832,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
50420
50832
|
notes?: string | null;
|
|
50421
50833
|
performed_at?: string;
|
|
50422
50834
|
rescheduled_count?: number;
|
|
50835
|
+
stock_consumed_at?: string | null;
|
|
50423
50836
|
total_carts?: number;
|
|
50424
50837
|
updated_at?: string;
|
|
50425
50838
|
user_id?: string;
|
|
@@ -56178,6 +56591,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
56178
56591
|
purchase_price: number | null;
|
|
56179
56592
|
quantity: number;
|
|
56180
56593
|
sale_price: number | null;
|
|
56594
|
+
trade_item_key: string | null;
|
|
56181
56595
|
unit: string;
|
|
56182
56596
|
updated_at: string;
|
|
56183
56597
|
weight: string | null;
|
|
@@ -56200,6 +56614,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
56200
56614
|
purchase_price?: number | null;
|
|
56201
56615
|
quantity?: number;
|
|
56202
56616
|
sale_price?: number | null;
|
|
56617
|
+
trade_item_key?: string | null;
|
|
56203
56618
|
unit?: string;
|
|
56204
56619
|
updated_at?: string;
|
|
56205
56620
|
weight?: string | null;
|
|
@@ -56222,6 +56637,7 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
56222
56637
|
purchase_price?: number | null;
|
|
56223
56638
|
quantity?: number;
|
|
56224
56639
|
sale_price?: number | null;
|
|
56640
|
+
trade_item_key?: string | null;
|
|
56225
56641
|
unit?: string;
|
|
56226
56642
|
updated_at?: string;
|
|
56227
56643
|
weight?: string | null;
|
|
@@ -57041,6 +57457,60 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
57041
57457
|
};
|
|
57042
57458
|
Relationships: [];
|
|
57043
57459
|
};
|
|
57460
|
+
stock_mutation_log: {
|
|
57461
|
+
Row: {
|
|
57462
|
+
connection_id: string | null;
|
|
57463
|
+
created_at: string;
|
|
57464
|
+
created_by: string | null;
|
|
57465
|
+
id: string;
|
|
57466
|
+
mutation_type: string;
|
|
57467
|
+
order_id: string | null;
|
|
57468
|
+
order_item_id: string | null;
|
|
57469
|
+
order_source: string | null;
|
|
57470
|
+
physical_after: number | null;
|
|
57471
|
+
physical_before: number | null;
|
|
57472
|
+
qty_delta: number;
|
|
57473
|
+
reason: string | null;
|
|
57474
|
+
reserved_after: number | null;
|
|
57475
|
+
reserved_before: number | null;
|
|
57476
|
+
trade_item_key: string;
|
|
57477
|
+
};
|
|
57478
|
+
Insert: {
|
|
57479
|
+
connection_id?: string | null;
|
|
57480
|
+
created_at?: string;
|
|
57481
|
+
created_by?: string | null;
|
|
57482
|
+
id?: string;
|
|
57483
|
+
mutation_type: string;
|
|
57484
|
+
order_id?: string | null;
|
|
57485
|
+
order_item_id?: string | null;
|
|
57486
|
+
order_source?: string | null;
|
|
57487
|
+
physical_after?: number | null;
|
|
57488
|
+
physical_before?: number | null;
|
|
57489
|
+
qty_delta: number;
|
|
57490
|
+
reason?: string | null;
|
|
57491
|
+
reserved_after?: number | null;
|
|
57492
|
+
reserved_before?: number | null;
|
|
57493
|
+
trade_item_key: string;
|
|
57494
|
+
};
|
|
57495
|
+
Update: {
|
|
57496
|
+
connection_id?: string | null;
|
|
57497
|
+
created_at?: string;
|
|
57498
|
+
created_by?: string | null;
|
|
57499
|
+
id?: string;
|
|
57500
|
+
mutation_type?: string;
|
|
57501
|
+
order_id?: string | null;
|
|
57502
|
+
order_item_id?: string | null;
|
|
57503
|
+
order_source?: string | null;
|
|
57504
|
+
physical_after?: number | null;
|
|
57505
|
+
physical_before?: number | null;
|
|
57506
|
+
qty_delta?: number;
|
|
57507
|
+
reason?: string | null;
|
|
57508
|
+
reserved_after?: number | null;
|
|
57509
|
+
reserved_before?: number | null;
|
|
57510
|
+
trade_item_key?: string;
|
|
57511
|
+
};
|
|
57512
|
+
Relationships: [];
|
|
57513
|
+
};
|
|
57044
57514
|
supplier_products: {
|
|
57045
57515
|
Row: {
|
|
57046
57516
|
article_number: string | null;
|
|
@@ -58902,6 +59372,28 @@ export declare const approveProposal: import("@tanstack/start-client-core").Opti
|
|
|
58902
59372
|
};
|
|
58903
59373
|
Returns: number;
|
|
58904
59374
|
};
|
|
59375
|
+
apply_stock_consumption: {
|
|
59376
|
+
Args: {
|
|
59377
|
+
p_order_id: string;
|
|
59378
|
+
p_order_item_id: string;
|
|
59379
|
+
p_qty: number;
|
|
59380
|
+
p_reason: string;
|
|
59381
|
+
p_source: string;
|
|
59382
|
+
p_trade_item_key: string;
|
|
59383
|
+
};
|
|
59384
|
+
Returns: undefined;
|
|
59385
|
+
};
|
|
59386
|
+
apply_stock_reservation: {
|
|
59387
|
+
Args: {
|
|
59388
|
+
p_order_id: string;
|
|
59389
|
+
p_order_item_id: string;
|
|
59390
|
+
p_qty: number;
|
|
59391
|
+
p_reason: string;
|
|
59392
|
+
p_source: string;
|
|
59393
|
+
p_trade_item_key: string;
|
|
59394
|
+
};
|
|
59395
|
+
Returns: undefined;
|
|
59396
|
+
};
|
|
58905
59397
|
assign_cart_numbers: {
|
|
58906
59398
|
Args: {
|
|
58907
59399
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -60325,6 +60817,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
60325
60817
|
notes: string | null;
|
|
60326
60818
|
performed_at: string;
|
|
60327
60819
|
rescheduled_count: number;
|
|
60820
|
+
stock_consumed_at: string | null;
|
|
60328
60821
|
total_carts: number;
|
|
60329
60822
|
updated_at: string;
|
|
60330
60823
|
user_id: string;
|
|
@@ -60338,6 +60831,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
60338
60831
|
notes?: string | null;
|
|
60339
60832
|
performed_at?: string;
|
|
60340
60833
|
rescheduled_count?: number;
|
|
60834
|
+
stock_consumed_at?: string | null;
|
|
60341
60835
|
total_carts?: number;
|
|
60342
60836
|
updated_at?: string;
|
|
60343
60837
|
user_id: string;
|
|
@@ -60351,6 +60845,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
60351
60845
|
notes?: string | null;
|
|
60352
60846
|
performed_at?: string;
|
|
60353
60847
|
rescheduled_count?: number;
|
|
60848
|
+
stock_consumed_at?: string | null;
|
|
60354
60849
|
total_carts?: number;
|
|
60355
60850
|
updated_at?: string;
|
|
60356
60851
|
user_id?: string;
|
|
@@ -66109,6 +66604,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
66109
66604
|
purchase_price: number | null;
|
|
66110
66605
|
quantity: number;
|
|
66111
66606
|
sale_price: number | null;
|
|
66607
|
+
trade_item_key: string | null;
|
|
66112
66608
|
unit: string;
|
|
66113
66609
|
updated_at: string;
|
|
66114
66610
|
weight: string | null;
|
|
@@ -66131,6 +66627,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
66131
66627
|
purchase_price?: number | null;
|
|
66132
66628
|
quantity?: number;
|
|
66133
66629
|
sale_price?: number | null;
|
|
66630
|
+
trade_item_key?: string | null;
|
|
66134
66631
|
unit?: string;
|
|
66135
66632
|
updated_at?: string;
|
|
66136
66633
|
weight?: string | null;
|
|
@@ -66153,6 +66650,7 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
66153
66650
|
purchase_price?: number | null;
|
|
66154
66651
|
quantity?: number;
|
|
66155
66652
|
sale_price?: number | null;
|
|
66653
|
+
trade_item_key?: string | null;
|
|
66156
66654
|
unit?: string;
|
|
66157
66655
|
updated_at?: string;
|
|
66158
66656
|
weight?: string | null;
|
|
@@ -66972,6 +67470,60 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
66972
67470
|
};
|
|
66973
67471
|
Relationships: [];
|
|
66974
67472
|
};
|
|
67473
|
+
stock_mutation_log: {
|
|
67474
|
+
Row: {
|
|
67475
|
+
connection_id: string | null;
|
|
67476
|
+
created_at: string;
|
|
67477
|
+
created_by: string | null;
|
|
67478
|
+
id: string;
|
|
67479
|
+
mutation_type: string;
|
|
67480
|
+
order_id: string | null;
|
|
67481
|
+
order_item_id: string | null;
|
|
67482
|
+
order_source: string | null;
|
|
67483
|
+
physical_after: number | null;
|
|
67484
|
+
physical_before: number | null;
|
|
67485
|
+
qty_delta: number;
|
|
67486
|
+
reason: string | null;
|
|
67487
|
+
reserved_after: number | null;
|
|
67488
|
+
reserved_before: number | null;
|
|
67489
|
+
trade_item_key: string;
|
|
67490
|
+
};
|
|
67491
|
+
Insert: {
|
|
67492
|
+
connection_id?: string | null;
|
|
67493
|
+
created_at?: string;
|
|
67494
|
+
created_by?: string | null;
|
|
67495
|
+
id?: string;
|
|
67496
|
+
mutation_type: string;
|
|
67497
|
+
order_id?: string | null;
|
|
67498
|
+
order_item_id?: string | null;
|
|
67499
|
+
order_source?: string | null;
|
|
67500
|
+
physical_after?: number | null;
|
|
67501
|
+
physical_before?: number | null;
|
|
67502
|
+
qty_delta: number;
|
|
67503
|
+
reason?: string | null;
|
|
67504
|
+
reserved_after?: number | null;
|
|
67505
|
+
reserved_before?: number | null;
|
|
67506
|
+
trade_item_key: string;
|
|
67507
|
+
};
|
|
67508
|
+
Update: {
|
|
67509
|
+
connection_id?: string | null;
|
|
67510
|
+
created_at?: string;
|
|
67511
|
+
created_by?: string | null;
|
|
67512
|
+
id?: string;
|
|
67513
|
+
mutation_type?: string;
|
|
67514
|
+
order_id?: string | null;
|
|
67515
|
+
order_item_id?: string | null;
|
|
67516
|
+
order_source?: string | null;
|
|
67517
|
+
physical_after?: number | null;
|
|
67518
|
+
physical_before?: number | null;
|
|
67519
|
+
qty_delta?: number;
|
|
67520
|
+
reason?: string | null;
|
|
67521
|
+
reserved_after?: number | null;
|
|
67522
|
+
reserved_before?: number | null;
|
|
67523
|
+
trade_item_key?: string;
|
|
67524
|
+
};
|
|
67525
|
+
Relationships: [];
|
|
67526
|
+
};
|
|
66975
67527
|
supplier_products: {
|
|
66976
67528
|
Row: {
|
|
66977
67529
|
article_number: string | null;
|
|
@@ -68833,6 +69385,28 @@ export declare const rejectProposal: import("@tanstack/start-client-core").Optio
|
|
|
68833
69385
|
};
|
|
68834
69386
|
Returns: number;
|
|
68835
69387
|
};
|
|
69388
|
+
apply_stock_consumption: {
|
|
69389
|
+
Args: {
|
|
69390
|
+
p_order_id: string;
|
|
69391
|
+
p_order_item_id: string;
|
|
69392
|
+
p_qty: number;
|
|
69393
|
+
p_reason: string;
|
|
69394
|
+
p_source: string;
|
|
69395
|
+
p_trade_item_key: string;
|
|
69396
|
+
};
|
|
69397
|
+
Returns: undefined;
|
|
69398
|
+
};
|
|
69399
|
+
apply_stock_reservation: {
|
|
69400
|
+
Args: {
|
|
69401
|
+
p_order_id: string;
|
|
69402
|
+
p_order_item_id: string;
|
|
69403
|
+
p_qty: number;
|
|
69404
|
+
p_reason: string;
|
|
69405
|
+
p_source: string;
|
|
69406
|
+
p_trade_item_key: string;
|
|
69407
|
+
};
|
|
69408
|
+
Returns: undefined;
|
|
69409
|
+
};
|
|
68836
69410
|
assign_cart_numbers: {
|
|
68837
69411
|
Args: {
|
|
68838
69412
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -70241,6 +70815,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
70241
70815
|
notes: string | null;
|
|
70242
70816
|
performed_at: string;
|
|
70243
70817
|
rescheduled_count: number;
|
|
70818
|
+
stock_consumed_at: string | null;
|
|
70244
70819
|
total_carts: number;
|
|
70245
70820
|
updated_at: string;
|
|
70246
70821
|
user_id: string;
|
|
@@ -70254,6 +70829,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
70254
70829
|
notes?: string | null;
|
|
70255
70830
|
performed_at?: string;
|
|
70256
70831
|
rescheduled_count?: number;
|
|
70832
|
+
stock_consumed_at?: string | null;
|
|
70257
70833
|
total_carts?: number;
|
|
70258
70834
|
updated_at?: string;
|
|
70259
70835
|
user_id: string;
|
|
@@ -70267,6 +70843,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
70267
70843
|
notes?: string | null;
|
|
70268
70844
|
performed_at?: string;
|
|
70269
70845
|
rescheduled_count?: number;
|
|
70846
|
+
stock_consumed_at?: string | null;
|
|
70270
70847
|
total_carts?: number;
|
|
70271
70848
|
updated_at?: string;
|
|
70272
70849
|
user_id?: string;
|
|
@@ -76025,6 +76602,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
76025
76602
|
purchase_price: number | null;
|
|
76026
76603
|
quantity: number;
|
|
76027
76604
|
sale_price: number | null;
|
|
76605
|
+
trade_item_key: string | null;
|
|
76028
76606
|
unit: string;
|
|
76029
76607
|
updated_at: string;
|
|
76030
76608
|
weight: string | null;
|
|
@@ -76047,6 +76625,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
76047
76625
|
purchase_price?: number | null;
|
|
76048
76626
|
quantity?: number;
|
|
76049
76627
|
sale_price?: number | null;
|
|
76628
|
+
trade_item_key?: string | null;
|
|
76050
76629
|
unit?: string;
|
|
76051
76630
|
updated_at?: string;
|
|
76052
76631
|
weight?: string | null;
|
|
@@ -76069,6 +76648,7 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
76069
76648
|
purchase_price?: number | null;
|
|
76070
76649
|
quantity?: number;
|
|
76071
76650
|
sale_price?: number | null;
|
|
76651
|
+
trade_item_key?: string | null;
|
|
76072
76652
|
unit?: string;
|
|
76073
76653
|
updated_at?: string;
|
|
76074
76654
|
weight?: string | null;
|
|
@@ -76888,6 +77468,60 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
76888
77468
|
};
|
|
76889
77469
|
Relationships: [];
|
|
76890
77470
|
};
|
|
77471
|
+
stock_mutation_log: {
|
|
77472
|
+
Row: {
|
|
77473
|
+
connection_id: string | null;
|
|
77474
|
+
created_at: string;
|
|
77475
|
+
created_by: string | null;
|
|
77476
|
+
id: string;
|
|
77477
|
+
mutation_type: string;
|
|
77478
|
+
order_id: string | null;
|
|
77479
|
+
order_item_id: string | null;
|
|
77480
|
+
order_source: string | null;
|
|
77481
|
+
physical_after: number | null;
|
|
77482
|
+
physical_before: number | null;
|
|
77483
|
+
qty_delta: number;
|
|
77484
|
+
reason: string | null;
|
|
77485
|
+
reserved_after: number | null;
|
|
77486
|
+
reserved_before: number | null;
|
|
77487
|
+
trade_item_key: string;
|
|
77488
|
+
};
|
|
77489
|
+
Insert: {
|
|
77490
|
+
connection_id?: string | null;
|
|
77491
|
+
created_at?: string;
|
|
77492
|
+
created_by?: string | null;
|
|
77493
|
+
id?: string;
|
|
77494
|
+
mutation_type: string;
|
|
77495
|
+
order_id?: string | null;
|
|
77496
|
+
order_item_id?: string | null;
|
|
77497
|
+
order_source?: string | null;
|
|
77498
|
+
physical_after?: number | null;
|
|
77499
|
+
physical_before?: number | null;
|
|
77500
|
+
qty_delta: number;
|
|
77501
|
+
reason?: string | null;
|
|
77502
|
+
reserved_after?: number | null;
|
|
77503
|
+
reserved_before?: number | null;
|
|
77504
|
+
trade_item_key: string;
|
|
77505
|
+
};
|
|
77506
|
+
Update: {
|
|
77507
|
+
connection_id?: string | null;
|
|
77508
|
+
created_at?: string;
|
|
77509
|
+
created_by?: string | null;
|
|
77510
|
+
id?: string;
|
|
77511
|
+
mutation_type?: string;
|
|
77512
|
+
order_id?: string | null;
|
|
77513
|
+
order_item_id?: string | null;
|
|
77514
|
+
order_source?: string | null;
|
|
77515
|
+
physical_after?: number | null;
|
|
77516
|
+
physical_before?: number | null;
|
|
77517
|
+
qty_delta?: number;
|
|
77518
|
+
reason?: string | null;
|
|
77519
|
+
reserved_after?: number | null;
|
|
77520
|
+
reserved_before?: number | null;
|
|
77521
|
+
trade_item_key?: string;
|
|
77522
|
+
};
|
|
77523
|
+
Relationships: [];
|
|
77524
|
+
};
|
|
76891
77525
|
supplier_products: {
|
|
76892
77526
|
Row: {
|
|
76893
77527
|
article_number: string | null;
|
|
@@ -78749,6 +79383,28 @@ export declare const reopenProposal: import("@tanstack/start-client-core").Optio
|
|
|
78749
79383
|
};
|
|
78750
79384
|
Returns: number;
|
|
78751
79385
|
};
|
|
79386
|
+
apply_stock_consumption: {
|
|
79387
|
+
Args: {
|
|
79388
|
+
p_order_id: string;
|
|
79389
|
+
p_order_item_id: string;
|
|
79390
|
+
p_qty: number;
|
|
79391
|
+
p_reason: string;
|
|
79392
|
+
p_source: string;
|
|
79393
|
+
p_trade_item_key: string;
|
|
79394
|
+
};
|
|
79395
|
+
Returns: undefined;
|
|
79396
|
+
};
|
|
79397
|
+
apply_stock_reservation: {
|
|
79398
|
+
Args: {
|
|
79399
|
+
p_order_id: string;
|
|
79400
|
+
p_order_item_id: string;
|
|
79401
|
+
p_qty: number;
|
|
79402
|
+
p_reason: string;
|
|
79403
|
+
p_source: string;
|
|
79404
|
+
p_trade_item_key: string;
|
|
79405
|
+
};
|
|
79406
|
+
Returns: undefined;
|
|
79407
|
+
};
|
|
78752
79408
|
assign_cart_numbers: {
|
|
78753
79409
|
Args: {
|
|
78754
79410
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -80156,6 +80812,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
80156
80812
|
notes: string | null;
|
|
80157
80813
|
performed_at: string;
|
|
80158
80814
|
rescheduled_count: number;
|
|
80815
|
+
stock_consumed_at: string | null;
|
|
80159
80816
|
total_carts: number;
|
|
80160
80817
|
updated_at: string;
|
|
80161
80818
|
user_id: string;
|
|
@@ -80169,6 +80826,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
80169
80826
|
notes?: string | null;
|
|
80170
80827
|
performed_at?: string;
|
|
80171
80828
|
rescheduled_count?: number;
|
|
80829
|
+
stock_consumed_at?: string | null;
|
|
80172
80830
|
total_carts?: number;
|
|
80173
80831
|
updated_at?: string;
|
|
80174
80832
|
user_id: string;
|
|
@@ -80182,6 +80840,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
80182
80840
|
notes?: string | null;
|
|
80183
80841
|
performed_at?: string;
|
|
80184
80842
|
rescheduled_count?: number;
|
|
80843
|
+
stock_consumed_at?: string | null;
|
|
80185
80844
|
total_carts?: number;
|
|
80186
80845
|
updated_at?: string;
|
|
80187
80846
|
user_id?: string;
|
|
@@ -85940,6 +86599,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
85940
86599
|
purchase_price: number | null;
|
|
85941
86600
|
quantity: number;
|
|
85942
86601
|
sale_price: number | null;
|
|
86602
|
+
trade_item_key: string | null;
|
|
85943
86603
|
unit: string;
|
|
85944
86604
|
updated_at: string;
|
|
85945
86605
|
weight: string | null;
|
|
@@ -85962,6 +86622,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
85962
86622
|
purchase_price?: number | null;
|
|
85963
86623
|
quantity?: number;
|
|
85964
86624
|
sale_price?: number | null;
|
|
86625
|
+
trade_item_key?: string | null;
|
|
85965
86626
|
unit?: string;
|
|
85966
86627
|
updated_at?: string;
|
|
85967
86628
|
weight?: string | null;
|
|
@@ -85984,6 +86645,7 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
85984
86645
|
purchase_price?: number | null;
|
|
85985
86646
|
quantity?: number;
|
|
85986
86647
|
sale_price?: number | null;
|
|
86648
|
+
trade_item_key?: string | null;
|
|
85987
86649
|
unit?: string;
|
|
85988
86650
|
updated_at?: string;
|
|
85989
86651
|
weight?: string | null;
|
|
@@ -86803,6 +87465,60 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
86803
87465
|
};
|
|
86804
87466
|
Relationships: [];
|
|
86805
87467
|
};
|
|
87468
|
+
stock_mutation_log: {
|
|
87469
|
+
Row: {
|
|
87470
|
+
connection_id: string | null;
|
|
87471
|
+
created_at: string;
|
|
87472
|
+
created_by: string | null;
|
|
87473
|
+
id: string;
|
|
87474
|
+
mutation_type: string;
|
|
87475
|
+
order_id: string | null;
|
|
87476
|
+
order_item_id: string | null;
|
|
87477
|
+
order_source: string | null;
|
|
87478
|
+
physical_after: number | null;
|
|
87479
|
+
physical_before: number | null;
|
|
87480
|
+
qty_delta: number;
|
|
87481
|
+
reason: string | null;
|
|
87482
|
+
reserved_after: number | null;
|
|
87483
|
+
reserved_before: number | null;
|
|
87484
|
+
trade_item_key: string;
|
|
87485
|
+
};
|
|
87486
|
+
Insert: {
|
|
87487
|
+
connection_id?: string | null;
|
|
87488
|
+
created_at?: string;
|
|
87489
|
+
created_by?: string | null;
|
|
87490
|
+
id?: string;
|
|
87491
|
+
mutation_type: string;
|
|
87492
|
+
order_id?: string | null;
|
|
87493
|
+
order_item_id?: string | null;
|
|
87494
|
+
order_source?: string | null;
|
|
87495
|
+
physical_after?: number | null;
|
|
87496
|
+
physical_before?: number | null;
|
|
87497
|
+
qty_delta: number;
|
|
87498
|
+
reason?: string | null;
|
|
87499
|
+
reserved_after?: number | null;
|
|
87500
|
+
reserved_before?: number | null;
|
|
87501
|
+
trade_item_key: string;
|
|
87502
|
+
};
|
|
87503
|
+
Update: {
|
|
87504
|
+
connection_id?: string | null;
|
|
87505
|
+
created_at?: string;
|
|
87506
|
+
created_by?: string | null;
|
|
87507
|
+
id?: string;
|
|
87508
|
+
mutation_type?: string;
|
|
87509
|
+
order_id?: string | null;
|
|
87510
|
+
order_item_id?: string | null;
|
|
87511
|
+
order_source?: string | null;
|
|
87512
|
+
physical_after?: number | null;
|
|
87513
|
+
physical_before?: number | null;
|
|
87514
|
+
qty_delta?: number;
|
|
87515
|
+
reason?: string | null;
|
|
87516
|
+
reserved_after?: number | null;
|
|
87517
|
+
reserved_before?: number | null;
|
|
87518
|
+
trade_item_key?: string;
|
|
87519
|
+
};
|
|
87520
|
+
Relationships: [];
|
|
87521
|
+
};
|
|
86806
87522
|
supplier_products: {
|
|
86807
87523
|
Row: {
|
|
86808
87524
|
article_number: string | null;
|
|
@@ -88664,6 +89380,28 @@ export declare const listCustomersForPicker: import("@tanstack/start-client-core
|
|
|
88664
89380
|
};
|
|
88665
89381
|
Returns: number;
|
|
88666
89382
|
};
|
|
89383
|
+
apply_stock_consumption: {
|
|
89384
|
+
Args: {
|
|
89385
|
+
p_order_id: string;
|
|
89386
|
+
p_order_item_id: string;
|
|
89387
|
+
p_qty: number;
|
|
89388
|
+
p_reason: string;
|
|
89389
|
+
p_source: string;
|
|
89390
|
+
p_trade_item_key: string;
|
|
89391
|
+
};
|
|
89392
|
+
Returns: undefined;
|
|
89393
|
+
};
|
|
89394
|
+
apply_stock_reservation: {
|
|
89395
|
+
Args: {
|
|
89396
|
+
p_order_id: string;
|
|
89397
|
+
p_order_item_id: string;
|
|
89398
|
+
p_qty: number;
|
|
89399
|
+
p_reason: string;
|
|
89400
|
+
p_source: string;
|
|
89401
|
+
p_trade_item_key: string;
|
|
89402
|
+
};
|
|
89403
|
+
Returns: undefined;
|
|
89404
|
+
};
|
|
88667
89405
|
assign_cart_numbers: {
|
|
88668
89406
|
Args: {
|
|
88669
89407
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -90073,6 +90811,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
90073
90811
|
notes: string | null;
|
|
90074
90812
|
performed_at: string;
|
|
90075
90813
|
rescheduled_count: number;
|
|
90814
|
+
stock_consumed_at: string | null;
|
|
90076
90815
|
total_carts: number;
|
|
90077
90816
|
updated_at: string;
|
|
90078
90817
|
user_id: string;
|
|
@@ -90086,6 +90825,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
90086
90825
|
notes?: string | null;
|
|
90087
90826
|
performed_at?: string;
|
|
90088
90827
|
rescheduled_count?: number;
|
|
90828
|
+
stock_consumed_at?: string | null;
|
|
90089
90829
|
total_carts?: number;
|
|
90090
90830
|
updated_at?: string;
|
|
90091
90831
|
user_id: string;
|
|
@@ -90099,6 +90839,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
90099
90839
|
notes?: string | null;
|
|
90100
90840
|
performed_at?: string;
|
|
90101
90841
|
rescheduled_count?: number;
|
|
90842
|
+
stock_consumed_at?: string | null;
|
|
90102
90843
|
total_carts?: number;
|
|
90103
90844
|
updated_at?: string;
|
|
90104
90845
|
user_id?: string;
|
|
@@ -95857,6 +96598,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
95857
96598
|
purchase_price: number | null;
|
|
95858
96599
|
quantity: number;
|
|
95859
96600
|
sale_price: number | null;
|
|
96601
|
+
trade_item_key: string | null;
|
|
95860
96602
|
unit: string;
|
|
95861
96603
|
updated_at: string;
|
|
95862
96604
|
weight: string | null;
|
|
@@ -95879,6 +96621,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
95879
96621
|
purchase_price?: number | null;
|
|
95880
96622
|
quantity?: number;
|
|
95881
96623
|
sale_price?: number | null;
|
|
96624
|
+
trade_item_key?: string | null;
|
|
95882
96625
|
unit?: string;
|
|
95883
96626
|
updated_at?: string;
|
|
95884
96627
|
weight?: string | null;
|
|
@@ -95901,6 +96644,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
95901
96644
|
purchase_price?: number | null;
|
|
95902
96645
|
quantity?: number;
|
|
95903
96646
|
sale_price?: number | null;
|
|
96647
|
+
trade_item_key?: string | null;
|
|
95904
96648
|
unit?: string;
|
|
95905
96649
|
updated_at?: string;
|
|
95906
96650
|
weight?: string | null;
|
|
@@ -96720,6 +97464,60 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
96720
97464
|
};
|
|
96721
97465
|
Relationships: [];
|
|
96722
97466
|
};
|
|
97467
|
+
stock_mutation_log: {
|
|
97468
|
+
Row: {
|
|
97469
|
+
connection_id: string | null;
|
|
97470
|
+
created_at: string;
|
|
97471
|
+
created_by: string | null;
|
|
97472
|
+
id: string;
|
|
97473
|
+
mutation_type: string;
|
|
97474
|
+
order_id: string | null;
|
|
97475
|
+
order_item_id: string | null;
|
|
97476
|
+
order_source: string | null;
|
|
97477
|
+
physical_after: number | null;
|
|
97478
|
+
physical_before: number | null;
|
|
97479
|
+
qty_delta: number;
|
|
97480
|
+
reason: string | null;
|
|
97481
|
+
reserved_after: number | null;
|
|
97482
|
+
reserved_before: number | null;
|
|
97483
|
+
trade_item_key: string;
|
|
97484
|
+
};
|
|
97485
|
+
Insert: {
|
|
97486
|
+
connection_id?: string | null;
|
|
97487
|
+
created_at?: string;
|
|
97488
|
+
created_by?: string | null;
|
|
97489
|
+
id?: string;
|
|
97490
|
+
mutation_type: string;
|
|
97491
|
+
order_id?: string | null;
|
|
97492
|
+
order_item_id?: string | null;
|
|
97493
|
+
order_source?: string | null;
|
|
97494
|
+
physical_after?: number | null;
|
|
97495
|
+
physical_before?: number | null;
|
|
97496
|
+
qty_delta: number;
|
|
97497
|
+
reason?: string | null;
|
|
97498
|
+
reserved_after?: number | null;
|
|
97499
|
+
reserved_before?: number | null;
|
|
97500
|
+
trade_item_key: string;
|
|
97501
|
+
};
|
|
97502
|
+
Update: {
|
|
97503
|
+
connection_id?: string | null;
|
|
97504
|
+
created_at?: string;
|
|
97505
|
+
created_by?: string | null;
|
|
97506
|
+
id?: string;
|
|
97507
|
+
mutation_type?: string;
|
|
97508
|
+
order_id?: string | null;
|
|
97509
|
+
order_item_id?: string | null;
|
|
97510
|
+
order_source?: string | null;
|
|
97511
|
+
physical_after?: number | null;
|
|
97512
|
+
physical_before?: number | null;
|
|
97513
|
+
qty_delta?: number;
|
|
97514
|
+
reason?: string | null;
|
|
97515
|
+
reserved_after?: number | null;
|
|
97516
|
+
reserved_before?: number | null;
|
|
97517
|
+
trade_item_key?: string;
|
|
97518
|
+
};
|
|
97519
|
+
Relationships: [];
|
|
97520
|
+
};
|
|
96723
97521
|
supplier_products: {
|
|
96724
97522
|
Row: {
|
|
96725
97523
|
article_number: string | null;
|
|
@@ -98581,6 +99379,28 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
98581
99379
|
};
|
|
98582
99380
|
Returns: number;
|
|
98583
99381
|
};
|
|
99382
|
+
apply_stock_consumption: {
|
|
99383
|
+
Args: {
|
|
99384
|
+
p_order_id: string;
|
|
99385
|
+
p_order_item_id: string;
|
|
99386
|
+
p_qty: number;
|
|
99387
|
+
p_reason: string;
|
|
99388
|
+
p_source: string;
|
|
99389
|
+
p_trade_item_key: string;
|
|
99390
|
+
};
|
|
99391
|
+
Returns: undefined;
|
|
99392
|
+
};
|
|
99393
|
+
apply_stock_reservation: {
|
|
99394
|
+
Args: {
|
|
99395
|
+
p_order_id: string;
|
|
99396
|
+
p_order_item_id: string;
|
|
99397
|
+
p_qty: number;
|
|
99398
|
+
p_reason: string;
|
|
99399
|
+
p_source: string;
|
|
99400
|
+
p_trade_item_key: string;
|
|
99401
|
+
};
|
|
99402
|
+
Returns: undefined;
|
|
99403
|
+
};
|
|
98584
99404
|
assign_cart_numbers: {
|
|
98585
99405
|
Args: {
|
|
98586
99406
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -99276,6 +100096,7 @@ export declare const listProductsForPicker: import("@tanstack/start-client-core"
|
|
|
99276
100096
|
plants_per_crate: number;
|
|
99277
100097
|
crates_per_layer: number;
|
|
99278
100098
|
layers_per_cart: number;
|
|
100099
|
+
custom_fields: import("../integrations/supabase/types").Json;
|
|
99279
100100
|
}[];
|
|
99280
100101
|
}>>;
|
|
99281
100102
|
export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
@@ -99993,6 +100814,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
99993
100814
|
notes: string | null;
|
|
99994
100815
|
performed_at: string;
|
|
99995
100816
|
rescheduled_count: number;
|
|
100817
|
+
stock_consumed_at: string | null;
|
|
99996
100818
|
total_carts: number;
|
|
99997
100819
|
updated_at: string;
|
|
99998
100820
|
user_id: string;
|
|
@@ -100006,6 +100828,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
100006
100828
|
notes?: string | null;
|
|
100007
100829
|
performed_at?: string;
|
|
100008
100830
|
rescheduled_count?: number;
|
|
100831
|
+
stock_consumed_at?: string | null;
|
|
100009
100832
|
total_carts?: number;
|
|
100010
100833
|
updated_at?: string;
|
|
100011
100834
|
user_id: string;
|
|
@@ -100019,6 +100842,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
100019
100842
|
notes?: string | null;
|
|
100020
100843
|
performed_at?: string;
|
|
100021
100844
|
rescheduled_count?: number;
|
|
100845
|
+
stock_consumed_at?: string | null;
|
|
100022
100846
|
total_carts?: number;
|
|
100023
100847
|
updated_at?: string;
|
|
100024
100848
|
user_id?: string;
|
|
@@ -105777,6 +106601,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
105777
106601
|
purchase_price: number | null;
|
|
105778
106602
|
quantity: number;
|
|
105779
106603
|
sale_price: number | null;
|
|
106604
|
+
trade_item_key: string | null;
|
|
105780
106605
|
unit: string;
|
|
105781
106606
|
updated_at: string;
|
|
105782
106607
|
weight: string | null;
|
|
@@ -105799,6 +106624,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
105799
106624
|
purchase_price?: number | null;
|
|
105800
106625
|
quantity?: number;
|
|
105801
106626
|
sale_price?: number | null;
|
|
106627
|
+
trade_item_key?: string | null;
|
|
105802
106628
|
unit?: string;
|
|
105803
106629
|
updated_at?: string;
|
|
105804
106630
|
weight?: string | null;
|
|
@@ -105821,6 +106647,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
105821
106647
|
purchase_price?: number | null;
|
|
105822
106648
|
quantity?: number;
|
|
105823
106649
|
sale_price?: number | null;
|
|
106650
|
+
trade_item_key?: string | null;
|
|
105824
106651
|
unit?: string;
|
|
105825
106652
|
updated_at?: string;
|
|
105826
106653
|
weight?: string | null;
|
|
@@ -106640,6 +107467,60 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
106640
107467
|
};
|
|
106641
107468
|
Relationships: [];
|
|
106642
107469
|
};
|
|
107470
|
+
stock_mutation_log: {
|
|
107471
|
+
Row: {
|
|
107472
|
+
connection_id: string | null;
|
|
107473
|
+
created_at: string;
|
|
107474
|
+
created_by: string | null;
|
|
107475
|
+
id: string;
|
|
107476
|
+
mutation_type: string;
|
|
107477
|
+
order_id: string | null;
|
|
107478
|
+
order_item_id: string | null;
|
|
107479
|
+
order_source: string | null;
|
|
107480
|
+
physical_after: number | null;
|
|
107481
|
+
physical_before: number | null;
|
|
107482
|
+
qty_delta: number;
|
|
107483
|
+
reason: string | null;
|
|
107484
|
+
reserved_after: number | null;
|
|
107485
|
+
reserved_before: number | null;
|
|
107486
|
+
trade_item_key: string;
|
|
107487
|
+
};
|
|
107488
|
+
Insert: {
|
|
107489
|
+
connection_id?: string | null;
|
|
107490
|
+
created_at?: string;
|
|
107491
|
+
created_by?: string | null;
|
|
107492
|
+
id?: string;
|
|
107493
|
+
mutation_type: string;
|
|
107494
|
+
order_id?: string | null;
|
|
107495
|
+
order_item_id?: string | null;
|
|
107496
|
+
order_source?: string | null;
|
|
107497
|
+
physical_after?: number | null;
|
|
107498
|
+
physical_before?: number | null;
|
|
107499
|
+
qty_delta: number;
|
|
107500
|
+
reason?: string | null;
|
|
107501
|
+
reserved_after?: number | null;
|
|
107502
|
+
reserved_before?: number | null;
|
|
107503
|
+
trade_item_key: string;
|
|
107504
|
+
};
|
|
107505
|
+
Update: {
|
|
107506
|
+
connection_id?: string | null;
|
|
107507
|
+
created_at?: string;
|
|
107508
|
+
created_by?: string | null;
|
|
107509
|
+
id?: string;
|
|
107510
|
+
mutation_type?: string;
|
|
107511
|
+
order_id?: string | null;
|
|
107512
|
+
order_item_id?: string | null;
|
|
107513
|
+
order_source?: string | null;
|
|
107514
|
+
physical_after?: number | null;
|
|
107515
|
+
physical_before?: number | null;
|
|
107516
|
+
qty_delta?: number;
|
|
107517
|
+
reason?: string | null;
|
|
107518
|
+
reserved_after?: number | null;
|
|
107519
|
+
reserved_before?: number | null;
|
|
107520
|
+
trade_item_key?: string;
|
|
107521
|
+
};
|
|
107522
|
+
Relationships: [];
|
|
107523
|
+
};
|
|
106643
107524
|
supplier_products: {
|
|
106644
107525
|
Row: {
|
|
106645
107526
|
article_number: string | null;
|
|
@@ -108501,6 +109382,28 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
|
|
|
108501
109382
|
};
|
|
108502
109383
|
Returns: number;
|
|
108503
109384
|
};
|
|
109385
|
+
apply_stock_consumption: {
|
|
109386
|
+
Args: {
|
|
109387
|
+
p_order_id: string;
|
|
109388
|
+
p_order_item_id: string;
|
|
109389
|
+
p_qty: number;
|
|
109390
|
+
p_reason: string;
|
|
109391
|
+
p_source: string;
|
|
109392
|
+
p_trade_item_key: string;
|
|
109393
|
+
};
|
|
109394
|
+
Returns: undefined;
|
|
109395
|
+
};
|
|
109396
|
+
apply_stock_reservation: {
|
|
109397
|
+
Args: {
|
|
109398
|
+
p_order_id: string;
|
|
109399
|
+
p_order_item_id: string;
|
|
109400
|
+
p_qty: number;
|
|
109401
|
+
p_reason: string;
|
|
109402
|
+
p_source: string;
|
|
109403
|
+
p_trade_item_key: string;
|
|
109404
|
+
};
|
|
109405
|
+
Returns: undefined;
|
|
109406
|
+
};
|
|
108504
109407
|
assign_cart_numbers: {
|
|
108505
109408
|
Args: {
|
|
108506
109409
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -109930,6 +110833,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
109930
110833
|
notes: string | null;
|
|
109931
110834
|
performed_at: string;
|
|
109932
110835
|
rescheduled_count: number;
|
|
110836
|
+
stock_consumed_at: string | null;
|
|
109933
110837
|
total_carts: number;
|
|
109934
110838
|
updated_at: string;
|
|
109935
110839
|
user_id: string;
|
|
@@ -109943,6 +110847,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
109943
110847
|
notes?: string | null;
|
|
109944
110848
|
performed_at?: string;
|
|
109945
110849
|
rescheduled_count?: number;
|
|
110850
|
+
stock_consumed_at?: string | null;
|
|
109946
110851
|
total_carts?: number;
|
|
109947
110852
|
updated_at?: string;
|
|
109948
110853
|
user_id: string;
|
|
@@ -109956,6 +110861,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
109956
110861
|
notes?: string | null;
|
|
109957
110862
|
performed_at?: string;
|
|
109958
110863
|
rescheduled_count?: number;
|
|
110864
|
+
stock_consumed_at?: string | null;
|
|
109959
110865
|
total_carts?: number;
|
|
109960
110866
|
updated_at?: string;
|
|
109961
110867
|
user_id?: string;
|
|
@@ -115714,6 +116620,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
115714
116620
|
purchase_price: number | null;
|
|
115715
116621
|
quantity: number;
|
|
115716
116622
|
sale_price: number | null;
|
|
116623
|
+
trade_item_key: string | null;
|
|
115717
116624
|
unit: string;
|
|
115718
116625
|
updated_at: string;
|
|
115719
116626
|
weight: string | null;
|
|
@@ -115736,6 +116643,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
115736
116643
|
purchase_price?: number | null;
|
|
115737
116644
|
quantity?: number;
|
|
115738
116645
|
sale_price?: number | null;
|
|
116646
|
+
trade_item_key?: string | null;
|
|
115739
116647
|
unit?: string;
|
|
115740
116648
|
updated_at?: string;
|
|
115741
116649
|
weight?: string | null;
|
|
@@ -115758,6 +116666,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
115758
116666
|
purchase_price?: number | null;
|
|
115759
116667
|
quantity?: number;
|
|
115760
116668
|
sale_price?: number | null;
|
|
116669
|
+
trade_item_key?: string | null;
|
|
115761
116670
|
unit?: string;
|
|
115762
116671
|
updated_at?: string;
|
|
115763
116672
|
weight?: string | null;
|
|
@@ -116577,6 +117486,60 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
116577
117486
|
};
|
|
116578
117487
|
Relationships: [];
|
|
116579
117488
|
};
|
|
117489
|
+
stock_mutation_log: {
|
|
117490
|
+
Row: {
|
|
117491
|
+
connection_id: string | null;
|
|
117492
|
+
created_at: string;
|
|
117493
|
+
created_by: string | null;
|
|
117494
|
+
id: string;
|
|
117495
|
+
mutation_type: string;
|
|
117496
|
+
order_id: string | null;
|
|
117497
|
+
order_item_id: string | null;
|
|
117498
|
+
order_source: string | null;
|
|
117499
|
+
physical_after: number | null;
|
|
117500
|
+
physical_before: number | null;
|
|
117501
|
+
qty_delta: number;
|
|
117502
|
+
reason: string | null;
|
|
117503
|
+
reserved_after: number | null;
|
|
117504
|
+
reserved_before: number | null;
|
|
117505
|
+
trade_item_key: string;
|
|
117506
|
+
};
|
|
117507
|
+
Insert: {
|
|
117508
|
+
connection_id?: string | null;
|
|
117509
|
+
created_at?: string;
|
|
117510
|
+
created_by?: string | null;
|
|
117511
|
+
id?: string;
|
|
117512
|
+
mutation_type: string;
|
|
117513
|
+
order_id?: string | null;
|
|
117514
|
+
order_item_id?: string | null;
|
|
117515
|
+
order_source?: string | null;
|
|
117516
|
+
physical_after?: number | null;
|
|
117517
|
+
physical_before?: number | null;
|
|
117518
|
+
qty_delta: number;
|
|
117519
|
+
reason?: string | null;
|
|
117520
|
+
reserved_after?: number | null;
|
|
117521
|
+
reserved_before?: number | null;
|
|
117522
|
+
trade_item_key: string;
|
|
117523
|
+
};
|
|
117524
|
+
Update: {
|
|
117525
|
+
connection_id?: string | null;
|
|
117526
|
+
created_at?: string;
|
|
117527
|
+
created_by?: string | null;
|
|
117528
|
+
id?: string;
|
|
117529
|
+
mutation_type?: string;
|
|
117530
|
+
order_id?: string | null;
|
|
117531
|
+
order_item_id?: string | null;
|
|
117532
|
+
order_source?: string | null;
|
|
117533
|
+
physical_after?: number | null;
|
|
117534
|
+
physical_before?: number | null;
|
|
117535
|
+
qty_delta?: number;
|
|
117536
|
+
reason?: string | null;
|
|
117537
|
+
reserved_after?: number | null;
|
|
117538
|
+
reserved_before?: number | null;
|
|
117539
|
+
trade_item_key?: string;
|
|
117540
|
+
};
|
|
117541
|
+
Relationships: [];
|
|
117542
|
+
};
|
|
116580
117543
|
supplier_products: {
|
|
116581
117544
|
Row: {
|
|
116582
117545
|
article_number: string | null;
|
|
@@ -118438,6 +119401,28 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
|
|
|
118438
119401
|
};
|
|
118439
119402
|
Returns: number;
|
|
118440
119403
|
};
|
|
119404
|
+
apply_stock_consumption: {
|
|
119405
|
+
Args: {
|
|
119406
|
+
p_order_id: string;
|
|
119407
|
+
p_order_item_id: string;
|
|
119408
|
+
p_qty: number;
|
|
119409
|
+
p_reason: string;
|
|
119410
|
+
p_source: string;
|
|
119411
|
+
p_trade_item_key: string;
|
|
119412
|
+
};
|
|
119413
|
+
Returns: undefined;
|
|
119414
|
+
};
|
|
119415
|
+
apply_stock_reservation: {
|
|
119416
|
+
Args: {
|
|
119417
|
+
p_order_id: string;
|
|
119418
|
+
p_order_item_id: string;
|
|
119419
|
+
p_qty: number;
|
|
119420
|
+
p_reason: string;
|
|
119421
|
+
p_source: string;
|
|
119422
|
+
p_trade_item_key: string;
|
|
119423
|
+
};
|
|
119424
|
+
Returns: undefined;
|
|
119425
|
+
};
|
|
118441
119426
|
assign_cart_numbers: {
|
|
118442
119427
|
Args: {
|
|
118443
119428
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -119857,6 +120842,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
119857
120842
|
notes: string | null;
|
|
119858
120843
|
performed_at: string;
|
|
119859
120844
|
rescheduled_count: number;
|
|
120845
|
+
stock_consumed_at: string | null;
|
|
119860
120846
|
total_carts: number;
|
|
119861
120847
|
updated_at: string;
|
|
119862
120848
|
user_id: string;
|
|
@@ -119870,6 +120856,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
119870
120856
|
notes?: string | null;
|
|
119871
120857
|
performed_at?: string;
|
|
119872
120858
|
rescheduled_count?: number;
|
|
120859
|
+
stock_consumed_at?: string | null;
|
|
119873
120860
|
total_carts?: number;
|
|
119874
120861
|
updated_at?: string;
|
|
119875
120862
|
user_id: string;
|
|
@@ -119883,6 +120870,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
119883
120870
|
notes?: string | null;
|
|
119884
120871
|
performed_at?: string;
|
|
119885
120872
|
rescheduled_count?: number;
|
|
120873
|
+
stock_consumed_at?: string | null;
|
|
119886
120874
|
total_carts?: number;
|
|
119887
120875
|
updated_at?: string;
|
|
119888
120876
|
user_id?: string;
|
|
@@ -125641,6 +126629,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
125641
126629
|
purchase_price: number | null;
|
|
125642
126630
|
quantity: number;
|
|
125643
126631
|
sale_price: number | null;
|
|
126632
|
+
trade_item_key: string | null;
|
|
125644
126633
|
unit: string;
|
|
125645
126634
|
updated_at: string;
|
|
125646
126635
|
weight: string | null;
|
|
@@ -125663,6 +126652,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
125663
126652
|
purchase_price?: number | null;
|
|
125664
126653
|
quantity?: number;
|
|
125665
126654
|
sale_price?: number | null;
|
|
126655
|
+
trade_item_key?: string | null;
|
|
125666
126656
|
unit?: string;
|
|
125667
126657
|
updated_at?: string;
|
|
125668
126658
|
weight?: string | null;
|
|
@@ -125685,6 +126675,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
125685
126675
|
purchase_price?: number | null;
|
|
125686
126676
|
quantity?: number;
|
|
125687
126677
|
sale_price?: number | null;
|
|
126678
|
+
trade_item_key?: string | null;
|
|
125688
126679
|
unit?: string;
|
|
125689
126680
|
updated_at?: string;
|
|
125690
126681
|
weight?: string | null;
|
|
@@ -126504,6 +127495,60 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
126504
127495
|
};
|
|
126505
127496
|
Relationships: [];
|
|
126506
127497
|
};
|
|
127498
|
+
stock_mutation_log: {
|
|
127499
|
+
Row: {
|
|
127500
|
+
connection_id: string | null;
|
|
127501
|
+
created_at: string;
|
|
127502
|
+
created_by: string | null;
|
|
127503
|
+
id: string;
|
|
127504
|
+
mutation_type: string;
|
|
127505
|
+
order_id: string | null;
|
|
127506
|
+
order_item_id: string | null;
|
|
127507
|
+
order_source: string | null;
|
|
127508
|
+
physical_after: number | null;
|
|
127509
|
+
physical_before: number | null;
|
|
127510
|
+
qty_delta: number;
|
|
127511
|
+
reason: string | null;
|
|
127512
|
+
reserved_after: number | null;
|
|
127513
|
+
reserved_before: number | null;
|
|
127514
|
+
trade_item_key: string;
|
|
127515
|
+
};
|
|
127516
|
+
Insert: {
|
|
127517
|
+
connection_id?: string | null;
|
|
127518
|
+
created_at?: string;
|
|
127519
|
+
created_by?: string | null;
|
|
127520
|
+
id?: string;
|
|
127521
|
+
mutation_type: string;
|
|
127522
|
+
order_id?: string | null;
|
|
127523
|
+
order_item_id?: string | null;
|
|
127524
|
+
order_source?: string | null;
|
|
127525
|
+
physical_after?: number | null;
|
|
127526
|
+
physical_before?: number | null;
|
|
127527
|
+
qty_delta: number;
|
|
127528
|
+
reason?: string | null;
|
|
127529
|
+
reserved_after?: number | null;
|
|
127530
|
+
reserved_before?: number | null;
|
|
127531
|
+
trade_item_key: string;
|
|
127532
|
+
};
|
|
127533
|
+
Update: {
|
|
127534
|
+
connection_id?: string | null;
|
|
127535
|
+
created_at?: string;
|
|
127536
|
+
created_by?: string | null;
|
|
127537
|
+
id?: string;
|
|
127538
|
+
mutation_type?: string;
|
|
127539
|
+
order_id?: string | null;
|
|
127540
|
+
order_item_id?: string | null;
|
|
127541
|
+
order_source?: string | null;
|
|
127542
|
+
physical_after?: number | null;
|
|
127543
|
+
physical_before?: number | null;
|
|
127544
|
+
qty_delta?: number;
|
|
127545
|
+
reason?: string | null;
|
|
127546
|
+
reserved_after?: number | null;
|
|
127547
|
+
reserved_before?: number | null;
|
|
127548
|
+
trade_item_key?: string;
|
|
127549
|
+
};
|
|
127550
|
+
Relationships: [];
|
|
127551
|
+
};
|
|
126507
127552
|
supplier_products: {
|
|
126508
127553
|
Row: {
|
|
126509
127554
|
article_number: string | null;
|
|
@@ -128365,6 +129410,28 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Requi
|
|
|
128365
129410
|
};
|
|
128366
129411
|
Returns: number;
|
|
128367
129412
|
};
|
|
129413
|
+
apply_stock_consumption: {
|
|
129414
|
+
Args: {
|
|
129415
|
+
p_order_id: string;
|
|
129416
|
+
p_order_item_id: string;
|
|
129417
|
+
p_qty: number;
|
|
129418
|
+
p_reason: string;
|
|
129419
|
+
p_source: string;
|
|
129420
|
+
p_trade_item_key: string;
|
|
129421
|
+
};
|
|
129422
|
+
Returns: undefined;
|
|
129423
|
+
};
|
|
129424
|
+
apply_stock_reservation: {
|
|
129425
|
+
Args: {
|
|
129426
|
+
p_order_id: string;
|
|
129427
|
+
p_order_item_id: string;
|
|
129428
|
+
p_qty: number;
|
|
129429
|
+
p_reason: string;
|
|
129430
|
+
p_source: string;
|
|
129431
|
+
p_trade_item_key: string;
|
|
129432
|
+
};
|
|
129433
|
+
Returns: undefined;
|
|
129434
|
+
};
|
|
128368
129435
|
assign_cart_numbers: {
|
|
128369
129436
|
Args: {
|
|
128370
129437
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -129791,6 +130858,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
129791
130858
|
notes: string | null;
|
|
129792
130859
|
performed_at: string;
|
|
129793
130860
|
rescheduled_count: number;
|
|
130861
|
+
stock_consumed_at: string | null;
|
|
129794
130862
|
total_carts: number;
|
|
129795
130863
|
updated_at: string;
|
|
129796
130864
|
user_id: string;
|
|
@@ -129804,6 +130872,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
129804
130872
|
notes?: string | null;
|
|
129805
130873
|
performed_at?: string;
|
|
129806
130874
|
rescheduled_count?: number;
|
|
130875
|
+
stock_consumed_at?: string | null;
|
|
129807
130876
|
total_carts?: number;
|
|
129808
130877
|
updated_at?: string;
|
|
129809
130878
|
user_id: string;
|
|
@@ -129817,6 +130886,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
129817
130886
|
notes?: string | null;
|
|
129818
130887
|
performed_at?: string;
|
|
129819
130888
|
rescheduled_count?: number;
|
|
130889
|
+
stock_consumed_at?: string | null;
|
|
129820
130890
|
total_carts?: number;
|
|
129821
130891
|
updated_at?: string;
|
|
129822
130892
|
user_id?: string;
|
|
@@ -135575,6 +136645,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
135575
136645
|
purchase_price: number | null;
|
|
135576
136646
|
quantity: number;
|
|
135577
136647
|
sale_price: number | null;
|
|
136648
|
+
trade_item_key: string | null;
|
|
135578
136649
|
unit: string;
|
|
135579
136650
|
updated_at: string;
|
|
135580
136651
|
weight: string | null;
|
|
@@ -135597,6 +136668,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
135597
136668
|
purchase_price?: number | null;
|
|
135598
136669
|
quantity?: number;
|
|
135599
136670
|
sale_price?: number | null;
|
|
136671
|
+
trade_item_key?: string | null;
|
|
135600
136672
|
unit?: string;
|
|
135601
136673
|
updated_at?: string;
|
|
135602
136674
|
weight?: string | null;
|
|
@@ -135619,6 +136691,7 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
135619
136691
|
purchase_price?: number | null;
|
|
135620
136692
|
quantity?: number;
|
|
135621
136693
|
sale_price?: number | null;
|
|
136694
|
+
trade_item_key?: string | null;
|
|
135622
136695
|
unit?: string;
|
|
135623
136696
|
updated_at?: string;
|
|
135624
136697
|
weight?: string | null;
|
|
@@ -136438,6 +137511,60 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
136438
137511
|
};
|
|
136439
137512
|
Relationships: [];
|
|
136440
137513
|
};
|
|
137514
|
+
stock_mutation_log: {
|
|
137515
|
+
Row: {
|
|
137516
|
+
connection_id: string | null;
|
|
137517
|
+
created_at: string;
|
|
137518
|
+
created_by: string | null;
|
|
137519
|
+
id: string;
|
|
137520
|
+
mutation_type: string;
|
|
137521
|
+
order_id: string | null;
|
|
137522
|
+
order_item_id: string | null;
|
|
137523
|
+
order_source: string | null;
|
|
137524
|
+
physical_after: number | null;
|
|
137525
|
+
physical_before: number | null;
|
|
137526
|
+
qty_delta: number;
|
|
137527
|
+
reason: string | null;
|
|
137528
|
+
reserved_after: number | null;
|
|
137529
|
+
reserved_before: number | null;
|
|
137530
|
+
trade_item_key: string;
|
|
137531
|
+
};
|
|
137532
|
+
Insert: {
|
|
137533
|
+
connection_id?: string | null;
|
|
137534
|
+
created_at?: string;
|
|
137535
|
+
created_by?: string | null;
|
|
137536
|
+
id?: string;
|
|
137537
|
+
mutation_type: string;
|
|
137538
|
+
order_id?: string | null;
|
|
137539
|
+
order_item_id?: string | null;
|
|
137540
|
+
order_source?: string | null;
|
|
137541
|
+
physical_after?: number | null;
|
|
137542
|
+
physical_before?: number | null;
|
|
137543
|
+
qty_delta: number;
|
|
137544
|
+
reason?: string | null;
|
|
137545
|
+
reserved_after?: number | null;
|
|
137546
|
+
reserved_before?: number | null;
|
|
137547
|
+
trade_item_key: string;
|
|
137548
|
+
};
|
|
137549
|
+
Update: {
|
|
137550
|
+
connection_id?: string | null;
|
|
137551
|
+
created_at?: string;
|
|
137552
|
+
created_by?: string | null;
|
|
137553
|
+
id?: string;
|
|
137554
|
+
mutation_type?: string;
|
|
137555
|
+
order_id?: string | null;
|
|
137556
|
+
order_item_id?: string | null;
|
|
137557
|
+
order_source?: string | null;
|
|
137558
|
+
physical_after?: number | null;
|
|
137559
|
+
physical_before?: number | null;
|
|
137560
|
+
qty_delta?: number;
|
|
137561
|
+
reason?: string | null;
|
|
137562
|
+
reserved_after?: number | null;
|
|
137563
|
+
reserved_before?: number | null;
|
|
137564
|
+
trade_item_key?: string;
|
|
137565
|
+
};
|
|
137566
|
+
Relationships: [];
|
|
137567
|
+
};
|
|
136441
137568
|
supplier_products: {
|
|
136442
137569
|
Row: {
|
|
136443
137570
|
article_number: string | null;
|
|
@@ -138299,6 +139426,28 @@ export declare const listDeliveryLocationsForCustomer: import("@tanstack/start-c
|
|
|
138299
139426
|
};
|
|
138300
139427
|
Returns: number;
|
|
138301
139428
|
};
|
|
139429
|
+
apply_stock_consumption: {
|
|
139430
|
+
Args: {
|
|
139431
|
+
p_order_id: string;
|
|
139432
|
+
p_order_item_id: string;
|
|
139433
|
+
p_qty: number;
|
|
139434
|
+
p_reason: string;
|
|
139435
|
+
p_source: string;
|
|
139436
|
+
p_trade_item_key: string;
|
|
139437
|
+
};
|
|
139438
|
+
Returns: undefined;
|
|
139439
|
+
};
|
|
139440
|
+
apply_stock_reservation: {
|
|
139441
|
+
Args: {
|
|
139442
|
+
p_order_id: string;
|
|
139443
|
+
p_order_item_id: string;
|
|
139444
|
+
p_qty: number;
|
|
139445
|
+
p_reason: string;
|
|
139446
|
+
p_source: string;
|
|
139447
|
+
p_trade_item_key: string;
|
|
139448
|
+
};
|
|
139449
|
+
Returns: undefined;
|
|
139450
|
+
};
|
|
138302
139451
|
assign_cart_numbers: {
|
|
138303
139452
|
Args: {
|
|
138304
139453
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -139724,6 +140873,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
139724
140873
|
notes: string | null;
|
|
139725
140874
|
performed_at: string;
|
|
139726
140875
|
rescheduled_count: number;
|
|
140876
|
+
stock_consumed_at: string | null;
|
|
139727
140877
|
total_carts: number;
|
|
139728
140878
|
updated_at: string;
|
|
139729
140879
|
user_id: string;
|
|
@@ -139737,6 +140887,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
139737
140887
|
notes?: string | null;
|
|
139738
140888
|
performed_at?: string;
|
|
139739
140889
|
rescheduled_count?: number;
|
|
140890
|
+
stock_consumed_at?: string | null;
|
|
139740
140891
|
total_carts?: number;
|
|
139741
140892
|
updated_at?: string;
|
|
139742
140893
|
user_id: string;
|
|
@@ -139750,6 +140901,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
139750
140901
|
notes?: string | null;
|
|
139751
140902
|
performed_at?: string;
|
|
139752
140903
|
rescheduled_count?: number;
|
|
140904
|
+
stock_consumed_at?: string | null;
|
|
139753
140905
|
total_carts?: number;
|
|
139754
140906
|
updated_at?: string;
|
|
139755
140907
|
user_id?: string;
|
|
@@ -145508,6 +146660,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
145508
146660
|
purchase_price: number | null;
|
|
145509
146661
|
quantity: number;
|
|
145510
146662
|
sale_price: number | null;
|
|
146663
|
+
trade_item_key: string | null;
|
|
145511
146664
|
unit: string;
|
|
145512
146665
|
updated_at: string;
|
|
145513
146666
|
weight: string | null;
|
|
@@ -145530,6 +146683,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
145530
146683
|
purchase_price?: number | null;
|
|
145531
146684
|
quantity?: number;
|
|
145532
146685
|
sale_price?: number | null;
|
|
146686
|
+
trade_item_key?: string | null;
|
|
145533
146687
|
unit?: string;
|
|
145534
146688
|
updated_at?: string;
|
|
145535
146689
|
weight?: string | null;
|
|
@@ -145552,6 +146706,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
145552
146706
|
purchase_price?: number | null;
|
|
145553
146707
|
quantity?: number;
|
|
145554
146708
|
sale_price?: number | null;
|
|
146709
|
+
trade_item_key?: string | null;
|
|
145555
146710
|
unit?: string;
|
|
145556
146711
|
updated_at?: string;
|
|
145557
146712
|
weight?: string | null;
|
|
@@ -146371,6 +147526,60 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
146371
147526
|
};
|
|
146372
147527
|
Relationships: [];
|
|
146373
147528
|
};
|
|
147529
|
+
stock_mutation_log: {
|
|
147530
|
+
Row: {
|
|
147531
|
+
connection_id: string | null;
|
|
147532
|
+
created_at: string;
|
|
147533
|
+
created_by: string | null;
|
|
147534
|
+
id: string;
|
|
147535
|
+
mutation_type: string;
|
|
147536
|
+
order_id: string | null;
|
|
147537
|
+
order_item_id: string | null;
|
|
147538
|
+
order_source: string | null;
|
|
147539
|
+
physical_after: number | null;
|
|
147540
|
+
physical_before: number | null;
|
|
147541
|
+
qty_delta: number;
|
|
147542
|
+
reason: string | null;
|
|
147543
|
+
reserved_after: number | null;
|
|
147544
|
+
reserved_before: number | null;
|
|
147545
|
+
trade_item_key: string;
|
|
147546
|
+
};
|
|
147547
|
+
Insert: {
|
|
147548
|
+
connection_id?: string | null;
|
|
147549
|
+
created_at?: string;
|
|
147550
|
+
created_by?: string | null;
|
|
147551
|
+
id?: string;
|
|
147552
|
+
mutation_type: string;
|
|
147553
|
+
order_id?: string | null;
|
|
147554
|
+
order_item_id?: string | null;
|
|
147555
|
+
order_source?: string | null;
|
|
147556
|
+
physical_after?: number | null;
|
|
147557
|
+
physical_before?: number | null;
|
|
147558
|
+
qty_delta: number;
|
|
147559
|
+
reason?: string | null;
|
|
147560
|
+
reserved_after?: number | null;
|
|
147561
|
+
reserved_before?: number | null;
|
|
147562
|
+
trade_item_key: string;
|
|
147563
|
+
};
|
|
147564
|
+
Update: {
|
|
147565
|
+
connection_id?: string | null;
|
|
147566
|
+
created_at?: string;
|
|
147567
|
+
created_by?: string | null;
|
|
147568
|
+
id?: string;
|
|
147569
|
+
mutation_type?: string;
|
|
147570
|
+
order_id?: string | null;
|
|
147571
|
+
order_item_id?: string | null;
|
|
147572
|
+
order_source?: string | null;
|
|
147573
|
+
physical_after?: number | null;
|
|
147574
|
+
physical_before?: number | null;
|
|
147575
|
+
qty_delta?: number;
|
|
147576
|
+
reason?: string | null;
|
|
147577
|
+
reserved_after?: number | null;
|
|
147578
|
+
reserved_before?: number | null;
|
|
147579
|
+
trade_item_key?: string;
|
|
147580
|
+
};
|
|
147581
|
+
Relationships: [];
|
|
147582
|
+
};
|
|
146374
147583
|
supplier_products: {
|
|
146375
147584
|
Row: {
|
|
146376
147585
|
article_number: string | null;
|
|
@@ -148232,6 +149441,28 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
148232
149441
|
};
|
|
148233
149442
|
Returns: number;
|
|
148234
149443
|
};
|
|
149444
|
+
apply_stock_consumption: {
|
|
149445
|
+
Args: {
|
|
149446
|
+
p_order_id: string;
|
|
149447
|
+
p_order_item_id: string;
|
|
149448
|
+
p_qty: number;
|
|
149449
|
+
p_reason: string;
|
|
149450
|
+
p_source: string;
|
|
149451
|
+
p_trade_item_key: string;
|
|
149452
|
+
};
|
|
149453
|
+
Returns: undefined;
|
|
149454
|
+
};
|
|
149455
|
+
apply_stock_reservation: {
|
|
149456
|
+
Args: {
|
|
149457
|
+
p_order_id: string;
|
|
149458
|
+
p_order_item_id: string;
|
|
149459
|
+
p_qty: number;
|
|
149460
|
+
p_reason: string;
|
|
149461
|
+
p_source: string;
|
|
149462
|
+
p_trade_item_key: string;
|
|
149463
|
+
};
|
|
149464
|
+
Returns: undefined;
|
|
149465
|
+
};
|
|
148235
149466
|
assign_cart_numbers: {
|
|
148236
149467
|
Args: {
|
|
148237
149468
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -148922,7 +150153,7 @@ export declare const listPickupLocations: import("@tanstack/start-client-core").
|
|
|
148922
150153
|
}, undefined, undefined, undefined>], undefined, Promise<{
|
|
148923
150154
|
items: {
|
|
148924
150155
|
id: string;
|
|
148925
|
-
name:
|
|
150156
|
+
name: any;
|
|
148926
150157
|
sort_order: number;
|
|
148927
150158
|
}[];
|
|
148928
150159
|
}>>;
|
|
@@ -149641,6 +150872,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
149641
150872
|
notes: string | null;
|
|
149642
150873
|
performed_at: string;
|
|
149643
150874
|
rescheduled_count: number;
|
|
150875
|
+
stock_consumed_at: string | null;
|
|
149644
150876
|
total_carts: number;
|
|
149645
150877
|
updated_at: string;
|
|
149646
150878
|
user_id: string;
|
|
@@ -149654,6 +150886,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
149654
150886
|
notes?: string | null;
|
|
149655
150887
|
performed_at?: string;
|
|
149656
150888
|
rescheduled_count?: number;
|
|
150889
|
+
stock_consumed_at?: string | null;
|
|
149657
150890
|
total_carts?: number;
|
|
149658
150891
|
updated_at?: string;
|
|
149659
150892
|
user_id: string;
|
|
@@ -149667,6 +150900,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
149667
150900
|
notes?: string | null;
|
|
149668
150901
|
performed_at?: string;
|
|
149669
150902
|
rescheduled_count?: number;
|
|
150903
|
+
stock_consumed_at?: string | null;
|
|
149670
150904
|
total_carts?: number;
|
|
149671
150905
|
updated_at?: string;
|
|
149672
150906
|
user_id?: string;
|
|
@@ -155425,6 +156659,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
155425
156659
|
purchase_price: number | null;
|
|
155426
156660
|
quantity: number;
|
|
155427
156661
|
sale_price: number | null;
|
|
156662
|
+
trade_item_key: string | null;
|
|
155428
156663
|
unit: string;
|
|
155429
156664
|
updated_at: string;
|
|
155430
156665
|
weight: string | null;
|
|
@@ -155447,6 +156682,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
155447
156682
|
purchase_price?: number | null;
|
|
155448
156683
|
quantity?: number;
|
|
155449
156684
|
sale_price?: number | null;
|
|
156685
|
+
trade_item_key?: string | null;
|
|
155450
156686
|
unit?: string;
|
|
155451
156687
|
updated_at?: string;
|
|
155452
156688
|
weight?: string | null;
|
|
@@ -155469,6 +156705,7 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
155469
156705
|
purchase_price?: number | null;
|
|
155470
156706
|
quantity?: number;
|
|
155471
156707
|
sale_price?: number | null;
|
|
156708
|
+
trade_item_key?: string | null;
|
|
155472
156709
|
unit?: string;
|
|
155473
156710
|
updated_at?: string;
|
|
155474
156711
|
weight?: string | null;
|
|
@@ -156288,6 +157525,60 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
156288
157525
|
};
|
|
156289
157526
|
Relationships: [];
|
|
156290
157527
|
};
|
|
157528
|
+
stock_mutation_log: {
|
|
157529
|
+
Row: {
|
|
157530
|
+
connection_id: string | null;
|
|
157531
|
+
created_at: string;
|
|
157532
|
+
created_by: string | null;
|
|
157533
|
+
id: string;
|
|
157534
|
+
mutation_type: string;
|
|
157535
|
+
order_id: string | null;
|
|
157536
|
+
order_item_id: string | null;
|
|
157537
|
+
order_source: string | null;
|
|
157538
|
+
physical_after: number | null;
|
|
157539
|
+
physical_before: number | null;
|
|
157540
|
+
qty_delta: number;
|
|
157541
|
+
reason: string | null;
|
|
157542
|
+
reserved_after: number | null;
|
|
157543
|
+
reserved_before: number | null;
|
|
157544
|
+
trade_item_key: string;
|
|
157545
|
+
};
|
|
157546
|
+
Insert: {
|
|
157547
|
+
connection_id?: string | null;
|
|
157548
|
+
created_at?: string;
|
|
157549
|
+
created_by?: string | null;
|
|
157550
|
+
id?: string;
|
|
157551
|
+
mutation_type: string;
|
|
157552
|
+
order_id?: string | null;
|
|
157553
|
+
order_item_id?: string | null;
|
|
157554
|
+
order_source?: string | null;
|
|
157555
|
+
physical_after?: number | null;
|
|
157556
|
+
physical_before?: number | null;
|
|
157557
|
+
qty_delta: number;
|
|
157558
|
+
reason?: string | null;
|
|
157559
|
+
reserved_after?: number | null;
|
|
157560
|
+
reserved_before?: number | null;
|
|
157561
|
+
trade_item_key: string;
|
|
157562
|
+
};
|
|
157563
|
+
Update: {
|
|
157564
|
+
connection_id?: string | null;
|
|
157565
|
+
created_at?: string;
|
|
157566
|
+
created_by?: string | null;
|
|
157567
|
+
id?: string;
|
|
157568
|
+
mutation_type?: string;
|
|
157569
|
+
order_id?: string | null;
|
|
157570
|
+
order_item_id?: string | null;
|
|
157571
|
+
order_source?: string | null;
|
|
157572
|
+
physical_after?: number | null;
|
|
157573
|
+
physical_before?: number | null;
|
|
157574
|
+
qty_delta?: number;
|
|
157575
|
+
reason?: string | null;
|
|
157576
|
+
reserved_after?: number | null;
|
|
157577
|
+
reserved_before?: number | null;
|
|
157578
|
+
trade_item_key?: string;
|
|
157579
|
+
};
|
|
157580
|
+
Relationships: [];
|
|
157581
|
+
};
|
|
156291
157582
|
supplier_products: {
|
|
156292
157583
|
Row: {
|
|
156293
157584
|
article_number: string | null;
|
|
@@ -158149,6 +159440,28 @@ export declare const listCarriersForPicker: import("@tanstack/start-client-core"
|
|
|
158149
159440
|
};
|
|
158150
159441
|
Returns: number;
|
|
158151
159442
|
};
|
|
159443
|
+
apply_stock_consumption: {
|
|
159444
|
+
Args: {
|
|
159445
|
+
p_order_id: string;
|
|
159446
|
+
p_order_item_id: string;
|
|
159447
|
+
p_qty: number;
|
|
159448
|
+
p_reason: string;
|
|
159449
|
+
p_source: string;
|
|
159450
|
+
p_trade_item_key: string;
|
|
159451
|
+
};
|
|
159452
|
+
Returns: undefined;
|
|
159453
|
+
};
|
|
159454
|
+
apply_stock_reservation: {
|
|
159455
|
+
Args: {
|
|
159456
|
+
p_order_id: string;
|
|
159457
|
+
p_order_item_id: string;
|
|
159458
|
+
p_qty: number;
|
|
159459
|
+
p_reason: string;
|
|
159460
|
+
p_source: string;
|
|
159461
|
+
p_trade_item_key: string;
|
|
159462
|
+
};
|
|
159463
|
+
Returns: undefined;
|
|
159464
|
+
};
|
|
158152
159465
|
assign_cart_numbers: {
|
|
158153
159466
|
Args: {
|
|
158154
159467
|
p_carts: import("../integrations/supabase/types").Json;
|
|
@@ -159560,6 +160873,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
159560
160873
|
notes: string | null;
|
|
159561
160874
|
performed_at: string;
|
|
159562
160875
|
rescheduled_count: number;
|
|
160876
|
+
stock_consumed_at: string | null;
|
|
159563
160877
|
total_carts: number;
|
|
159564
160878
|
updated_at: string;
|
|
159565
160879
|
user_id: string;
|
|
@@ -159573,6 +160887,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
159573
160887
|
notes?: string | null;
|
|
159574
160888
|
performed_at?: string;
|
|
159575
160889
|
rescheduled_count?: number;
|
|
160890
|
+
stock_consumed_at?: string | null;
|
|
159576
160891
|
total_carts?: number;
|
|
159577
160892
|
updated_at?: string;
|
|
159578
160893
|
user_id: string;
|
|
@@ -159586,6 +160901,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
159586
160901
|
notes?: string | null;
|
|
159587
160902
|
performed_at?: string;
|
|
159588
160903
|
rescheduled_count?: number;
|
|
160904
|
+
stock_consumed_at?: string | null;
|
|
159589
160905
|
total_carts?: number;
|
|
159590
160906
|
updated_at?: string;
|
|
159591
160907
|
user_id?: string;
|
|
@@ -165344,6 +166660,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
165344
166660
|
purchase_price: number | null;
|
|
165345
166661
|
quantity: number;
|
|
165346
166662
|
sale_price: number | null;
|
|
166663
|
+
trade_item_key: string | null;
|
|
165347
166664
|
unit: string;
|
|
165348
166665
|
updated_at: string;
|
|
165349
166666
|
weight: string | null;
|
|
@@ -165366,6 +166683,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
165366
166683
|
purchase_price?: number | null;
|
|
165367
166684
|
quantity?: number;
|
|
165368
166685
|
sale_price?: number | null;
|
|
166686
|
+
trade_item_key?: string | null;
|
|
165369
166687
|
unit?: string;
|
|
165370
166688
|
updated_at?: string;
|
|
165371
166689
|
weight?: string | null;
|
|
@@ -165388,6 +166706,7 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
165388
166706
|
purchase_price?: number | null;
|
|
165389
166707
|
quantity?: number;
|
|
165390
166708
|
sale_price?: number | null;
|
|
166709
|
+
trade_item_key?: string | null;
|
|
165391
166710
|
unit?: string;
|
|
165392
166711
|
updated_at?: string;
|
|
165393
166712
|
weight?: string | null;
|
|
@@ -166207,6 +167526,60 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
166207
167526
|
};
|
|
166208
167527
|
Relationships: [];
|
|
166209
167528
|
};
|
|
167529
|
+
stock_mutation_log: {
|
|
167530
|
+
Row: {
|
|
167531
|
+
connection_id: string | null;
|
|
167532
|
+
created_at: string;
|
|
167533
|
+
created_by: string | null;
|
|
167534
|
+
id: string;
|
|
167535
|
+
mutation_type: string;
|
|
167536
|
+
order_id: string | null;
|
|
167537
|
+
order_item_id: string | null;
|
|
167538
|
+
order_source: string | null;
|
|
167539
|
+
physical_after: number | null;
|
|
167540
|
+
physical_before: number | null;
|
|
167541
|
+
qty_delta: number;
|
|
167542
|
+
reason: string | null;
|
|
167543
|
+
reserved_after: number | null;
|
|
167544
|
+
reserved_before: number | null;
|
|
167545
|
+
trade_item_key: string;
|
|
167546
|
+
};
|
|
167547
|
+
Insert: {
|
|
167548
|
+
connection_id?: string | null;
|
|
167549
|
+
created_at?: string;
|
|
167550
|
+
created_by?: string | null;
|
|
167551
|
+
id?: string;
|
|
167552
|
+
mutation_type: string;
|
|
167553
|
+
order_id?: string | null;
|
|
167554
|
+
order_item_id?: string | null;
|
|
167555
|
+
order_source?: string | null;
|
|
167556
|
+
physical_after?: number | null;
|
|
167557
|
+
physical_before?: number | null;
|
|
167558
|
+
qty_delta: number;
|
|
167559
|
+
reason?: string | null;
|
|
167560
|
+
reserved_after?: number | null;
|
|
167561
|
+
reserved_before?: number | null;
|
|
167562
|
+
trade_item_key: string;
|
|
167563
|
+
};
|
|
167564
|
+
Update: {
|
|
167565
|
+
connection_id?: string | null;
|
|
167566
|
+
created_at?: string;
|
|
167567
|
+
created_by?: string | null;
|
|
167568
|
+
id?: string;
|
|
167569
|
+
mutation_type?: string;
|
|
167570
|
+
order_id?: string | null;
|
|
167571
|
+
order_item_id?: string | null;
|
|
167572
|
+
order_source?: string | null;
|
|
167573
|
+
physical_after?: number | null;
|
|
167574
|
+
physical_before?: number | null;
|
|
167575
|
+
qty_delta?: number;
|
|
167576
|
+
reason?: string | null;
|
|
167577
|
+
reserved_after?: number | null;
|
|
167578
|
+
reserved_before?: number | null;
|
|
167579
|
+
trade_item_key?: string;
|
|
167580
|
+
};
|
|
167581
|
+
Relationships: [];
|
|
167582
|
+
};
|
|
166210
167583
|
supplier_products: {
|
|
166211
167584
|
Row: {
|
|
166212
167585
|
article_number: string | null;
|
|
@@ -168068,6 +169441,28 @@ export declare const getOrderPickDays: import("@tanstack/start-client-core").Opt
|
|
|
168068
169441
|
};
|
|
168069
169442
|
Returns: number;
|
|
168070
169443
|
};
|
|
169444
|
+
apply_stock_consumption: {
|
|
169445
|
+
Args: {
|
|
169446
|
+
p_order_id: string;
|
|
169447
|
+
p_order_item_id: string;
|
|
169448
|
+
p_qty: number;
|
|
169449
|
+
p_reason: string;
|
|
169450
|
+
p_source: string;
|
|
169451
|
+
p_trade_item_key: string;
|
|
169452
|
+
};
|
|
169453
|
+
Returns: undefined;
|
|
169454
|
+
};
|
|
169455
|
+
apply_stock_reservation: {
|
|
169456
|
+
Args: {
|
|
169457
|
+
p_order_id: string;
|
|
169458
|
+
p_order_item_id: string;
|
|
169459
|
+
p_qty: number;
|
|
169460
|
+
p_reason: string;
|
|
169461
|
+
p_source: string;
|
|
169462
|
+
p_trade_item_key: string;
|
|
169463
|
+
};
|
|
169464
|
+
Returns: undefined;
|
|
169465
|
+
};
|
|
168071
169466
|
assign_cart_numbers: {
|
|
168072
169467
|
Args: {
|
|
168073
169468
|
p_carts: import("../integrations/supabase/types").Json;
|