@flowselections/floriday-klanten-module 1.0.88 → 1.0.91
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/fs-ui/ColumnsMenu.d.ts +14 -0
- package/dist-lib/components/fs-ui/ColumnsMenu.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/ColumnsMenu.js +31 -0
- package/dist-lib/components/fs-ui/DataTable.d.ts +32 -5
- package/dist-lib/components/fs-ui/DataTable.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/DataTable.js +22 -6
- package/dist-lib/components/fs-ui/FilterChips.d.ts +10 -1
- package/dist-lib/components/fs-ui/FilterChips.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/FilterChips.js +7 -3
- package/dist-lib/components/fs-ui/FiltersPanel.d.ts +14 -0
- package/dist-lib/components/fs-ui/FiltersPanel.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/FiltersPanel.js +9 -0
- package/dist-lib/components/fs-ui/InlineAlert.d.ts +3 -4
- package/dist-lib/components/fs-ui/InlineAlert.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/InlineAlert.js +10 -16
- package/dist-lib/components/fs-ui/KpiRow.d.ts +1 -1
- package/dist-lib/components/fs-ui/KpiRow.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/KpiRow.js +2 -2
- package/dist-lib/components/fs-ui/NoticeBar.d.ts +18 -0
- package/dist-lib/components/fs-ui/NoticeBar.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/NoticeBar.js +37 -0
- package/dist-lib/components/fs-ui/PageHeader.d.ts +13 -3
- package/dist-lib/components/fs-ui/PageHeader.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/PageHeader.js +9 -3
- package/dist-lib/components/fs-ui/PillTabs.d.ts +5 -3
- package/dist-lib/components/fs-ui/PillTabs.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/PillTabs.js +26 -9
- package/dist-lib/components/fs-ui/RowMenu.d.ts +13 -0
- package/dist-lib/components/fs-ui/RowMenu.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/RowMenu.js +9 -0
- package/dist-lib/components/fs-ui/SearchInput.d.ts +2 -2
- package/dist-lib/components/fs-ui/SearchInput.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/SearchInput.js +11 -7
- package/dist-lib/components/fs-ui/Toolbar.d.ts +11 -2
- package/dist-lib/components/fs-ui/Toolbar.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/Toolbar.js +12 -3
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts +5 -2
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/UpdatedAt.js +7 -3
- package/dist-lib/components/fs-ui/index.d.ts +7 -3
- package/dist-lib/components/fs-ui/index.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/index.js +7 -3
- package/dist-lib/components/fs-ui/shortcuts.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/shortcuts.js +7 -8
- package/dist-lib/components/klanten/BackLink.js +1 -1
- package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/BewerkKlant.js +3 -2
- package/dist-lib/components/klanten/ExternalCacheBanner.d.ts.map +1 -1
- package/dist-lib/components/klanten/ExternalCacheBanner.js +2 -2
- package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/GroupedKlantDetail.js +5 -4
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
- package/dist-lib/components/klanten/ImportKlanten.js +6 -2
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +16 -4
- package/dist-lib/components/klanten/KlantDetailLayout.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetailLayout.js +5 -2
- package/dist-lib/components/klanten/KlantFormulier.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantFormulier.js +48 -40
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +103 -96
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +5 -4
- package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +2 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +3 -2
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +4 -3
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +8 -3
- package/dist-lib/integrations/supabase/types.d.ts +76 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/format-date.d.ts +2 -2
- package/dist-lib/lib/format-date.d.ts.map +1 -1
- package/dist-lib/lib/format-date.js +15 -7
- package/dist-lib/lib/labels.d.ts +36 -0
- package/dist-lib/lib/labels.d.ts.map +1 -0
- package/dist-lib/lib/labels.js +49 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TableSkeleton, InlineAlert } from "../fs-ui/index.js";
|
|
2
3
|
import { friendlyError } from "../../lib/errors.js";
|
|
3
4
|
import { useNavigate } from "@tanstack/react-router";
|
|
4
5
|
import { useEffect } from "react";
|
|
@@ -60,9 +61,9 @@ export function OvernemenTwinfieldKlant({ code, connectionId, onExistingLocal, o
|
|
|
60
61
|
onError: (e) => toast.error(friendlyError(e, "Overnemen mislukt")),
|
|
61
62
|
});
|
|
62
63
|
if (isLoading || existingId)
|
|
63
|
-
return _jsx("main", { className: "p-6", children: "
|
|
64
|
+
return _jsx("main", { className: "flex flex-col gap-4 p-4 sm:p-6", children: _jsx(TableSkeleton, { as: "div", rows: 6 }) });
|
|
64
65
|
if (error || !data?.prefill) {
|
|
65
|
-
return (_jsxs("main", { className: "p-
|
|
66
|
+
return (_jsxs("main", { className: "flex flex-col gap-4 p-4 sm:p-6", children: [!hideBackLink && _jsx(BackLink, {}), _jsx(InlineAlert, { tone: "destructive", title: "Deze klant uit de boekhouding is niet gevonden.", details: error instanceof Error ? error.message : undefined, children: "Probeer het opnieuw of ga terug naar het overzicht." })] }));
|
|
66
67
|
}
|
|
67
68
|
const p = data.prefill;
|
|
68
69
|
const defaults = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceGroupFormPage.d.ts","sourceRoot":"","sources":["../../../../src/components/klanten/pricegroups/PriceGroupFormPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceGroupFormPage.d.ts","sourceRoot":"","sources":["../../../../src/components/klanten/pricegroups/PriceGroupFormPage.tsx"],"names":[],"mappings":"AAuLA,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,+BAusB9E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { PageHeader, TableSkeleton } from "../../fs-ui/index.js";
|
|
2
3
|
import { useEffect, useMemo, useState } from "react";
|
|
3
4
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
4
5
|
import { useServerFn } from "@tanstack/react-start";
|
|
@@ -247,9 +248,9 @@ export function PriceGroupFormPage({ editingId }) {
|
|
|
247
248
|
: `${selectedCustomerKeys.length} klant${selectedCustomerKeys.length === 1 ? "" : "en"}`,
|
|
248
249
|
];
|
|
249
250
|
if (editingId && loadingExisting) {
|
|
250
|
-
return _jsx("
|
|
251
|
+
return _jsx("main", { className: "flex flex-col gap-4 p-4 sm:p-6", children: _jsx(TableSkeleton, { as: "div", rows: 6 }) });
|
|
251
252
|
}
|
|
252
|
-
return (_jsxs("main", { className: "min-h-screen
|
|
253
|
+
return (_jsxs("main", { className: "min-h-screen pb-28", children: [_jsxs("div", { className: "max-w-6xl mx-auto flex flex-col gap-4 p-4 sm:p-6", children: [_jsx(BackLink, { to: "/klanten/prijsgroepen", label: "Terug naar prijsgroepen" }), _jsx(PageHeader, { title: editingId ? "Prijsgroep bewerken" : "Nieuwe prijsgroep", info: "Stel prijsafspraken en berekening in. Klanten koppel je op het overzicht." }), _jsxs("div", { className: "grid gap-4 lg:grid-cols-[1fr_340px] items-start", children: [_jsxs("div", { className: "space-y-4 min-w-0", children: [_jsx(StepSection, { index: 0, title: STEP_TITLES[0], subtitle: summaries[0], open: openStep === 0, completed: maxReached > 0, disabled: false, onToggle: () => goToStep(0), children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { children: [_jsx(Label, { children: "Naam van de prijsgroep" }), _jsx("div", { className: "text-xs text-muted-foreground mb-1.5", children: "Alleen zichtbaar voor jou." }), _jsx(Input, { value: form.name, onChange: (e) => patch({ name: e.target.value }), placeholder: "Bijvoorbeeld: trouwe klanten" })] }), _jsxs("div", { className: "max-w-sm", children: [_jsx(Label, { children: "Valuta" }), _jsxs(Select, { value: form.currency, onValueChange: (v) => patch({ currency: v }), children: [_jsx(SelectTrigger, { children: _jsx(SelectValue, {}) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "EUR", children: "Euro" }), _jsx(SelectItem, { value: "USD", children: "Amerikaanse dollar" })] })] })] }), _jsxs("div", { children: [_jsx(Label, { children: "Prijsbepaling" }), _jsxs("div", { className: "grid sm:grid-cols-2 gap-3 mt-2", children: [_jsx(OptionCard, { selected: form.pricing_mode === "manual", onClick: () => patch({ pricing_mode: "manual" }), icon: _jsx(PencilLine, { className: "h-5 w-5" }), title: "Prijzen handmatig invoeren", description: "Geef per prijsgroep handmatig een prijs in bij het aanbieden van artikelen." }), _jsx(OptionCard, { selected: form.pricing_mode === "calculated", onClick: () => patch({ pricing_mode: "calculated" }), icon: _jsx(Calculator, { className: "h-5 w-5" }), title: "Prijzen berekenen", description: "Bereken prijzen automatisch op basis van een basisprijs met een door jou samen te stellen berekening." })] })] }), _jsxs("div", { children: [_jsx(Label, { children: "Type prijsgroep" }), _jsxs("div", { className: "grid sm:grid-cols-2 gap-3 mt-2", children: [_jsx(OptionCard, { selected: form.group_type === "general", onClick: () => patch({ group_type: "general" }), icon: _jsx(Globe2, { className: "h-5 w-5" }), title: "Algemene prijsgroep", description: "Zichtbaar voor alle klanten (alleen voor partijprijzen)." }), _jsx(OptionCard, { selected: form.group_type === "customer_specific", onClick: () => patch({ group_type: "customer_specific" }), icon: _jsx(Users, { className: "h-5 w-5" }), title: "Klantspecifieke prijsgroep", description: "Zichtbaar voor klanten die zijn ingedeeld in deze prijsgroep." })] })] }), _jsx("div", { className: "pt-2 flex justify-end", children: _jsxs(Button, { onClick: () => nextStep(0), disabled: !canProceed(0), children: ["Volgende stap ", _jsx(ArrowRight, { className: "h-4 w-4 ml-1" })] }) })] }) }), _jsx(StepSection, { index: 1, title: STEP_TITLES[1], subtitle: summaries[1], open: openStep === 1, completed: maxReached > 1, disabled: maxReached < 1, onToggle: () => goToStep(1), children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "space-y-3", children: [_jsx(RadioBanner, { selected: form.price_scope === "incl_delivery", onClick: () => patch({ price_scope: "incl_delivery" }), title: "Prijzen inclusief levering en transport" }), form.price_scope === "incl_delivery" && (_jsx(BulletList, { items: [
|
|
253
254
|
"Prijzen zichtbaar voor klanten die direct inkopen op Floriday",
|
|
254
255
|
"Prijzen zijn inclusief levering en transport, ongeacht het bestelvolume",
|
|
255
256
|
] })), _jsx(RadioBanner, { selected: form.price_scope === "excl_delivery", onClick: () => patch({ price_scope: "excl_delivery" }), title: "Prijzen exclusief levering en transport" }), form.price_scope === "excl_delivery" && (_jsx(BulletList, { items: [
|
|
@@ -267,7 +268,7 @@ export function PriceGroupFormPage({ editingId }) {
|
|
|
267
268
|
.filter(Boolean).join(" - ")
|
|
268
269
|
: "Nog niet opgehaald uit Floriday" })] })] }), _jsxs("div", { children: [_jsx(Label, { className: "text-xs", children: "Basisprijs" }), _jsxs("div", { className: "relative mt-1.5", children: [_jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground pointer-events-none", children: "\u20AC" }), _jsx(Input, { type: "number", step: "0.01", value: basePrice, onChange: (e) => setBasePrice(Number(e.target.value)), className: "pl-7" })] })] }), _jsxs("div", { children: [_jsx("div", { className: "flex justify-end text-xs text-muted-foreground mb-1", children: "Prijzen" }), _jsxs("div", { className: "space-y-1.5 text-sm tabular-nums border-t pt-2", children: [_jsxs("div", { className: "flex justify-between", children: [_jsx("span", { className: "text-muted-foreground", children: "Basisprijs" }), _jsx("span", { children: formatEur(basePrice) })] }), Math.abs(preview.discountAmount) > 0 && (_jsxs("div", { className: "flex justify-between", children: [_jsxs("span", { className: "text-muted-foreground", children: [form.calc_type === "surcharge" ? "Opslag" : "Korting", " ", form.calc_value_type === "percentage"
|
|
269
270
|
? `${(form.calc_value ?? 0).toLocaleString("nl-NL")}%`
|
|
270
|
-
: formatEur(form.calc_value ?? 0, { decimals: 3 })] }), _jsxs("span", { children: [preview.discountAmount < 0 ? "− " : "", formatEur(Math.abs(preview.discountAmount))] })] })), preview.handlingPerUnit > 0 && (_jsxs("div", { className: "flex justify-between items-baseline gap-2", children: [_jsxs("span", { className: "text-muted-foreground truncate", children: ["Afhandelingskosten (optioneel)", " ", _jsxs("span", { className: "italic text-muted-foreground/80", children: [formatEur(form.handling_fee ?? 0), handlingSuffix] })] }), _jsx("span", { children: formatEur(preview.handlingPerUnit, { decimals: 3 }) })] })), _jsxs("div", { className: "flex justify-between border-t pt-1.5", children: [_jsx("span", { className: form.rounding === "none" ? "font-medium" : "text-muted-foreground", children: "Berekende prijs" }), _jsx("span", { className: form.rounding === "none" ? "font-medium" : "", children: formatEur(preview.adjusted, { decimals: 3 }) })] }), form.rounding !== "none" && (_jsxs("div", { className: "flex justify-between font-medium border-t pt-1.5", children: [_jsx("span", { children: "Afgeronde prijs" }), _jsx("span", { children: formatEur(preview.rounded) })] }))] })] })] }) }), _jsx(ProductPickerDialog, { open: pickerOpen, onOpenChange: setPickerOpen, items: items, onSelect: (i) => setSelectedItemId(i.id) })] }))] })] }), _jsx("div", { className: "fixed bottom-0 left-0 right-0 bg-background/95 backdrop-blur border-t z-10", children: _jsxs("div", { className: "max-w-6xl mx-auto px-6 py-3 flex items-center justify-between", children: [_jsx(Button, { variant: "ghost", onClick: goBack, children: "Annuleren" }), _jsx(Button, { onClick: () => saveMut.mutate(), disabled: saveMut.isPending ||
|
|
271
|
+
: formatEur(form.calc_value ?? 0, { decimals: 3 })] }), _jsxs("span", { children: [preview.discountAmount < 0 ? "− " : "", formatEur(Math.abs(preview.discountAmount))] })] })), preview.handlingPerUnit > 0 && (_jsxs("div", { className: "flex justify-between items-baseline gap-2", children: [_jsxs("span", { className: "text-muted-foreground truncate", children: ["Afhandelingskosten (optioneel)", " ", _jsxs("span", { className: "italic text-muted-foreground/80", children: [formatEur(form.handling_fee ?? 0), handlingSuffix] })] }), _jsx("span", { children: formatEur(preview.handlingPerUnit, { decimals: 3 }) })] })), _jsxs("div", { className: "flex justify-between border-t pt-1.5", children: [_jsx("span", { className: form.rounding === "none" ? "font-medium" : "text-muted-foreground", children: "Berekende prijs" }), _jsx("span", { className: form.rounding === "none" ? "font-medium" : "", children: formatEur(preview.adjusted, { decimals: 3 }) })] }), form.rounding !== "none" && (_jsxs("div", { className: "flex justify-between font-medium border-t pt-1.5", children: [_jsx("span", { children: "Afgeronde prijs" }), _jsx("span", { children: formatEur(preview.rounded) })] }))] })] })] }) }), _jsx(ProductPickerDialog, { open: pickerOpen, onOpenChange: setPickerOpen, items: items, onSelect: (i) => setSelectedItemId(i.id) })] }))] })] }), _jsx("div", { className: "fixed bottom-0 left-0 right-0 bg-background/95 backdrop-blur border-t z-10", children: _jsxs("div", { className: "max-w-6xl mx-auto px-4 sm:px-6 py-3 flex items-center justify-between", children: [_jsx(Button, { variant: "ghost", onClick: goBack, children: "Annuleren" }), _jsx(Button, { onClick: () => saveMut.mutate(), disabled: saveMut.isPending ||
|
|
271
272
|
!form.name.trim() ||
|
|
272
273
|
(form.group_type === "customer_specific" && selectedCustomerKeys.length === 0), children: saveMut.isPending ? "Opslaan…" : "Opslaan" })] }) })] }));
|
|
273
274
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceGroupsPage.d.ts","sourceRoot":"","sources":["../../../../src/components/klanten/pricegroups/PriceGroupsPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PriceGroupsPage.d.ts","sourceRoot":"","sources":["../../../../src/components/klanten/pricegroups/PriceGroupsPage.tsx"],"names":[],"mappings":"AA4HA,wBAAgB,eAAe,gCA6V9B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { PageHeader, PillTabs, SearchInput, MobilePrimaryAction } from "../../fs-ui/index.js";
|
|
2
3
|
import { useMemo, useState } from "react";
|
|
3
4
|
import { formatDateTime } from "../../../lib/format-date.js";
|
|
4
5
|
import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query";
|
|
5
6
|
import { useServerFn } from "@tanstack/react-start";
|
|
6
|
-
import { Button,
|
|
7
|
+
import { Button, Card, CardContent, Badge, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, DropdownMenuSeparator, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, } from "@flowselections/core";
|
|
7
8
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
8
9
|
import { formatEur } from "../../../lib/format-currency.js";
|
|
9
|
-
import { Plus,
|
|
10
|
+
import { Plus, MoreVertical, GripVertical, EyeOff, Eye, Pencil, Users, Copy, Trash2, Tag, ChevronLeft, ChevronRight, Download } from "lucide-react";
|
|
10
11
|
import { DndContext, closestCenter, KeyboardSensor, PointerSensor, useSensor, useSensors, } from "@dnd-kit/core";
|
|
11
12
|
import { SortableContext, sortableKeyboardCoordinates, verticalListSortingStrategy, useSortable, arrayMove, } from "@dnd-kit/sortable";
|
|
12
13
|
import { CSS } from "@dnd-kit/utilities";
|
|
@@ -147,7 +148,11 @@ export function PriceGroupsPage() {
|
|
|
147
148
|
const startIdx = total === 0 ? 0 : (currentPage - 1) * pageSize;
|
|
148
149
|
const endIdx = Math.min(startIdx + pageSize, total);
|
|
149
150
|
const pageRows = filtered.slice(startIdx, endIdx);
|
|
150
|
-
return (_jsxs("main", { className: "
|
|
151
|
+
return (_jsxs("main", { className: "flex w-full min-w-0 flex-col gap-4 overflow-x-clip p-4 pb-[calc(7rem+env(safe-area-inset-bottom))] sm:p-6 sm:pb-6", children: [_jsx(PageHeader, { title: "Prijsgroepen", info: "Beheer prijsafspraken en wijs klanten toe aan een prijsgroep.", actions: _jsxs(_Fragment, { children: [_jsxs(Button, { variant: "outline", size: "sm", className: "h-10 sm:h-9", "aria-label": "Importeren uit Floriday", onClick: () => previewMut.mutate(), disabled: previewMut.isPending, children: [_jsx(Download, { className: "h-4 w-4 sm:mr-2" }), _jsx("span", { className: "hidden sm:inline", children: previewMut.isPending ? "Ophalen…" : "Importeren uit Floriday" })] }), _jsx(Button, { asChild: true, size: "sm", className: "hidden sm:inline-flex", children: _jsxs(Link, { to: "/klanten/prijsgroepen/nieuw", children: [_jsx(Plus, { className: "h-4 w-4 mr-2" }), "Prijsgroep toevoegen"] }) })] }) }), _jsxs(MobilePrimaryAction, { onClick: () => navigate({ to: "/klanten/prijsgroepen/nieuw" }), children: [_jsx(Plus, { className: "h-4 w-4" }), " Prijsgroep toevoegen"] }), _jsxs(Card, { children: [_jsx("div", { className: "border-b px-4 py-3", children: _jsx(PillTabs, { label: "Prijsgroepen", value: statusFilter, onChange: (v) => { setStatusFilter(v); resetPage(); }, items: [
|
|
152
|
+
{ value: "all", label: "Alle", count: groups.length },
|
|
153
|
+
{ value: "active", label: "Actief", count: active },
|
|
154
|
+
{ value: "inactive", label: "Inactief", count: inactive },
|
|
155
|
+
] }) }), _jsx("div", { className: "flex items-center gap-2 flex-wrap p-4 border-b", children: _jsx("div", { className: "min-w-0 flex-1 sm:flex-none", children: _jsx(SearchInput, { label: "Zoek prijsgroepen", placeholder: "Zoek op naam", value: search, onChange: (v) => { setSearch(v); resetPage(); }, onClear: () => { setSearch(""); resetPage(); } }) }) }), _jsx(CardContent, { className: "p-0", children: _jsx(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragEnd: handleDragEnd, children: _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { className: "w-[36px]" }), _jsx(TableHead, { children: "Naam" }), _jsx(TableHead, { children: "Type" }), _jsx(TableHead, { children: "Klanten" }), _jsx(TableHead, { children: "Diensten" }), _jsx(TableHead, { children: "Afname-eenheid" }), _jsx(TableHead, { children: "Valuta" }), _jsx(TableHead, { children: "Berekening" }), _jsx(TableHead, { className: "w-[52px]" })] }) }), _jsx(TableBody, { children: isLoading ? (_jsx(TableRow, { children: _jsx(TableCell, { colSpan: 9, className: "text-center py-8 text-muted-foreground text-sm", children: "Laden\u2026" }) })) : pageRows.length === 0 ? (_jsx(TableRow, { children: _jsx(TableCell, { colSpan: 9, children: _jsxs("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [_jsx("div", { className: "h-12 w-12 rounded-full bg-muted flex items-center justify-center mb-3", children: _jsx(Tag, { className: "h-5 w-5 text-muted-foreground" }) }), _jsx("div", { className: "font-medium", children: "Geen prijsgroepen gevonden" }), _jsx("div", { className: "text-sm text-muted-foreground mt-1", children: groups.length === 0
|
|
151
156
|
? "Voeg je eerste prijsgroep toe om te beginnen."
|
|
152
157
|
: "Pas je filters aan of voeg een nieuwe prijsgroep toe." }), _jsx(Button, { asChild: true, className: "mt-4", children: _jsxs(Link, { to: "/klanten/prijsgroepen/nieuw", children: [_jsx(Plus, { className: "h-4 w-4 mr-2" }), "Prijsgroep toevoegen"] }) })] }) }) })) : (_jsx(SortableContext, { items: pageRows.map((g) => g.id), strategy: verticalListSortingStrategy, children: pageRows.map((g) => (_jsx(SortableRow, { g: g, onEdit: () => navigate({ to: "/klanten/prijsgroepen/$id", params: { id: g.id } }), onMembers: () => setMembersFor(g.id), onDelete: () => {
|
|
153
158
|
setDeleteTarget(g);
|
|
@@ -33210,6 +33210,25 @@ export type Database = {
|
|
|
33210
33210
|
};
|
|
33211
33211
|
Returns: undefined;
|
|
33212
33212
|
};
|
|
33213
|
+
aanbiedingsmail_campagnes_lijst: {
|
|
33214
|
+
Args: {
|
|
33215
|
+
p_limit?: number;
|
|
33216
|
+
p_offset?: number;
|
|
33217
|
+
p_status?: string;
|
|
33218
|
+
p_tot?: string;
|
|
33219
|
+
p_van?: string;
|
|
33220
|
+
p_zoek?: string;
|
|
33221
|
+
};
|
|
33222
|
+
Returns: Json;
|
|
33223
|
+
};
|
|
33224
|
+
aanbiedingsmail_campagnes_tellers: {
|
|
33225
|
+
Args: {
|
|
33226
|
+
p_tot?: string;
|
|
33227
|
+
p_van?: string;
|
|
33228
|
+
p_zoek?: string;
|
|
33229
|
+
};
|
|
33230
|
+
Returns: Json;
|
|
33231
|
+
};
|
|
33213
33232
|
aanbiedingsmail_create_order: {
|
|
33214
33233
|
Args: {
|
|
33215
33234
|
p_offer_order_id: string;
|
|
@@ -33246,6 +33265,15 @@ export type Database = {
|
|
|
33246
33265
|
};
|
|
33247
33266
|
Returns: Json;
|
|
33248
33267
|
};
|
|
33268
|
+
aanbiedingsmail_ontvangers_lijst: {
|
|
33269
|
+
Args: {
|
|
33270
|
+
p_campaign_id: string;
|
|
33271
|
+
p_limit?: number;
|
|
33272
|
+
p_offset?: number;
|
|
33273
|
+
p_zoek?: string;
|
|
33274
|
+
};
|
|
33275
|
+
Returns: Json;
|
|
33276
|
+
};
|
|
33249
33277
|
aanbiedingsmail_place_offer_order: {
|
|
33250
33278
|
Args: {
|
|
33251
33279
|
p_code: string;
|
|
@@ -33265,6 +33293,12 @@ export type Database = {
|
|
|
33265
33293
|
};
|
|
33266
33294
|
Returns: string;
|
|
33267
33295
|
};
|
|
33296
|
+
aanbiedingsmail_status_sleutel: {
|
|
33297
|
+
Args: {
|
|
33298
|
+
p_status: string;
|
|
33299
|
+
};
|
|
33300
|
+
Returns: string;
|
|
33301
|
+
};
|
|
33268
33302
|
aanbiedingsmail_stock_key: {
|
|
33269
33303
|
Args: {
|
|
33270
33304
|
p_ref: string;
|
|
@@ -35882,6 +35916,19 @@ export type Database = {
|
|
|
35882
35916
|
};
|
|
35883
35917
|
Returns: Json;
|
|
35884
35918
|
};
|
|
35919
|
+
inkoop_artikelen_page: {
|
|
35920
|
+
Args: {
|
|
35921
|
+
_asc?: boolean;
|
|
35922
|
+
_limit?: number;
|
|
35923
|
+
_location?: string;
|
|
35924
|
+
_offset?: number;
|
|
35925
|
+
_search?: string;
|
|
35926
|
+
_sort?: string;
|
|
35927
|
+
_tab?: string;
|
|
35928
|
+
_unit?: string;
|
|
35929
|
+
};
|
|
35930
|
+
Returns: Json;
|
|
35931
|
+
};
|
|
35885
35932
|
inkoop_cancel_line: {
|
|
35886
35933
|
Args: {
|
|
35887
35934
|
_item_id: string;
|
|
@@ -35931,6 +35978,18 @@ export type Database = {
|
|
|
35931
35978
|
Args: never;
|
|
35932
35979
|
Returns: string;
|
|
35933
35980
|
};
|
|
35981
|
+
inkoop_orders_page: {
|
|
35982
|
+
Args: {
|
|
35983
|
+
_delivery_from?: string;
|
|
35984
|
+
_delivery_to?: string;
|
|
35985
|
+
_limit?: number;
|
|
35986
|
+
_offset?: number;
|
|
35987
|
+
_search?: string;
|
|
35988
|
+
_supplier_id?: string;
|
|
35989
|
+
_tab?: string;
|
|
35990
|
+
};
|
|
35991
|
+
Returns: Json;
|
|
35992
|
+
};
|
|
35934
35993
|
inkoop_process_request: {
|
|
35935
35994
|
Args: {
|
|
35936
35995
|
_request_id: string;
|
|
@@ -44758,6 +44817,12 @@ export type Database = {
|
|
|
44758
44817
|
};
|
|
44759
44818
|
Returns: Json;
|
|
44760
44819
|
};
|
|
44820
|
+
scan_kar_scans_lezen: {
|
|
44821
|
+
Args: {
|
|
44822
|
+
p_kar_id: string;
|
|
44823
|
+
};
|
|
44824
|
+
Returns: Json;
|
|
44825
|
+
};
|
|
44761
44826
|
scan_kar_voortgang: {
|
|
44762
44827
|
Args: {
|
|
44763
44828
|
p_cart_id: string;
|
|
@@ -44774,6 +44839,17 @@ export type Database = {
|
|
|
44774
44839
|
};
|
|
44775
44840
|
Returns: Json;
|
|
44776
44841
|
};
|
|
44842
|
+
scan_karren_overzicht: {
|
|
44843
|
+
Args: {
|
|
44844
|
+
p_limit?: number;
|
|
44845
|
+
p_offset?: number;
|
|
44846
|
+
p_status?: string;
|
|
44847
|
+
p_tot?: string;
|
|
44848
|
+
p_van?: string;
|
|
44849
|
+
p_zoek?: string;
|
|
44850
|
+
};
|
|
44851
|
+
Returns: Json;
|
|
44852
|
+
};
|
|
44777
44853
|
scan_koppelcode_maken: {
|
|
44778
44854
|
Args: {
|
|
44779
44855
|
p_scanner_id: string;
|