@flowselections/floriday-klanten-module 1.0.101 → 1.0.104
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/klanten/CustomerArticleAliasDialog.d.ts +14 -0
- package/dist-lib/components/klanten/CustomerArticleAliasDialog.d.ts.map +1 -0
- package/dist-lib/components/klanten/CustomerArticleAliasDialog.js +47 -0
- package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts +3 -1
- package/dist-lib/components/klanten/CustomerAssortmentTab.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerAssortmentTab.js +23 -3
- package/dist-lib/components/klanten/CustomerLogisticsCard.d.ts +5 -0
- package/dist-lib/components/klanten/CustomerLogisticsCard.d.ts.map +1 -0
- package/dist-lib/components/klanten/CustomerLogisticsCard.js +92 -0
- package/dist-lib/components/klanten/CustomerStickerFormatDialog.d.ts.map +1 -1
- package/dist-lib/components/klanten/CustomerStickerFormatDialog.js +12 -9
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +26 -3
- package/dist-lib/components/klanten/KlantExtraVeldenCard.d.ts +5 -0
- package/dist-lib/components/klanten/KlantExtraVeldenCard.d.ts.map +1 -0
- package/dist-lib/components/klanten/KlantExtraVeldenCard.js +48 -0
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +33 -12
- package/dist-lib/components/klanten/StickerFormaatKeuze.d.ts +16 -0
- package/dist-lib/components/klanten/StickerFormaatKeuze.d.ts.map +1 -0
- package/dist-lib/components/klanten/StickerFormaatKeuze.js +25 -0
- package/dist-lib/components/klanten/StickerSizeLine.d.ts +1 -1
- package/dist-lib/components/klanten/StickerSizeLine.d.ts.map +1 -1
- package/dist-lib/components/klanten/StickerSizeLine.js +19 -17
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/CustomerPickerDialog.js +13 -1
- package/dist-lib/components/settings/CustomerFieldsCard.d.ts.map +1 -1
- package/dist-lib/components/settings/CustomerFieldsCard.js +2 -21
- package/dist-lib/components/settings/ExtraVeldenBeheer.d.ts +3 -0
- package/dist-lib/components/settings/ExtraVeldenBeheer.d.ts.map +1 -0
- package/dist-lib/components/settings/ExtraVeldenBeheer.js +61 -0
- package/dist-lib/index.d.ts +3 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -1
- package/dist-lib/integrations/supabase/types.d.ts +3835 -2
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.js +1 -0
- package/dist-lib/lib/customer-archief.d.ts +37 -0
- package/dist-lib/lib/customer-archief.d.ts.map +1 -0
- package/dist-lib/lib/customer-archief.functions.d.ts +31 -0
- package/dist-lib/lib/customer-archief.functions.d.ts.map +1 -0
- package/dist-lib/lib/customer-archief.functions.js +35 -0
- package/dist-lib/lib/customer-archief.js +45 -0
- package/dist-lib/lib/customer-assortment.functions.d.ts +4 -0
- package/dist-lib/lib/customer-assortment.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-assortment.functions.js +7 -1
- package/dist-lib/lib/customer-schemas.d.ts +6 -1
- package/dist-lib/lib/customer-schemas.d.ts.map +1 -1
- package/dist-lib/lib/customer-schemas.js +2 -0
- package/dist-lib/lib/customer-stickers.functions.d.ts +12 -0
- package/dist-lib/lib/customer-stickers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customer-stickers.functions.js +45 -0
- package/dist-lib/lib/customers.functions.d.ts +2 -1
- package/dist-lib/lib/customers.functions.d.ts.map +1 -1
- package/dist-lib/lib/customers.functions.js +6 -2
- package/dist-lib/lib/extra-velden.d.ts +32 -0
- package/dist-lib/lib/extra-velden.d.ts.map +1 -0
- package/dist-lib/lib/extra-velden.functions.d.ts +69 -0
- package/dist-lib/lib/extra-velden.functions.d.ts.map +1 -0
- package/dist-lib/lib/extra-velden.functions.js +103 -0
- package/dist-lib/lib/extra-velden.js +39 -0
- package/dist-lib/lib/klant-artikel-alias.d.ts +20 -0
- package/dist-lib/lib/klant-artikel-alias.d.ts.map +1 -0
- package/dist-lib/lib/klant-artikel-alias.functions.d.ts +50 -0
- package/dist-lib/lib/klant-artikel-alias.functions.d.ts.map +1 -0
- package/dist-lib/lib/klant-artikel-alias.functions.js +66 -0
- package/dist-lib/lib/klant-artikel-alias.js +48 -0
- package/dist-lib/lib/klanten-overzicht.d.ts +3 -1
- package/dist-lib/lib/klanten-overzicht.d.ts.map +1 -1
- package/dist-lib/lib/klanten-overzicht.js +6 -1
- package/dist-lib/lib/labels.d.ts +6 -0
- package/dist-lib/lib/labels.d.ts.map +1 -1
- package/dist-lib/lib/labels.js +2 -0
- package/dist-lib/lib/lijst-stand.d.ts +2 -0
- package/dist-lib/lib/lijst-stand.d.ts.map +1 -1
- package/dist-lib/lib/lijst-stand.js +4 -0
- package/dist-lib/lib/logistiek-uitzonderingen.functions.d.ts +61 -0
- package/dist-lib/lib/logistiek-uitzonderingen.functions.d.ts.map +1 -0
- package/dist-lib/lib/logistiek-uitzonderingen.functions.js +81 -0
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.d.ts +1 -1
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.d.ts.map +1 -1
- package/dist-lib/lib/server-routes/twinfield-run-queue.server.js +6 -3
- package/dist-lib/lib/sticker-formaten.d.ts +46 -0
- package/dist-lib/lib/sticker-formaten.d.ts.map +1 -0
- package/dist-lib/lib/sticker-formaten.js +75 -0
- package/dist-lib/lib/twinfield-queue-admin.functions.d.ts +1 -1
- package/dist-lib/lib/twinfield-queue-admin.functions.d.ts.map +1 -1
- package/dist-lib/lib/twinfield-queue-admin.functions.js +1 -1
- package/dist-lib/lib/voorraad-assortiment.d.ts +2 -0
- package/dist-lib/lib/voorraad-assortiment.d.ts.map +1 -1
- package/dist-lib/lib/voorraad-assortiment.js +2 -0
- package/package.json +19 -3
- package/schema/klanten.sql +598 -79
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toegestane stickerformaten voor klantstickers (product, fust, stickerinstellingen).
|
|
3
|
+
* Bron: de Layout-maker (print_etiketrollen + layouts_a4_velindelingen()). Ontbreken
|
|
4
|
+
* beide, dan de vaste lijst hieronder (de formaten die de Layout-maker nu kent).
|
|
5
|
+
*/
|
|
6
|
+
export type StickerFormaat = {
|
|
7
|
+
/** "<breedte>x<hoogte>" in mm, één decimaal. */
|
|
8
|
+
sleutel: string;
|
|
9
|
+
label: string;
|
|
10
|
+
width_mm: number;
|
|
11
|
+
height_mm: number;
|
|
12
|
+
};
|
|
13
|
+
export type StickerFormatenResultaat = {
|
|
14
|
+
formaten: StickerFormaat[];
|
|
15
|
+
bron: "layout-maker" | "vast";
|
|
16
|
+
melding: string | null;
|
|
17
|
+
};
|
|
18
|
+
export type EtiketRol = {
|
|
19
|
+
naam: string | null;
|
|
20
|
+
breedte_mm: number | string | null;
|
|
21
|
+
hoogte_mm: number | string | null;
|
|
22
|
+
doorlopend?: boolean | null;
|
|
23
|
+
is_a4?: boolean | null;
|
|
24
|
+
actief?: boolean | null;
|
|
25
|
+
volgorde?: number | null;
|
|
26
|
+
};
|
|
27
|
+
export type A4Indeling = {
|
|
28
|
+
breedte_mm: number | string | null;
|
|
29
|
+
hoogte_mm: number | string | null;
|
|
30
|
+
kolommen?: number | null;
|
|
31
|
+
rijen?: number | null;
|
|
32
|
+
};
|
|
33
|
+
export declare const FORMATEN_NIET_BESCHIKBAAR = "De lijst met formaten uit de Layout-maker is niet beschikbaar; de vaste lijst wordt gebruikt.";
|
|
34
|
+
export declare function formaatSleutel(widthMm: number, heightMm: number): string;
|
|
35
|
+
export declare function formaatTekst(widthMm: number, heightMm: number): string;
|
|
36
|
+
/** Vaste terugvallijst: gelijk aan de huidige Layout-maker-rollen en A4-indelingen. */
|
|
37
|
+
export declare const VASTE_STICKERFORMATEN: readonly StickerFormaat[];
|
|
38
|
+
/**
|
|
39
|
+
* Bouwt de keuzelijst. `null` = bron niet beschikbaar. Rollen: alleen actief, niet
|
|
40
|
+
* doorlopend en niet het A4-vel zelf. Dubbele maten worden samengevoegd (eerste naam wint).
|
|
41
|
+
*/
|
|
42
|
+
export declare function bouwStickerFormaten(rollen: EtiketRol[] | null, a4: A4Indeling[] | null): StickerFormatenResultaat;
|
|
43
|
+
export declare function zoekFormaat(lijst: readonly StickerFormaat[], widthMm: number | null | undefined, heightMm: number | null | undefined): StickerFormaat | null;
|
|
44
|
+
export declare function isToegestaanFormaat(lijst: readonly StickerFormaat[], widthMm: number, heightMm: number): boolean;
|
|
45
|
+
export declare const FORMAAT_NIET_IN_LIJST = "Kies een formaat uit de lijst.";
|
|
46
|
+
//# sourceMappingURL=sticker-formaten.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker-formaten.d.ts","sourceRoot":"","sources":["../../src/lib/sticker-formaten.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,gDAAgD;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,IAAI,EAAE,cAAc,GAAG,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EA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ane stickerformaten voor klantstickers (product, fust, stickerinstellingen).
|
|
3
|
+
* Bron: de Layout-maker (print_etiketrollen + layouts_a4_velindelingen()). Ontbreken
|
|
4
|
+
* beide, dan de vaste lijst hieronder (de formaten die de Layout-maker nu kent).
|
|
5
|
+
*/
|
|
6
|
+
export const FORMATEN_NIET_BESCHIKBAAR = "De lijst met formaten uit de Layout-maker is niet beschikbaar; de vaste lijst wordt gebruikt.";
|
|
7
|
+
const r1 = (v) => Math.round(v * 10) / 10;
|
|
8
|
+
const fmt = (v) => r1(v).toLocaleString("nl-NL", { maximumFractionDigits: 1 });
|
|
9
|
+
export function formaatSleutel(widthMm, heightMm) {
|
|
10
|
+
return `${r1(widthMm)}x${r1(heightMm)}`;
|
|
11
|
+
}
|
|
12
|
+
export function formaatTekst(widthMm, heightMm) {
|
|
13
|
+
return `${fmt(widthMm)} × ${fmt(heightMm)} mm`;
|
|
14
|
+
}
|
|
15
|
+
/** Vaste terugvallijst: gelijk aan de huidige Layout-maker-rollen en A4-indelingen. */
|
|
16
|
+
export const VASTE_STICKERFORMATEN = [
|
|
17
|
+
[89, 25, "DYMO 99010 adres"],
|
|
18
|
+
[89, 36, "DYMO 99012 adres groot"],
|
|
19
|
+
[101, 54, "DYMO 99014 verzend"],
|
|
20
|
+
[102, 59, "DYMO S0722430 verzend"],
|
|
21
|
+
[104, 159, "DYMO 4XL verzendlabel"],
|
|
22
|
+
[100, 62, "Etiket 100 × 62"],
|
|
23
|
+
[100, 100, "Etiket 100 × 100"],
|
|
24
|
+
[100, 150, "Etiket 100 × 150"],
|
|
25
|
+
[50, 50, "A4-vel 4 × 5"],
|
|
26
|
+
[40, 40, "A4-vel 5 × 7"],
|
|
27
|
+
[48, 48, "A4-vel 4 × 6"],
|
|
28
|
+
[50, 40, "A4-vel 4 × 7"],
|
|
29
|
+
].map(([w, h, naam]) => ({
|
|
30
|
+
sleutel: formaatSleutel(w, h),
|
|
31
|
+
label: `${formaatTekst(w, h)} – ${naam}`,
|
|
32
|
+
width_mm: w,
|
|
33
|
+
height_mm: h,
|
|
34
|
+
}));
|
|
35
|
+
const num = (v) => (typeof v === "number" ? v : typeof v === "string" ? Number(v) : NaN);
|
|
36
|
+
/**
|
|
37
|
+
* Bouwt de keuzelijst. `null` = bron niet beschikbaar. Rollen: alleen actief, niet
|
|
38
|
+
* doorlopend en niet het A4-vel zelf. Dubbele maten worden samengevoegd (eerste naam wint).
|
|
39
|
+
*/
|
|
40
|
+
export function bouwStickerFormaten(rollen, a4) {
|
|
41
|
+
const uit = new Map();
|
|
42
|
+
const voeg = (w, h, naam) => {
|
|
43
|
+
if (!(w > 0 && h > 0))
|
|
44
|
+
return;
|
|
45
|
+
const sleutel = formaatSleutel(w, h);
|
|
46
|
+
if (!uit.has(sleutel))
|
|
47
|
+
uit.set(sleutel, { sleutel, label: `${formaatTekst(w, h)} – ${naam}`, width_mm: r1(w), height_mm: r1(h) });
|
|
48
|
+
};
|
|
49
|
+
const rolLijst = [...(rollen ?? [])].sort((a, b) => (a.volgorde ?? 0) - (b.volgorde ?? 0));
|
|
50
|
+
for (const r of rolLijst) {
|
|
51
|
+
if (r.actief === false || r.doorlopend === true || r.is_a4 === true)
|
|
52
|
+
continue;
|
|
53
|
+
const w = num(r.breedte_mm), h = num(r.hoogte_mm);
|
|
54
|
+
voeg(w, h, r.naam?.trim() || "Etiketrol");
|
|
55
|
+
}
|
|
56
|
+
for (const v of a4 ?? []) {
|
|
57
|
+
const w = num(v.breedte_mm), h = num(v.hoogte_mm);
|
|
58
|
+
const indeling = v.kolommen && v.rijen ? `A4-vel ${v.kolommen} × ${v.rijen}` : "A4-vel";
|
|
59
|
+
voeg(w, h, indeling);
|
|
60
|
+
}
|
|
61
|
+
if (uit.size === 0) {
|
|
62
|
+
return { formaten: [...VASTE_STICKERFORMATEN], bron: "vast", melding: rollen === null && a4 === null ? FORMATEN_NIET_BESCHIKBAAR : "De Layout-maker heeft geen formaten; de vaste lijst wordt gebruikt." };
|
|
63
|
+
}
|
|
64
|
+
return { formaten: [...uit.values()], bron: "layout-maker", melding: null };
|
|
65
|
+
}
|
|
66
|
+
export function zoekFormaat(lijst, widthMm, heightMm) {
|
|
67
|
+
if (widthMm == null || heightMm == null)
|
|
68
|
+
return null;
|
|
69
|
+
const s = formaatSleutel(Number(widthMm), Number(heightMm));
|
|
70
|
+
return lijst.find((f) => f.sleutel === s) ?? null;
|
|
71
|
+
}
|
|
72
|
+
export function isToegestaanFormaat(lijst, widthMm, heightMm) {
|
|
73
|
+
return zoekFormaat(lijst, widthMm, heightMm) !== null;
|
|
74
|
+
}
|
|
75
|
+
export const FORMAAT_NIET_IN_LIJST = "Kies een formaat uit de lijst.";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bij openen van het beheerblok:
|
|
1
|
+
/** Bij openen van het beheerblok: stand van de cronjob tonen (alleen lezen; het dashboard plant hem in) en limiet tonen. */
|
|
2
2
|
export declare const ensureTwinfieldQueueJob: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
|
|
3
3
|
supabase: import("../integrations/supabase/auth-middleware.js").AuthedSupabaseClient;
|
|
4
4
|
userId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twinfield-queue-admin.functions.d.ts","sourceRoot":"","sources":["../../src/lib/twinfield-queue-admin.functions.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"twinfield-queue-admin.functions.d.ts","sourceRoot":"","sources":["../../src/lib/twinfield-queue-admin.functions.ts"],"names":[],"mappings":"AAKA,4HAA4H;AAC5H,eAAO,MAAM,uBAAuB;;;;;;;;;GAUhC,CAAC;AAEL,eAAO,MAAM,sBAAsB;;;;0CAEb,OAAO;;;;GAUzB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { createServerFn } from "@tanstack/react-start";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { requireSupabaseAuth } from "../integrations/supabase/auth-middleware.js";
|
|
4
4
|
import { DEFAULT_PUSH_BATCH, PUSH_BATCH_SETTING, parsePushBatch } from "./server-routes/twinfield-run-queue.server.js";
|
|
5
|
-
/** Bij openen van het beheerblok:
|
|
5
|
+
/** Bij openen van het beheerblok: stand van de cronjob tonen (alleen lezen; het dashboard plant hem in) en limiet tonen. */
|
|
6
6
|
export const ensureTwinfieldQueueJob = createServerFn({ method: "POST" })
|
|
7
7
|
.middleware([requireSupabaseAuth])
|
|
8
8
|
.handler(async ({ context }) => {
|
|
@@ -7,6 +7,8 @@ export type VoorraadRij = {
|
|
|
7
7
|
crates_per_layer: number | null;
|
|
8
8
|
layers_per_cart: number | null;
|
|
9
9
|
sale_price: number | null;
|
|
10
|
+
/** Alle products.id's van deze samengevoegde regel, oplopend; product_id = de eerste. */
|
|
11
|
+
product_ids: string[];
|
|
10
12
|
};
|
|
11
13
|
/** Sleutel: actief Floriday-handelsartikel → trade_item_key → products.id. */
|
|
12
14
|
export declare function voorraadSleutel(p: any, geldigeFloridayIds: Set<string>): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voorraad-assortiment.d.ts","sourceRoot":"","sources":["../../src/lib/voorraad-assortiment.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"voorraad-assortiment.d.ts","sourceRoot":"","sources":["../../src/lib/voorraad-assortiment.ts"],"names":[],"mappings":"AAGA,MAAM,MA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: n(p.layers_per_cart),
|
|
44
44
|
sale_price: n(p.sale_price),
|
|
45
|
+
product_ids: s(p.id) ? [s(p.id)] : [],
|
|
45
46
|
};
|
|
46
47
|
const oud = map.get(key);
|
|
47
48
|
if (!oud) {
|
|
@@ -57,6 +58,7 @@ export function bouwVoorraadRijen(products, geldigeFloridayIds) {
|
|
|
57
58
|
crates_per_layer: oud.crates_per_layer ?? nieuw.crates_per_layer,
|
|
58
59
|
layers_per_cart: oud.layers_per_cart ?? nieuw.layers_per_cart,
|
|
59
60
|
sale_price: oud.sale_price ?? nieuw.sale_price,
|
|
61
|
+
product_ids: [...new Set([...oud.product_ids, ...nieuw.product_ids])].sort(),
|
|
60
62
|
});
|
|
61
63
|
}
|
|
62
64
|
return [...map.values()];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowselections/floriday-klanten-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.104",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -98,12 +98,28 @@
|
|
|
98
98
|
"crons": [
|
|
99
99
|
{
|
|
100
100
|
"name": "klanten-twinfield-push-queue",
|
|
101
|
-
"schedule": "
|
|
101
|
+
"schedule": "2-59/5 * * * *",
|
|
102
102
|
"kind": "http",
|
|
103
103
|
"path": "/api/public/twinfield/run-queue",
|
|
104
|
-
"auth": "twinfield_cron_auth"
|
|
104
|
+
"auth": "twinfield_cron_auth",
|
|
105
|
+
"replaces": [
|
|
106
|
+
"klanten-twinfield-push-queue"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "klanten-klantverversing",
|
|
111
|
+
"schedule": "2-59/5 * * * *",
|
|
112
|
+
"kind": "sql",
|
|
113
|
+
"sql": "SELECT public.klanten_klantverversing();",
|
|
114
|
+
"replaces": [
|
|
115
|
+
"refresh-external-customers-grouped",
|
|
116
|
+
"promote-floriday-order-customers"
|
|
117
|
+
]
|
|
105
118
|
}
|
|
106
119
|
],
|
|
120
|
+
"requires": {
|
|
121
|
+
"layout-maker": ">=1.69.49"
|
|
122
|
+
},
|
|
107
123
|
"install": {
|
|
108
124
|
"ensureDefaults": "klanten_ensure_defaults",
|
|
109
125
|
"installCheck": "klanten_install_check"
|