@flowselections/floriday-verkoop-module 1.0.48 → 1.0.50
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/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.js +5 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -4
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +63 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +63 -1
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +63 -1
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +66 -1
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/cart-lock.functions.d.ts +63 -1
- package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-planner.d.ts +15 -4
- package/dist-lib/lib/cart-planner.d.ts.map +1 -1
- package/dist-lib/lib/cart-planner.js +44 -12
- package/dist-lib/lib/cart-planning-settings.functions.d.ts +693 -11
- package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.d.ts +201 -3
- package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
- package/dist-lib/lib/cart-replan.functions.js +49 -3
- package/dist-lib/lib/create-order.functions.d.ts +1076 -17
- package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
- package/dist-lib/lib/create-order.functions.js +48 -4
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +189 -3
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +63 -1
- package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts +63 -1
- package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.functions.js +11 -0
- package/dist-lib/lib/floriday-public.functions.d.ts +441 -7
- package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +315 -5
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/dist-lib/lib/invoice-timing.functions.d.ts +252 -4
- package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
- package/dist-lib/lib/load-carrier-labels.d.ts +13 -0
- package/dist-lib/lib/load-carrier-labels.d.ts.map +1 -1
- package/dist-lib/lib/load-carrier-labels.js +20 -0
- package/dist-lib/lib/load-carriers.functions.d.ts +63 -1
- package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-engine.functions.d.ts +315 -5
- package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
- package/dist-lib/lib/logistics-stock.functions.d.ts +126 -2
- package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-addresses.functions.d.ts +63 -1
- package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-buffers.functions.d.ts +189 -3
- package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-carrier.functions.d.ts +126 -2
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-pickup.functions.d.ts +126 -2
- package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-shipments.functions.d.ts +252 -4
- package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts +63 -1
- package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +70 -4
- package/dist-lib/lib/salesorders-mapping.d.ts +17 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +64 -13
- package/dist-lib/lib/salesorders.functions.d.ts +315 -5
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +19 -3
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +126 -2
- package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
- package/dist-lib/lib/tradeitems.functions.d.ts +63 -1
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { createServerFn } from "@tanstack/react-start";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware";
|
|
7
|
+
import { CART_PLANNER_VERSION } from "./cart-planner";
|
|
7
8
|
// ─── Klanten ────────────────────────────────────────────────────────────────
|
|
8
9
|
// Bron 1: lokale `customers` (incl. eerder geïmporteerde Twinfield-klanten).
|
|
9
10
|
// Bron 2: `twinfield_customers_cache` — klanten die alleen in Twinfield staan.
|
|
@@ -1059,11 +1060,31 @@ export const planAndSaveAutoCarts = createServerFn({ method: "POST" })
|
|
|
1059
1060
|
cartNumber = existingMax[0].cart_number + 1;
|
|
1060
1061
|
const autoCarts = [];
|
|
1061
1062
|
const remainders = [];
|
|
1063
|
+
const blockedLines = [];
|
|
1062
1064
|
for (const it of items ?? []) {
|
|
1063
1065
|
const prod = it.products ?? {};
|
|
1064
|
-
|
|
1065
|
-
const
|
|
1066
|
-
|
|
1066
|
+
// Onbekend blijft onbekend: geen terugval op 1 (1x1x1 = 1 plant per kar).
|
|
1067
|
+
const pos = (v) => {
|
|
1068
|
+
if (v === null || v === undefined)
|
|
1069
|
+
return null;
|
|
1070
|
+
const n = Math.round(Number(v));
|
|
1071
|
+
return Number.isFinite(n) && n > 0 ? n : null;
|
|
1072
|
+
};
|
|
1073
|
+
const ppc = pos(prod.plants_per_crate);
|
|
1074
|
+
const cpl = pos(prod.crates_per_layer);
|
|
1075
|
+
const lpc = pos(prod.layers_per_cart);
|
|
1076
|
+
if (ppc === null || cpl === null || lpc === null) {
|
|
1077
|
+
blockedLines.push({
|
|
1078
|
+
order_item_id: it.id,
|
|
1079
|
+
product_name: it.product_name,
|
|
1080
|
+
missing: [
|
|
1081
|
+
ppc === null ? "plants_per_crate" : null,
|
|
1082
|
+
cpl === null ? "crates_per_layer" : null,
|
|
1083
|
+
lpc === null ? "layers_per_cart" : null,
|
|
1084
|
+
].filter((m) => m !== null),
|
|
1085
|
+
});
|
|
1086
|
+
continue;
|
|
1087
|
+
}
|
|
1067
1088
|
const cratesPerCart = cpl * lpc;
|
|
1068
1089
|
const totalPlants = Math.max(0, Number(it.quantity ?? 0));
|
|
1069
1090
|
const totalCrates = Math.ceil(totalPlants / ppc);
|
|
@@ -1076,6 +1097,9 @@ export const planAndSaveAutoCarts = createServerFn({ method: "POST" })
|
|
|
1076
1097
|
cart_number: cartNumber,
|
|
1077
1098
|
is_auto: true,
|
|
1078
1099
|
is_complete: true,
|
|
1100
|
+
// Expliciet zetten: nooit op de kolom-default leunen.
|
|
1101
|
+
source: "auto",
|
|
1102
|
+
algorithm_version: CART_PLANNER_VERSION,
|
|
1079
1103
|
}).select("id").single();
|
|
1080
1104
|
if (cErr)
|
|
1081
1105
|
throw new Error(cErr.message);
|
|
@@ -1135,7 +1159,24 @@ export const planAndSaveAutoCarts = createServerFn({ method: "POST" })
|
|
|
1135
1159
|
const adjustedRemainders = remainders
|
|
1136
1160
|
.map((r) => ({ ...r, crates_remaining: Math.max(0, r.crates_remaining - (assignedByItem[r.order_item_id] ?? 0)) }))
|
|
1137
1161
|
.filter((r) => r.crates_remaining > 0);
|
|
1138
|
-
|
|
1162
|
+
if (blockedLines.length > 0) {
|
|
1163
|
+
const { error: blockErr } = await supabaseAdmin.rpc("logistics_plan_block", {
|
|
1164
|
+
p_order_ids: [data.orderId],
|
|
1165
|
+
p_reason: "belading_onbekend",
|
|
1166
|
+
p_details: { source: "floriday-verkoop-module/planAndSaveAutoCarts", items: blockedLines },
|
|
1167
|
+
});
|
|
1168
|
+
if (blockErr) {
|
|
1169
|
+
console.warn("[karindeling] blokkade niet vastgelegd:", blockErr.message, blockedLines);
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
return {
|
|
1173
|
+
ok: true,
|
|
1174
|
+
autoCarts,
|
|
1175
|
+
remainders: adjustedRemainders,
|
|
1176
|
+
existingManualCarts,
|
|
1177
|
+
nextCartNumber: cartNumber,
|
|
1178
|
+
blockedLines,
|
|
1179
|
+
};
|
|
1139
1180
|
});
|
|
1140
1181
|
const ManualCartItemSchema = z.object({
|
|
1141
1182
|
order_item_id: z.string().uuid().nullable(),
|
|
@@ -1169,6 +1210,9 @@ export const saveManualCarts = createServerFn({ method: "POST" })
|
|
|
1169
1210
|
is_auto: false,
|
|
1170
1211
|
is_complete: !!cart.is_complete,
|
|
1171
1212
|
notes: cart.notes ?? null,
|
|
1213
|
+
// Expliciet zetten: nooit op de kolom-default leunen.
|
|
1214
|
+
source: "manual",
|
|
1215
|
+
algorithm_version: CART_PLANNER_VERSION,
|
|
1172
1216
|
}).select("id").single();
|
|
1173
1217
|
if (cErr)
|
|
1174
1218
|
throw new Error(cErr.message);
|
|
@@ -18619,6 +18619,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18619
18619
|
werkbon_package_items: {
|
|
18620
18620
|
Row: {
|
|
18621
18621
|
article_number: string | null;
|
|
18622
|
+
artikel_id: string | null;
|
|
18622
18623
|
created_at: string;
|
|
18623
18624
|
gtin: string | null;
|
|
18624
18625
|
id: string;
|
|
@@ -18636,6 +18637,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18636
18637
|
};
|
|
18637
18638
|
Insert: {
|
|
18638
18639
|
article_number?: string | null;
|
|
18640
|
+
artikel_id?: string | null;
|
|
18639
18641
|
created_at?: string;
|
|
18640
18642
|
gtin?: string | null;
|
|
18641
18643
|
id?: string;
|
|
@@ -18653,6 +18655,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18653
18655
|
};
|
|
18654
18656
|
Update: {
|
|
18655
18657
|
article_number?: string | null;
|
|
18658
|
+
artikel_id?: string | null;
|
|
18656
18659
|
created_at?: string;
|
|
18657
18660
|
gtin?: string | null;
|
|
18658
18661
|
id?: string;
|
|
@@ -18669,6 +18672,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
18669
18672
|
updated_at?: string;
|
|
18670
18673
|
};
|
|
18671
18674
|
Relationships: [{
|
|
18675
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
18676
|
+
columns: ["artikel_id"];
|
|
18677
|
+
isOneToOne: false;
|
|
18678
|
+
referencedRelation: "artikelen_cache";
|
|
18679
|
+
referencedColumns: ["id"];
|
|
18680
|
+
}, {
|
|
18672
18681
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
18673
18682
|
columns: ["package_id"];
|
|
18674
18683
|
isOneToOne: false;
|
|
@@ -19891,6 +19900,20 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
19891
19900
|
referencedColumns: ["id"];
|
|
19892
19901
|
}];
|
|
19893
19902
|
};
|
|
19903
|
+
v_werkbon_totalen: {
|
|
19904
|
+
Row: {
|
|
19905
|
+
packages_cents: number | null;
|
|
19906
|
+
packages_minutes: number | null;
|
|
19907
|
+
werkbon_id: string | null;
|
|
19908
|
+
};
|
|
19909
|
+
Relationships: [{
|
|
19910
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
19911
|
+
columns: ["werkbon_id"];
|
|
19912
|
+
isOneToOne: false;
|
|
19913
|
+
referencedRelation: "werkbonnen";
|
|
19914
|
+
referencedColumns: ["id"];
|
|
19915
|
+
}];
|
|
19916
|
+
};
|
|
19894
19917
|
};
|
|
19895
19918
|
Functions: {
|
|
19896
19919
|
_floriday_schedule_job: {
|
|
@@ -21438,6 +21461,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
21438
21461
|
};
|
|
21439
21462
|
Returns: import("../integrations/supabase/types").Json;
|
|
21440
21463
|
};
|
|
21464
|
+
logistics_plan_block: {
|
|
21465
|
+
Args: {
|
|
21466
|
+
p_details?: import("../integrations/supabase/types").Json;
|
|
21467
|
+
p_order_ids: string[];
|
|
21468
|
+
p_reason: string;
|
|
21469
|
+
};
|
|
21470
|
+
Returns: number;
|
|
21471
|
+
};
|
|
21441
21472
|
logistics_plan_buffer_sql: {
|
|
21442
21473
|
Args: {
|
|
21443
21474
|
p_buffer_id: string;
|
|
@@ -21819,6 +21850,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
21819
21850
|
};
|
|
21820
21851
|
Returns: string;
|
|
21821
21852
|
};
|
|
21853
|
+
pakket_suggesties_voor_tekst: {
|
|
21854
|
+
Args: {
|
|
21855
|
+
_tekst: string;
|
|
21856
|
+
};
|
|
21857
|
+
Returns: {
|
|
21858
|
+
hit_type: string;
|
|
21859
|
+
package_id: string;
|
|
21860
|
+
priority: number;
|
|
21861
|
+
}[];
|
|
21862
|
+
};
|
|
21863
|
+
pakket_voor_reistijd: {
|
|
21864
|
+
Args: {
|
|
21865
|
+
_minuten: number;
|
|
21866
|
+
};
|
|
21867
|
+
Returns: {
|
|
21868
|
+
package_id: string;
|
|
21869
|
+
priority: number;
|
|
21870
|
+
}[];
|
|
21871
|
+
};
|
|
21822
21872
|
pick_active_printers: {
|
|
21823
21873
|
Args: never;
|
|
21824
21874
|
Returns: {
|
|
@@ -22869,6 +22919,18 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
22869
22919
|
Args: never;
|
|
22870
22920
|
Returns: string;
|
|
22871
22921
|
};
|
|
22922
|
+
werkbon_totalen: {
|
|
22923
|
+
Args: {
|
|
22924
|
+
_werkbon_id: string;
|
|
22925
|
+
};
|
|
22926
|
+
Returns: {
|
|
22927
|
+
materials_cents: number;
|
|
22928
|
+
packages_cents: number;
|
|
22929
|
+
packages_minutes: number;
|
|
22930
|
+
total_cents: number;
|
|
22931
|
+
total_minutes: number;
|
|
22932
|
+
}[];
|
|
22933
|
+
};
|
|
22872
22934
|
wo_create_from_source: {
|
|
22873
22935
|
Args: {
|
|
22874
22936
|
_payload?: import("../integrations/supabase/types").Json;
|
|
@@ -22907,7 +22969,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
|
|
|
22907
22969
|
};
|
|
22908
22970
|
CompositeTypes: { [_ in never]: never; };
|
|
22909
22971
|
}, {
|
|
22910
|
-
PostgrestVersion: "14.
|
|
22972
|
+
PostgrestVersion: "14.17";
|
|
22911
22973
|
}>;
|
|
22912
22974
|
userId: string;
|
|
22913
22975
|
claims: import("@supabase/auth-js").User;
|
|
@@ -41536,6 +41598,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41536
41598
|
werkbon_package_items: {
|
|
41537
41599
|
Row: {
|
|
41538
41600
|
article_number: string | null;
|
|
41601
|
+
artikel_id: string | null;
|
|
41539
41602
|
created_at: string;
|
|
41540
41603
|
gtin: string | null;
|
|
41541
41604
|
id: string;
|
|
@@ -41553,6 +41616,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41553
41616
|
};
|
|
41554
41617
|
Insert: {
|
|
41555
41618
|
article_number?: string | null;
|
|
41619
|
+
artikel_id?: string | null;
|
|
41556
41620
|
created_at?: string;
|
|
41557
41621
|
gtin?: string | null;
|
|
41558
41622
|
id?: string;
|
|
@@ -41570,6 +41634,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41570
41634
|
};
|
|
41571
41635
|
Update: {
|
|
41572
41636
|
article_number?: string | null;
|
|
41637
|
+
artikel_id?: string | null;
|
|
41573
41638
|
created_at?: string;
|
|
41574
41639
|
gtin?: string | null;
|
|
41575
41640
|
id?: string;
|
|
@@ -41586,6 +41651,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
41586
41651
|
updated_at?: string;
|
|
41587
41652
|
};
|
|
41588
41653
|
Relationships: [{
|
|
41654
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
41655
|
+
columns: ["artikel_id"];
|
|
41656
|
+
isOneToOne: false;
|
|
41657
|
+
referencedRelation: "artikelen_cache";
|
|
41658
|
+
referencedColumns: ["id"];
|
|
41659
|
+
}, {
|
|
41589
41660
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
41590
41661
|
columns: ["package_id"];
|
|
41591
41662
|
isOneToOne: false;
|
|
@@ -42808,6 +42879,20 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
42808
42879
|
referencedColumns: ["id"];
|
|
42809
42880
|
}];
|
|
42810
42881
|
};
|
|
42882
|
+
v_werkbon_totalen: {
|
|
42883
|
+
Row: {
|
|
42884
|
+
packages_cents: number | null;
|
|
42885
|
+
packages_minutes: number | null;
|
|
42886
|
+
werkbon_id: string | null;
|
|
42887
|
+
};
|
|
42888
|
+
Relationships: [{
|
|
42889
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
42890
|
+
columns: ["werkbon_id"];
|
|
42891
|
+
isOneToOne: false;
|
|
42892
|
+
referencedRelation: "werkbonnen";
|
|
42893
|
+
referencedColumns: ["id"];
|
|
42894
|
+
}];
|
|
42895
|
+
};
|
|
42811
42896
|
};
|
|
42812
42897
|
Functions: {
|
|
42813
42898
|
_floriday_schedule_job: {
|
|
@@ -44355,6 +44440,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
44355
44440
|
};
|
|
44356
44441
|
Returns: import("../integrations/supabase/types").Json;
|
|
44357
44442
|
};
|
|
44443
|
+
logistics_plan_block: {
|
|
44444
|
+
Args: {
|
|
44445
|
+
p_details?: import("../integrations/supabase/types").Json;
|
|
44446
|
+
p_order_ids: string[];
|
|
44447
|
+
p_reason: string;
|
|
44448
|
+
};
|
|
44449
|
+
Returns: number;
|
|
44450
|
+
};
|
|
44358
44451
|
logistics_plan_buffer_sql: {
|
|
44359
44452
|
Args: {
|
|
44360
44453
|
p_buffer_id: string;
|
|
@@ -44736,6 +44829,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
44736
44829
|
};
|
|
44737
44830
|
Returns: string;
|
|
44738
44831
|
};
|
|
44832
|
+
pakket_suggesties_voor_tekst: {
|
|
44833
|
+
Args: {
|
|
44834
|
+
_tekst: string;
|
|
44835
|
+
};
|
|
44836
|
+
Returns: {
|
|
44837
|
+
hit_type: string;
|
|
44838
|
+
package_id: string;
|
|
44839
|
+
priority: number;
|
|
44840
|
+
}[];
|
|
44841
|
+
};
|
|
44842
|
+
pakket_voor_reistijd: {
|
|
44843
|
+
Args: {
|
|
44844
|
+
_minuten: number;
|
|
44845
|
+
};
|
|
44846
|
+
Returns: {
|
|
44847
|
+
package_id: string;
|
|
44848
|
+
priority: number;
|
|
44849
|
+
}[];
|
|
44850
|
+
};
|
|
44739
44851
|
pick_active_printers: {
|
|
44740
44852
|
Args: never;
|
|
44741
44853
|
Returns: {
|
|
@@ -45786,6 +45898,18 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
45786
45898
|
Args: never;
|
|
45787
45899
|
Returns: string;
|
|
45788
45900
|
};
|
|
45901
|
+
werkbon_totalen: {
|
|
45902
|
+
Args: {
|
|
45903
|
+
_werkbon_id: string;
|
|
45904
|
+
};
|
|
45905
|
+
Returns: {
|
|
45906
|
+
materials_cents: number;
|
|
45907
|
+
packages_cents: number;
|
|
45908
|
+
packages_minutes: number;
|
|
45909
|
+
total_cents: number;
|
|
45910
|
+
total_minutes: number;
|
|
45911
|
+
}[];
|
|
45912
|
+
};
|
|
45789
45913
|
wo_create_from_source: {
|
|
45790
45914
|
Args: {
|
|
45791
45915
|
_payload?: import("../integrations/supabase/types").Json;
|
|
@@ -45824,7 +45948,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
|
|
|
45824
45948
|
};
|
|
45825
45949
|
CompositeTypes: { [_ in never]: never; };
|
|
45826
45950
|
}, {
|
|
45827
|
-
PostgrestVersion: "14.
|
|
45951
|
+
PostgrestVersion: "14.17";
|
|
45828
45952
|
}>;
|
|
45829
45953
|
userId: string;
|
|
45830
45954
|
claims: import("@supabase/auth-js").User;
|
|
@@ -64462,6 +64586,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64462
64586
|
werkbon_package_items: {
|
|
64463
64587
|
Row: {
|
|
64464
64588
|
article_number: string | null;
|
|
64589
|
+
artikel_id: string | null;
|
|
64465
64590
|
created_at: string;
|
|
64466
64591
|
gtin: string | null;
|
|
64467
64592
|
id: string;
|
|
@@ -64479,6 +64604,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64479
64604
|
};
|
|
64480
64605
|
Insert: {
|
|
64481
64606
|
article_number?: string | null;
|
|
64607
|
+
artikel_id?: string | null;
|
|
64482
64608
|
created_at?: string;
|
|
64483
64609
|
gtin?: string | null;
|
|
64484
64610
|
id?: string;
|
|
@@ -64496,6 +64622,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64496
64622
|
};
|
|
64497
64623
|
Update: {
|
|
64498
64624
|
article_number?: string | null;
|
|
64625
|
+
artikel_id?: string | null;
|
|
64499
64626
|
created_at?: string;
|
|
64500
64627
|
gtin?: string | null;
|
|
64501
64628
|
id?: string;
|
|
@@ -64512,6 +64639,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
64512
64639
|
updated_at?: string;
|
|
64513
64640
|
};
|
|
64514
64641
|
Relationships: [{
|
|
64642
|
+
foreignKeyName: "werkbon_package_items_artikel_id_fkey";
|
|
64643
|
+
columns: ["artikel_id"];
|
|
64644
|
+
isOneToOne: false;
|
|
64645
|
+
referencedRelation: "artikelen_cache";
|
|
64646
|
+
referencedColumns: ["id"];
|
|
64647
|
+
}, {
|
|
64515
64648
|
foreignKeyName: "werkbon_package_items_package_id_fkey";
|
|
64516
64649
|
columns: ["package_id"];
|
|
64517
64650
|
isOneToOne: false;
|
|
@@ -65734,6 +65867,20 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
65734
65867
|
referencedColumns: ["id"];
|
|
65735
65868
|
}];
|
|
65736
65869
|
};
|
|
65870
|
+
v_werkbon_totalen: {
|
|
65871
|
+
Row: {
|
|
65872
|
+
packages_cents: number | null;
|
|
65873
|
+
packages_minutes: number | null;
|
|
65874
|
+
werkbon_id: string | null;
|
|
65875
|
+
};
|
|
65876
|
+
Relationships: [{
|
|
65877
|
+
foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
|
|
65878
|
+
columns: ["werkbon_id"];
|
|
65879
|
+
isOneToOne: false;
|
|
65880
|
+
referencedRelation: "werkbonnen";
|
|
65881
|
+
referencedColumns: ["id"];
|
|
65882
|
+
}];
|
|
65883
|
+
};
|
|
65737
65884
|
};
|
|
65738
65885
|
Functions: {
|
|
65739
65886
|
_floriday_schedule_job: {
|
|
@@ -67281,6 +67428,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
67281
67428
|
};
|
|
67282
67429
|
Returns: import("../integrations/supabase/types").Json;
|
|
67283
67430
|
};
|
|
67431
|
+
logistics_plan_block: {
|
|
67432
|
+
Args: {
|
|
67433
|
+
p_details?: import("../integrations/supabase/types").Json;
|
|
67434
|
+
p_order_ids: string[];
|
|
67435
|
+
p_reason: string;
|
|
67436
|
+
};
|
|
67437
|
+
Returns: number;
|
|
67438
|
+
};
|
|
67284
67439
|
logistics_plan_buffer_sql: {
|
|
67285
67440
|
Args: {
|
|
67286
67441
|
p_buffer_id: string;
|
|
@@ -67662,6 +67817,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
67662
67817
|
};
|
|
67663
67818
|
Returns: string;
|
|
67664
67819
|
};
|
|
67820
|
+
pakket_suggesties_voor_tekst: {
|
|
67821
|
+
Args: {
|
|
67822
|
+
_tekst: string;
|
|
67823
|
+
};
|
|
67824
|
+
Returns: {
|
|
67825
|
+
hit_type: string;
|
|
67826
|
+
package_id: string;
|
|
67827
|
+
priority: number;
|
|
67828
|
+
}[];
|
|
67829
|
+
};
|
|
67830
|
+
pakket_voor_reistijd: {
|
|
67831
|
+
Args: {
|
|
67832
|
+
_minuten: number;
|
|
67833
|
+
};
|
|
67834
|
+
Returns: {
|
|
67835
|
+
package_id: string;
|
|
67836
|
+
priority: number;
|
|
67837
|
+
}[];
|
|
67838
|
+
};
|
|
67665
67839
|
pick_active_printers: {
|
|
67666
67840
|
Args: never;
|
|
67667
67841
|
Returns: {
|
|
@@ -68712,6 +68886,18 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
68712
68886
|
Args: never;
|
|
68713
68887
|
Returns: string;
|
|
68714
68888
|
};
|
|
68889
|
+
werkbon_totalen: {
|
|
68890
|
+
Args: {
|
|
68891
|
+
_werkbon_id: string;
|
|
68892
|
+
};
|
|
68893
|
+
Returns: {
|
|
68894
|
+
materials_cents: number;
|
|
68895
|
+
packages_cents: number;
|
|
68896
|
+
packages_minutes: number;
|
|
68897
|
+
total_cents: number;
|
|
68898
|
+
total_minutes: number;
|
|
68899
|
+
}[];
|
|
68900
|
+
};
|
|
68715
68901
|
wo_create_from_source: {
|
|
68716
68902
|
Args: {
|
|
68717
68903
|
_payload?: import("../integrations/supabase/types").Json;
|
|
@@ -68750,7 +68936,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
|
|
|
68750
68936
|
};
|
|
68751
68937
|
CompositeTypes: { [_ in never]: never; };
|
|
68752
68938
|
}, {
|
|
68753
|
-
PostgrestVersion: "14.
|
|
68939
|
+
PostgrestVersion: "14.17";
|
|
68754
68940
|
}>;
|
|
68755
68941
|
userId: string;
|
|
68756
68942
|
claims: import("@supabase/auth-js").User;
|