@flowselections/floriday-verkoop-module 1.0.174 → 1.0.175
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/AnalyticsCards.d.ts +1 -1
- package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts +1 -1
- package/dist-lib/components/verkoop/CartAssignmentWizard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CartLayersDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/CartLayersDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/ConfirmDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/ConfirmDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts +1 -1
- package/dist-lib/components/verkoop/CreateOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/DiagnoseConnectionDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts +1 -1
- package/dist-lib/components/verkoop/EditLocalOrderDialog.d.ts.map +1 -1
- package/dist-lib/components/verkoop/EngineActieButtons.d.ts +1 -1
- package/dist-lib/components/verkoop/EngineActieButtons.d.ts.map +1 -1
- package/dist-lib/components/verkoop/EngineBufferCard.d.ts +1 -1
- package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/FloridayStageLine.d.ts +2 -2
- package/dist-lib/components/verkoop/FloridayStageLine.d.ts.map +1 -1
- package/dist-lib/components/verkoop/FloridaySyncSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/FloridaySyncSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/InvoiceSignoffSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/InvoiceSignoffSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/KarSlotMelding.d.ts +1 -1
- package/dist-lib/components/verkoop/KarSlotMelding.d.ts.map +1 -1
- package/dist-lib/components/verkoop/KarTekeningSection.d.ts +1 -1
- package/dist-lib/components/verkoop/KarTekeningSection.d.ts.map +1 -1
- package/dist-lib/components/verkoop/KlokAanvoerRow.d.ts +11 -0
- package/dist-lib/components/verkoop/KlokAanvoerRow.d.ts.map +1 -0
- package/dist-lib/components/verkoop/KlokAanvoerRow.js +31 -0
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderCarrierPicker.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderControlStatusCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderInvoiceCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderInvoiceCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts +2 -2
- package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderLinePackingCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderPickupMomentPicker.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts +1 -1
- package/dist-lib/components/verkoop/OrderShipmentsCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderTransportCard.d.ts +8 -7
- package/dist-lib/components/verkoop/OrderTransportCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/OrderTransportCard.js +1 -1
- package/dist-lib/components/verkoop/PickupLocationsSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/PickupLocationsSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts +1 -1
- package/dist-lib/components/verkoop/PlanCoverageBadge.d.ts.map +1 -1
- package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts +1 -1
- package/dist-lib/components/verkoop/ProductDimensionsSettings.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SafeSvg.d.ts +1 -1
- package/dist-lib/components/verkoop/SafeSvg.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailPage.js +13 -13
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrderDetailView.js +29 -11
- package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts +2 -2
- package/dist-lib/components/verkoop/SalesOrdersFilterPanel.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrdersFilters.d.ts.map +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +1 -1
- package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
- package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts +1 -1
- package/dist-lib/components/verkoop/StockConsumptionAlertsBanner.d.ts.map +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts +1 -1
- package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/WeekCalendar.d.ts +1 -1
- package/dist-lib/components/verkoop/WeekCalendar.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectieBesluitKnoppen.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectieBesluitKnoppen.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectieChip.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectieChip.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectiesBalk.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectiesBalk.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectiesPage.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/CorrectiesPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/OrderCorrectiesCard.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/OrderCorrectiesCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/correcties/OudeOrderCard.d.ts +1 -1
- package/dist-lib/components/verkoop/correcties/OudeOrderCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/KlokNotice.d.ts +1 -1
- package/dist-lib/components/verkoop/klok/KlokNotice.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/KlokOrderPage.d.ts +1 -1
- package/dist-lib/components/verkoop/klok/KlokOrderPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/KlokOrderPage.js +51 -11
- package/dist-lib/components/verkoop/klok/KlokOrdersList.d.ts +3 -3
- package/dist-lib/components/verkoop/klok/KlokOrdersList.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/KlokOrdersList.js +1 -1
- package/dist-lib/components/verkoop/klok/KlokPage.d.ts +1 -1
- package/dist-lib/components/verkoop/klok/KlokPage.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/KlokPage.js +10 -1
- package/dist-lib/components/verkoop/klok/KlokStatusBadge.d.ts +1 -1
- package/dist-lib/components/verkoop/klok/KlokStatusBadge.d.ts.map +1 -1
- package/dist-lib/components/verkoop/klok/useKlok.d.ts +2 -2
- package/dist-lib/components/verkoop/klok/useKlok.d.ts.map +1 -1
- package/dist-lib/components/verkoop/regel/OrderLineExtrasCard.d.ts +1 -1
- package/dist-lib/components/verkoop/regel/OrderLineExtrasCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/regel/RegelGegevensVelden.d.ts +1 -1
- package/dist-lib/components/verkoop/regel/RegelGegevensVelden.d.ts.map +1 -1
- package/dist-lib/components/verkoop/regel/StickerKeuzeRegels.d.ts +1 -1
- package/dist-lib/components/verkoop/regel/StickerKeuzeRegels.d.ts.map +1 -1
- package/dist-lib/components/verkoop/tijdlijn/GewijzigdNaPrintCard.d.ts +1 -1
- package/dist-lib/components/verkoop/tijdlijn/GewijzigdNaPrintCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/tijdlijn/OrderTijdlijnCard.d.ts +1 -1
- package/dist-lib/components/verkoop/tijdlijn/OrderTijdlijnCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/tijdlijn/useOrderTijdlijn.d.ts +2 -2
- package/dist-lib/components/verkoop/tijdlijn/useOrderTijdlijn.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/ArticlesHover.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/ArticlesHover.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/CustomerName.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/CustomerName.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/EmptyState.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/EmptyState.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/FilterChip.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/FilterChip.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/HoverTip.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/HoverTip.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/InfoCard.d.ts +3 -3
- package/dist-lib/components/verkoop/v3/InfoCard.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/KpiTile.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/KpiTile.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/NavigationTooltip.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/NavigationTooltip.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/NoticeBar.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/NoticeBar.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/OrderProgress.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/OrderProgress.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/OrderProgress.js +6 -0
- package/dist-lib/components/verkoop/v3/OrderStepper.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/OrderStepper.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/OrderStepper.js +7 -3
- package/dist-lib/components/verkoop/v3/RowMenu.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/RowMenu.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/ShortcutHelp.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/ShortcutHelp.d.ts.map +1 -1
- package/dist-lib/components/verkoop/v3/SourceIcon.d.ts +1 -1
- package/dist-lib/components/verkoop/v3/SourceIcon.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.js +1 -1
- package/dist-lib/integrations/supabase/client.server.js +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1315 -3
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.server.d.ts.map +1 -1
- package/dist-lib/lib/floriday-mirror.server.js +31 -0
- package/dist-lib/lib/klok-aanvoer.server.d.ts +18 -0
- package/dist-lib/lib/klok-aanvoer.server.d.ts.map +1 -0
- package/dist-lib/lib/klok-aanvoer.server.js +42 -0
- package/dist-lib/lib/klok-floriday.d.ts +93 -0
- package/dist-lib/lib/klok-floriday.d.ts.map +1 -0
- package/dist-lib/lib/klok-floriday.js +212 -0
- package/dist-lib/lib/klok-floriday.server.d.ts +17 -0
- package/dist-lib/lib/klok-floriday.server.d.ts.map +1 -0
- package/dist-lib/lib/klok-floriday.server.js +349 -0
- package/dist-lib/lib/klok-form.d.ts +6 -0
- package/dist-lib/lib/klok-form.d.ts.map +1 -1
- package/dist-lib/lib/klok-form.js +10 -0
- package/dist-lib/lib/klok-payload.d.ts +0 -1
- package/dist-lib/lib/klok-payload.d.ts.map +1 -1
- package/dist-lib/lib/klok-payload.js +2 -2
- package/dist-lib/lib/klok-sales.server.d.ts.map +1 -1
- package/dist-lib/lib/klok-sales.server.js +11 -17
- package/dist-lib/lib/klok.functions.d.ts +40 -1
- package/dist-lib/lib/klok.functions.d.ts.map +1 -1
- package/dist-lib/lib/klok.functions.js +111 -10
- package/dist-lib/lib/klok.server.d.ts +38 -0
- package/dist-lib/lib/klok.server.d.ts.map +1 -1
- package/dist-lib/lib/klok.server.js +82 -62
- package/dist-lib/lib/klokverkoop.d.ts +32 -0
- package/dist-lib/lib/klokverkoop.d.ts.map +1 -0
- package/dist-lib/lib/klokverkoop.js +86 -0
- package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-carrier.functions.js +9 -0
- package/dist-lib/lib/order-cart-count.server.d.ts +8 -0
- package/dist-lib/lib/order-cart-count.server.d.ts.map +1 -0
- package/dist-lib/lib/order-cart-count.server.js +69 -0
- package/dist-lib/lib/order-progress.d.ts +9 -0
- package/dist-lib/lib/order-progress.d.ts.map +1 -1
- package/dist-lib/lib/order-progress.js +27 -4
- package/dist-lib/lib/order-status.d.ts +7 -2
- package/dist-lib/lib/order-status.d.ts.map +1 -1
- package/dist-lib/lib/order-status.js +8 -2
- package/dist-lib/lib/order-transport.functions.d.ts +1 -0
- package/dist-lib/lib/order-transport.functions.d.ts.map +1 -1
- package/dist-lib/lib/order-transport.server.d.ts +1 -0
- package/dist-lib/lib/order-transport.server.d.ts.map +1 -1
- package/dist-lib/lib/order-transport.server.js +13 -0
- package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-list.server.js +34 -9
- package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
- package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
- package/dist-lib/lib/salesorders-mapping.js +1 -1
- package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
- package/dist-lib/lib/salesorders.functions.js +14 -3
- package/dist-lib/lib/tradeitems.functions.d.ts +1117 -12
- package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
- package/dist-lib/lib/useBufferCarts.d.ts +2 -2
- package/dist-lib/lib/useBufferCarts.d.ts.map +1 -1
- package/dist-lib/lib/useBufferEvents.d.ts +2 -2
- package/dist-lib/lib/useBufferEvents.d.ts.map +1 -1
- package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts +2 -2
- package/dist-lib/lib/useLocalSalesOrderDetailQuery.d.ts.map +1 -1
- package/dist-lib/lib/usePickupMoment.d.ts +2 -2
- package/dist-lib/lib/usePickupMoment.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts +1 -1
- package/dist-lib/lib/useSalesOrderDetailQuery.d.ts.map +1 -1
- package/dist-lib/lib/useSalesOrdersQuery.d.ts +1 -1
- package/package.json +1 -1
- package/schema/verkoop.sql +834 -0
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts +0 -9
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.d.ts.map +0 -1
- package/dist-lib/components/floriday/FlorydaySyncHealthBanner.js +0 -26
- package/dist-lib/components/karindeling/AfmetingenTab.d.ts +0 -6
- package/dist-lib/components/karindeling/AfmetingenTab.d.ts.map +0 -1
- package/dist-lib/components/karindeling/AfmetingenTab.js +0 -128
- package/dist-lib/components/karindeling/KarindelingPage.d.ts +0 -2
- package/dist-lib/components/karindeling/KarindelingPage.d.ts.map +0 -1
- package/dist-lib/components/karindeling/KarindelingPage.js +0 -102
- package/dist-lib/components/ui/dropdown-menu.d.ts +0 -9
- package/dist-lib/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist-lib/components/ui/dropdown-menu.js +0 -14
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts +0 -4
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.d.ts.map +0 -1
- package/dist-lib/components/verkoop/AutoFulfillmentStatusCard.js +0 -95
- package/dist-lib/components/verkoop/CreateOrderDialog.d.ts +0 -5
- package/dist-lib/components/verkoop/CreateOrderDialog.d.ts.map +0 -1
- package/dist-lib/components/verkoop/CreateOrderDialog.js +0 -33
- package/dist-lib/lib/cron/mirror-floriday-orders.d.ts +0 -4
- package/dist-lib/lib/cron/mirror-floriday-orders.d.ts.map +0 -1
- package/dist-lib/lib/cron/mirror-floriday-orders.js +0 -23
- package/dist-lib/lib/cron/push-order-statuses.d.ts +0 -4
- package/dist-lib/lib/cron/push-order-statuses.d.ts.map +0 -1
- package/dist-lib/lib/cron/push-order-statuses.js +0 -23
- package/dist-lib/lib/floriday/floriday.server.d.ts +0 -14
- package/dist-lib/lib/floriday/floriday.server.d.ts.map +0 -1
- package/dist-lib/lib/floriday/floriday.server.js +0 -92
- package/dist-lib/lib/floriday/sales-orders.functions.d.ts +0 -4736
- package/dist-lib/lib/floriday/sales-orders.functions.d.ts.map +0 -1
- package/dist-lib/lib/floriday/sales-orders.functions.js +0 -193
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +0 -77581
- package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +0 -1
- package/dist-lib/lib/floriday-auto-fulfillment.functions.js +0 -65
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts +0 -21
- package/dist-lib/lib/floriday-auto-fulfillment.server.d.ts.map +0 -1
- package/dist-lib/lib/floriday-auto-fulfillment.server.js +0 -352
- package/dist-lib/lib/floriday-status-sync.server.d.ts +0 -14
- package/dist-lib/lib/floriday-status-sync.server.d.ts.map +0 -1
- package/dist-lib/lib/floriday-status-sync.server.js +0 -130
|
@@ -5,10 +5,11 @@ import { useServerFn } from "@tanstack/react-start";
|
|
|
5
5
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Input, Skeleton, toast, } from "@flowselections/core";
|
|
7
7
|
import { ArrowLeft, ChevronDown, Eye, Loader2, Package, Plus, Repeat, RotateCcw, Save, Send, Trash2, X } from "lucide-react";
|
|
8
|
-
import { listProductsForCreateOrder } from "../../../lib/create-order.functions.js";
|
|
9
|
-
import { deleteKlokOrder, getKlokArtikelen, getKlokLijsten, getKlokOrder, listKlokSjablonen, repeatKlokOrder, resendKlokOrder, saveKlokConcept, saveKlokSjabloon, sendKlokOrder, refreshKlokStatus, retryKlokAnnuleren, } from "../../../lib/klok.functions.js";
|
|
8
|
+
import { listCarriersForCreateOrder, listProductsForCreateOrder } from "../../../lib/create-order.functions.js";
|
|
9
|
+
import { deleteKlokOrder, getKlokArtikelen, getKlokLijsten, getKlokOrder, listKlokSjablonen, repeatKlokOrder, resendKlokOrder, saveKlokConcept, saveKlokSjabloon, sendKlokOrder, refreshKlokStatus, retryKlokAnnuleren, setKlokVervoerder, } from "../../../lib/klok.functions.js";
|
|
10
|
+
import { KLOK_FLORIDAY_ALLEEN_LEZEN_TEXT, KLOK_VERVOER_ONZEKER_TEXT } from "../../../lib/klok-floriday.js";
|
|
10
11
|
import { klokFoutLijst, klokOntbreekt, klokOntbreektVelden, LEGE_KOP, neemPrijsOver, regelMetArtikel, regelNaArtikelwissel } from "../../../lib/klok-form.js";
|
|
11
|
-
import { KLOK_LIJST_LEEG_TEXT, KEURCODE_GROEPEN, keurcodeLabel, klokAlleenLezen, klokAnnulerenOpenstaand, klokKanVerwijderen, klokTellers, tellersTekst, volgendeVeildag, klokLijstWeergave, klokLocatieKnoppen, prijsTekst, klokRegelKwaliteitFout, klokLijstenMislukt, KLOK_LIJST_FOUT_TEXT, } from "../../../lib/klok-labels.js";
|
|
12
|
+
import { KLOK_LIJST_LEEG_TEXT, KEURCODE_GROEPEN, keurcodeLabel, klokAlleenLezen, klokAnnulerenOpenstaand, klokKanVerwijderen, klokTellers, tellersTekst, volgendeVeildag, klokLijstWeergave, klokLocatieKnoppen, prijsTekst, klokRegelKwaliteitFout, klokLijstenMislukt, KLOK_LIJST_FOUT_TEXT, TRADE_INSTRUMENT_LABEL, } from "../../../lib/klok-labels.js";
|
|
12
13
|
import { fmtNL } from "../../../lib/nl-datetime.js";
|
|
13
14
|
import { amsterdamYmd, ymdString } from "../../../lib/period-range.js";
|
|
14
15
|
import { SearchableSelect } from "../SearchableSelect.js";
|
|
@@ -33,11 +34,6 @@ function legeRegel() {
|
|
|
33
34
|
prijs_bevestigd: true, kwaliteit: null, keurcodes: [], veil_opmerking: null, aflever_opmerking: null,
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
const VERVOER = [
|
|
37
|
-
{ id: "geen", label: "Geen" },
|
|
38
|
-
{ id: "eigen", label: "Eigen" },
|
|
39
|
-
{ id: "transporteur", label: "Transporteur" },
|
|
40
|
-
];
|
|
41
37
|
export function KlokOrderPage() {
|
|
42
38
|
const params = useParams({ strict: false });
|
|
43
39
|
const klokId = params.klokId && params.klokId !== "nieuw" ? params.klokId : null;
|
|
@@ -58,6 +54,12 @@ export function KlokOrderPage() {
|
|
|
58
54
|
const doRepeat = useServerFn(repeatKlokOrder);
|
|
59
55
|
const doSjabloon = useServerFn(saveKlokSjabloon);
|
|
60
56
|
const doRefresh = useServerFn(refreshKlokStatus);
|
|
57
|
+
const fetchCarriers = useServerFn(listCarriersForCreateOrder);
|
|
58
|
+
const doVervoerder = useServerFn(setKlokVervoerder);
|
|
59
|
+
const carriersQ = useQuery({ queryKey: ["co-carriers"], queryFn: () => fetchCarriers(), staleTime: 5 * 60000 });
|
|
60
|
+
if (carriersQ.isError)
|
|
61
|
+
console.error("[klok] vervoerders laden mislukt:", carriersQ.error);
|
|
62
|
+
const [vervoerBezig, setVervoerBezig] = useState(false);
|
|
61
63
|
const lijstenQ = useQuery({
|
|
62
64
|
queryKey: ["klok-lijsten"],
|
|
63
65
|
queryFn: async () => {
|
|
@@ -105,8 +107,15 @@ export function KlokOrderPage() {
|
|
|
105
107
|
const row = orderQ.data?.order ?? null;
|
|
106
108
|
const resultaten = orderQ.data?.resultaten ?? [];
|
|
107
109
|
const status = row?.status ?? "concept";
|
|
110
|
+
// Veilbrief uit Floriday: alleen lezen (wijzigen/verwijderen in Floriday), behalve de vervoerder.
|
|
111
|
+
const uitFloriday = row?.herkomst === "floriday";
|
|
108
112
|
// Verstuurd/bij de veiling of verwijderd: alles alleen-lezen (ook kwaliteit en keurcodes).
|
|
109
|
-
const alleenLezen = !!row && klokAlleenLezen(status, bewerken);
|
|
113
|
+
const alleenLezen = !!row && (uitFloriday || klokAlleenLezen(status, bewerken));
|
|
114
|
+
// Vervoerder apart wijzigen: bij een alleen-lezen veilbrief die nog niet verwijderd is.
|
|
115
|
+
const vervoerApart = !!row && alleenLezen && status !== "verwijderd";
|
|
116
|
+
const carrierOpties = (carriersQ.data?.items ?? [])
|
|
117
|
+
.filter((c) => !c.archived_at && c.carrier_kind !== "klant_haalt_op")
|
|
118
|
+
.map((c) => ({ value: String(c.id), label: String(c.name ?? ""), badge: c.carrier_kind === "eigen_vervoer" ? "Eigen vervoer" : null }));
|
|
110
119
|
const annulerenOpen = klokAnnulerenOpenstaand(row);
|
|
111
120
|
// Bestaande veilbrief laden.
|
|
112
121
|
useEffect(() => {
|
|
@@ -118,6 +127,7 @@ export function KlokOrderPage() {
|
|
|
118
127
|
veillocatie_org_id: row.veillocatie_org_id, veildatum: row.veildatum, veilgroep: row.veilgroep,
|
|
119
128
|
verzendlocatie_id: row.verzendlocatie_id, verzendlocatie_naam: row.verzendlocatie_naam,
|
|
120
129
|
vervoer: row.vervoer ?? "geen", carrier_org_id: row.carrier_org_id,
|
|
130
|
+
carrier_id: row.carrier_id ?? null, carrier_naam: row.carrier_naam ?? null,
|
|
121
131
|
});
|
|
122
132
|
const rs = (row.regels ?? []);
|
|
123
133
|
setRegels(rs.length ? rs : [legeRegel()]);
|
|
@@ -362,6 +372,29 @@ export function KlokOrderPage() {
|
|
|
362
372
|
setBezig(null);
|
|
363
373
|
}
|
|
364
374
|
}
|
|
375
|
+
async function onVervoerderWijzigen(carrierId) {
|
|
376
|
+
if (!klokId || !carrierId || vervoerBezig)
|
|
377
|
+
return;
|
|
378
|
+
setVervoerBezig(true);
|
|
379
|
+
try {
|
|
380
|
+
const res = await doVervoerder({ data: { id: klokId, carrierId } });
|
|
381
|
+
if (res?.ok) {
|
|
382
|
+
toast.success("Vervoerder opgeslagen.");
|
|
383
|
+
await qc.invalidateQueries({ queryKey: ["klok-order", klokId] });
|
|
384
|
+
}
|
|
385
|
+
else {
|
|
386
|
+
setFout(res?.reden ?? "De vervoerder is niet opgeslagen.");
|
|
387
|
+
console.error("[klok] vervoerder:", res?.detail);
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
catch (e) {
|
|
391
|
+
console.error(e);
|
|
392
|
+
setFout(e?.message ?? "De vervoerder is niet opgeslagen. Probeer het opnieuw of neem contact op met de beheerder.");
|
|
393
|
+
}
|
|
394
|
+
finally {
|
|
395
|
+
setVervoerBezig(false);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
365
398
|
async function onHerhalen() {
|
|
366
399
|
if (!klokId)
|
|
367
400
|
return;
|
|
@@ -411,12 +444,19 @@ export function KlokOrderPage() {
|
|
|
411
444
|
const verkochtStuks = resultaten.filter((r) => !r.doorgedraaid).reduce((s, r) => s + Number(r.stuks || 0), 0);
|
|
412
445
|
const verkochtBedrag = resultaten.filter((r) => !r.doorgedraaid).reduce((s, r) => s + Number(r.bedrag || 0), 0);
|
|
413
446
|
const doorStuks = resultaten.filter((r) => r.doorgedraaid).reduce((s, r) => s + Number(r.stuks || 0), 0);
|
|
414
|
-
return (_jsxs("main", { className: "flex w-full min-w-0 flex-col gap-4 overflow-x-clip p-4 pb-40 sm:p-6 sm:pb-32", children: [_jsxs("header", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(Button, { variant: "ghost", size: "sm", className: "h-9 w-9 p-0", "aria-label": "Terug", onClick: () => navigate({ to: "/floriday-verkoop/klok" }), children: _jsx(ArrowLeft, { className: "h-4 w-4" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "truncate text-xl font-bold tracking-tight sm:text-2xl", children: row ? `Veilbrief ${row.klok_nummer}` : "Klokorder (veilbrief)" }), row && (_jsxs("div", { className: "flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground", children: [_jsx(KlokStatusBadge, { status: status, detail: row.status_detail }), row.status_detail && _jsx("span", { children: row.status_detail }), orderQ.data?.orderNumber && _jsxs("span", { children: ["Order ", orderQ.data.orderNumber] })] }))] })] }), row && (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Button, { variant: "outline", size: "sm", onClick: onHerhalen, children: [_jsx(Repeat, { className: "mr-2 h-4 w-4" }), " Herhalen"] }), klokKanVerwijderen(status) && !bewerken && (_jsxs(Button, { variant: "outline", size: "sm", onClick: () => setBevestigVerwijder(true), disabled: !!bezig || !!blokkade, title: blokkade ?? undefined, children: [_jsx(Trash2, { className: "mr-2 h-4 w-4" }), " Verwijderen"] })), annulerenOpen && (_jsxs(Button, { size: "sm", variant: "outline", onClick: onOpnieuwAnnuleren, disabled: !!bezig, "aria-busy": bezig === "retry" || undefined, children: [bezig === "retry" ? _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin", "aria-hidden": true }) : _jsx(RotateCcw, { className: "mr-2 h-4 w-4" }), " Order annuleren opnieuw proberen"] })), klokKanVerwijderen(status) && !bewerken && (_jsx(Button, { size: "sm", onClick: () => setBewerken(true), disabled: !!blokkade, title: blokkade ?? undefined, children: "Wijzigen en opnieuw versturen" }))] }))] }), _jsx(KlokNotice, {}), fout && (_jsxs("div", { role: "alert", className: "flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive-soft px-3 py-2 text-sm text-destructive-soft-foreground", children: [fouten.length > 1 || (fouten.length === 1 && fouten[0].tekst !== fout) ? (_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "font-medium", children: fouten.length === 1 ? "Er is 1 punt om op te lossen:" : `Er zijn ${fouten.length} punten om op te lossen:` }), _jsx("ul", { className: "mt-1 list-disc space-y-0.5 pl-5", children: fouten.map((f, i) => _jsx("li", { children: f.tekst }, i)) })] })) : (_jsx("span", { className: "min-w-0 flex-1", children: fout })), _jsx("button", { type: "button", "aria-label": "Sluiten", onClick: () => setFout(null), children: _jsx(X, { className: "h-4 w-4" }) })] })), row?.laatste_fout && !fout && (_jsx("div", { className: "rounded-lg border border-border bg-warning-soft px-3 py-2 text-sm text-warning-soft-foreground", children: row.laatste_fout })), lijstStand === "fout" && (_jsx("p", { role: "alert", className: "rounded-lg border border-destructive/40 bg-destructive/5 px-4 py-3 text-sm text-destructive", children: KLOK_LIJST_FOUT_TEXT })), _jsx("section", { className: "rounded-xl border border-border bg-card p-4 shadow-sm sm:p-5", children: _jsxs("div", { className: "grid gap-4 [@container(min-width:48rem)]:grid-cols-2 md:grid-cols-2", children: [_jsxs("div", { className: "md:col-span-2 rounded-lg" + (foutVelden.has("veillocatie") ? " p-1 ring-1 ring-destructive" : ""), children: [_jsxs("div", { className: "mb-1.5 text-sm font-medium", children: ["Veillocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), laden ? (_jsxs("div", { className: "flex gap-2", children: [_jsx(Skeleton, { className: "h-9 w-28" }), _jsx(Skeleton, { className: "h-9 w-28" }), _jsx(Skeleton, { className: "h-9 w-28" })] })) : locaties.length === 0 ? (_jsx("p", { className: "text-sm text-muted-foreground", children: leegTekst ?? lijsten?.locaties?.message ?? lijsten?.locaties?.error ?? (kop.veillocatie_naam || "Geen veillocaties gevonden.") })) : (_jsxs("div", { className: "flex flex-wrap gap-2", children: [toonKnoppen.map((l) => (_jsx(Button, { type: "button", variant: kop.veillocatie_id === l.id ? "default" : "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: alleenLezen, onClick: () => setKop((k) => ({ ...k, ...locFields(l), veilgroep: k.veillocatie_id === l.id ? k.veilgroep : null })), children: l.displayName ?? l.name }, l.id))), toonMeer.length > 0 && !alleenLezen && (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", children: ["Meer ", _jsx(ChevronDown, { className: "ml-1 h-4 w-4" })] }) }), _jsx(DropdownMenuContent, { children: toonMeer.map((l) => (_jsx(DropdownMenuItem, { onClick: () => setKop((k) => ({ ...k, ...locFields(l), veilgroep: null })), children: l.displayName ?? l.name }, l.id))) })] }))] }))] }), _jsxs("label", { className: "block", children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Veildatum ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Input, { type: "date", value: kop.veildatum ?? "", disabled: alleenLezen, className: "h-9 [@media(pointer:coarse)]:h-11" + rood("veildatum"), onChange: (e) => setKop((k) => ({ ...k, veildatum: e.target.value || null })) }), kop.veildatum && _jsx("span", { className: "mt-1 block text-xs text-muted-foreground", children: fmtNL(kop.veildatum, { weekday: "long", day: "numeric", month: "long" }) })] }), _jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Veilgroep ", _jsx("span", { className: "text-destructive", children: "*" })] }), laden ? (_jsx(Skeleton, { className: "h-9 w-full" })) : eigenGroep || groepOpties.length === 0 ? (_jsxs("div", { className: "flex gap-2", children: [_jsx(Input, { inputMode: "numeric", placeholder: groepOpties.length === 0 && leegTekst ? leegTekst : "Veilgroep (cijfers)", value: kop.veilgroep ?? "", disabled: alleenLezen, className: "h-9 [@media(pointer:coarse)]:h-11" + rood("veilgroep"), onChange: (e) => setKop((k) => ({ ...k, veilgroep: e.target.value.replace(/\D/g, "") || null })) }), groepOpties.length > 0 && !alleenLezen && _jsx(Button, { variant: "ghost", size: "sm", className: "h-9", onClick: () => setEigenGroep(false), children: "Kies uit lijst" })] })) : (_jsxs("div", { className: "flex gap-2", children: [_jsx(SearchableSelect, { value: kop.veilgroep, options: groepOpties, placeholder: "Zoek veilgroep", allowClear: true, clearLabel: "\u2014 Geen \u2014", disabled: alleenLezen, className: "min-h-9 flex-1 [@media(pointer:coarse)]:min-h-11" + rood("veilgroep"), onChange: (v) => setKop((k) => ({ ...k, veilgroep: v })) }), !alleenLezen && _jsx(Button, { variant: "ghost", size: "sm", className: "h-9", onClick: () => setEigenGroep(true), children: "Zelf invullen" })] }))] }), laden && (_jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Verzendlocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Skeleton, { className: "h-9 w-full" })] })), !laden && verzend.length > 1 && (_jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Verzendlocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(SearchableSelect, { value: kop.verzendlocatie_id, disabled: alleenLezen, allowClear: false, options: verzend.map((v) => ({ value: v.id, label: v.name, badge: v.isDefault ? "Standaard" : v.isExternal ? "Extern" : null })), className: "min-h-9 w-full [@media(pointer:coarse)]:min-h-11" + rood("verzendlocatie"), onChange: (v) => setKop((k) => ({ ...k, verzendlocatie_id: v, verzendlocatie_naam: verzend.find((x) => x.id === v)?.name ?? null })) })] })), !laden && verzend.length === 0 && !kop.verzendlocatie_id && leegTekst && (_jsxs("div", { children: [_jsx("span", { className: "mb-1.5 block text-sm font-medium", children: "Verzendlocatie" }), _jsx("p", { className: "text-sm text-muted-foreground", children: leegTekst })] })), _jsxs("div", { children: [
|
|
447
|
+
return (_jsxs("main", { className: "flex w-full min-w-0 flex-col gap-4 overflow-x-clip p-4 pb-40 sm:p-6 sm:pb-32", children: [_jsxs("header", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(Button, { variant: "ghost", size: "sm", className: "h-9 w-9 p-0", "aria-label": "Terug", onClick: () => navigate({ to: "/floriday-verkoop/klok" }), children: _jsx(ArrowLeft, { className: "h-4 w-4" }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("h1", { className: "truncate text-xl font-bold tracking-tight sm:text-2xl", children: row ? `Veilbrief ${row.klok_nummer}` : "Klokorder (veilbrief)" }), row && (_jsxs("div", { className: "flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground", children: [_jsx(KlokStatusBadge, { status: status, detail: row.status_detail }), row.status_detail && _jsx("span", { children: row.status_detail }), orderQ.data?.orderNumber && _jsxs("span", { children: ["Order ", orderQ.data.orderNumber] }), uitFloriday && _jsxs("span", { children: ["Uit Floriday", row.floriday_delivery_note_code ? ` · aanvoerbrief ${row.floriday_delivery_note_code}` : ""] })] }))] })] }), row && (_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Button, { variant: "outline", size: "sm", onClick: onHerhalen, children: [_jsx(Repeat, { className: "mr-2 h-4 w-4" }), " Herhalen"] }), !uitFloriday && klokKanVerwijderen(status) && !bewerken && (_jsxs(Button, { variant: "outline", size: "sm", onClick: () => setBevestigVerwijder(true), disabled: !!bezig || !!blokkade, title: blokkade ?? undefined, children: [_jsx(Trash2, { className: "mr-2 h-4 w-4" }), " Verwijderen"] })), annulerenOpen && (_jsxs(Button, { size: "sm", variant: "outline", onClick: onOpnieuwAnnuleren, disabled: !!bezig, "aria-busy": bezig === "retry" || undefined, children: [bezig === "retry" ? _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin", "aria-hidden": true }) : _jsx(RotateCcw, { className: "mr-2 h-4 w-4" }), " Order annuleren opnieuw proberen"] })), !uitFloriday && klokKanVerwijderen(status) && !bewerken && (_jsx(Button, { size: "sm", onClick: () => setBewerken(true), disabled: !!blokkade, title: blokkade ?? undefined, children: "Wijzigen en opnieuw versturen" }))] }))] }), _jsx(KlokNotice, {}), uitFloriday && (_jsx("div", { role: "status", className: "rounded-lg border border-border bg-muted/40 px-3 py-2 text-sm text-muted-foreground", children: KLOK_FLORIDAY_ALLEEN_LEZEN_TEXT })), fout && (_jsxs("div", { role: "alert", className: "flex items-start gap-2 rounded-lg border border-destructive/30 bg-destructive-soft px-3 py-2 text-sm text-destructive-soft-foreground", children: [fouten.length > 1 || (fouten.length === 1 && fouten[0].tekst !== fout) ? (_jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("p", { className: "font-medium", children: fouten.length === 1 ? "Er is 1 punt om op te lossen:" : `Er zijn ${fouten.length} punten om op te lossen:` }), _jsx("ul", { className: "mt-1 list-disc space-y-0.5 pl-5", children: fouten.map((f, i) => _jsx("li", { children: f.tekst }, i)) })] })) : (_jsx("span", { className: "min-w-0 flex-1", children: fout })), _jsx("button", { type: "button", "aria-label": "Sluiten", onClick: () => setFout(null), children: _jsx(X, { className: "h-4 w-4" }) })] })), row?.laatste_fout && !fout && (_jsx("div", { className: "rounded-lg border border-border bg-warning-soft px-3 py-2 text-sm text-warning-soft-foreground", children: row.laatste_fout })), lijstStand === "fout" && (_jsx("p", { role: "alert", className: "rounded-lg border border-destructive/40 bg-destructive/5 px-4 py-3 text-sm text-destructive", children: KLOK_LIJST_FOUT_TEXT })), _jsx("section", { className: "rounded-xl border border-border bg-card p-4 shadow-sm sm:p-5", children: _jsxs("div", { className: "grid gap-4 [@container(min-width:48rem)]:grid-cols-2 md:grid-cols-2", children: [_jsxs("div", { className: "md:col-span-2 rounded-lg" + (foutVelden.has("veillocatie") ? " p-1 ring-1 ring-destructive" : ""), children: [_jsxs("div", { className: "mb-1.5 text-sm font-medium", children: ["Veillocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), laden ? (_jsxs("div", { className: "flex gap-2", children: [_jsx(Skeleton, { className: "h-9 w-28" }), _jsx(Skeleton, { className: "h-9 w-28" }), _jsx(Skeleton, { className: "h-9 w-28" })] })) : locaties.length === 0 ? (_jsx("p", { className: "text-sm text-muted-foreground", children: leegTekst ?? lijsten?.locaties?.message ?? lijsten?.locaties?.error ?? (kop.veillocatie_naam || "Geen veillocaties gevonden.") })) : (_jsxs("div", { className: "flex flex-wrap gap-2", children: [toonKnoppen.map((l) => (_jsx(Button, { type: "button", variant: kop.veillocatie_id === l.id ? "default" : "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: alleenLezen, onClick: () => setKop((k) => ({ ...k, ...locFields(l), veilgroep: k.veillocatie_id === l.id ? k.veilgroep : null })), children: l.displayName ?? l.name }, l.id))), toonMeer.length > 0 && !alleenLezen && (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "ghost", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", children: ["Meer ", _jsx(ChevronDown, { className: "ml-1 h-4 w-4" })] }) }), _jsx(DropdownMenuContent, { children: toonMeer.map((l) => (_jsx(DropdownMenuItem, { onClick: () => setKop((k) => ({ ...k, ...locFields(l), veilgroep: null })), children: l.displayName ?? l.name }, l.id))) })] }))] }))] }), _jsxs("label", { className: "block", children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Veildatum ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Input, { type: "date", value: kop.veildatum ?? "", disabled: alleenLezen, className: "h-9 [@media(pointer:coarse)]:h-11" + rood("veildatum"), onChange: (e) => setKop((k) => ({ ...k, veildatum: e.target.value || null })) }), kop.veildatum && _jsx("span", { className: "mt-1 block text-xs text-muted-foreground", children: fmtNL(kop.veildatum, { weekday: "long", day: "numeric", month: "long" }) })] }), _jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Veilgroep ", _jsx("span", { className: "text-destructive", children: "*" })] }), laden ? (_jsx(Skeleton, { className: "h-9 w-full" })) : eigenGroep || groepOpties.length === 0 ? (_jsxs("div", { className: "flex gap-2", children: [_jsx(Input, { inputMode: "numeric", placeholder: groepOpties.length === 0 && leegTekst ? leegTekst : "Veilgroep (cijfers)", value: kop.veilgroep ?? "", disabled: alleenLezen, className: "h-9 [@media(pointer:coarse)]:h-11" + rood("veilgroep"), onChange: (e) => setKop((k) => ({ ...k, veilgroep: e.target.value.replace(/\D/g, "") || null })) }), groepOpties.length > 0 && !alleenLezen && _jsx(Button, { variant: "ghost", size: "sm", className: "h-9", onClick: () => setEigenGroep(false), children: "Kies uit lijst" })] })) : (_jsxs("div", { className: "flex gap-2", children: [_jsx(SearchableSelect, { value: kop.veilgroep, options: groepOpties, placeholder: "Zoek veilgroep", allowClear: true, clearLabel: "\u2014 Geen \u2014", disabled: alleenLezen, className: "min-h-9 flex-1 [@media(pointer:coarse)]:min-h-11" + rood("veilgroep"), onChange: (v) => setKop((k) => ({ ...k, veilgroep: v })) }), !alleenLezen && _jsx(Button, { variant: "ghost", size: "sm", className: "h-9", onClick: () => setEigenGroep(true), children: "Zelf invullen" })] }))] }), laden && (_jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Verzendlocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Skeleton, { className: "h-9 w-full" })] })), !laden && verzend.length > 1 && (_jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Verzendlocatie ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(SearchableSelect, { value: kop.verzendlocatie_id, disabled: alleenLezen, allowClear: false, options: verzend.map((v) => ({ value: v.id, label: v.name, badge: v.isDefault ? "Standaard" : v.isExternal ? "Extern" : null })), className: "min-h-9 w-full [@media(pointer:coarse)]:min-h-11" + rood("verzendlocatie"), onChange: (v) => setKop((k) => ({ ...k, verzendlocatie_id: v, verzendlocatie_naam: verzend.find((x) => x.id === v)?.name ?? null })) })] })), !laden && verzend.length === 0 && !kop.verzendlocatie_id && leegTekst && (_jsxs("div", { children: [_jsx("span", { className: "mb-1.5 block text-sm font-medium", children: "Verzendlocatie" }), _jsx("p", { className: "text-sm text-muted-foreground", children: leegTekst })] })), _jsxs("div", { children: [_jsxs("span", { className: "mb-1.5 block text-sm font-medium", children: ["Vervoerder ", _jsx("span", { className: "text-destructive", children: "*" })] }), carriersQ.isLoading ? (_jsx(Skeleton, { className: "h-9 w-full" })) : (_jsx(SearchableSelect, { value: kop.carrier_id ?? null, options: carrierOpties.length || !kop.carrier_id ? carrierOpties : [{ value: kop.carrier_id, label: kop.carrier_naam ?? "Vervoerder" }], placeholder: "Kies vervoerder", allowClear: false, disabled: (alleenLezen && !vervoerApart) || vervoerBezig, className: "min-h-9 w-full [@media(pointer:coarse)]:min-h-11" + rood("vervoerder"), onChange: (v) => {
|
|
448
|
+
const c = carrierOpties.find((o) => o.value === v);
|
|
449
|
+
if (vervoerApart) {
|
|
450
|
+
void onVervoerderWijzigen(v);
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
setKop((k) => ({ ...k, carrier_id: v, carrier_naam: c ? String(c.label) : null, vervoer: c?.badge ? "eigen" : "transporteur" }));
|
|
454
|
+
} })), uitFloriday && row?.vervoer_bron !== "handmatig" && status !== "verwijderd" && (_jsx("span", { className: "mt-1 block text-xs text-muted-foreground", children: KLOK_VERVOER_ONZEKER_TEXT })), carriersQ.isError && _jsx("span", { className: "mt-1 block text-xs text-destructive", children: "De vervoerders konden niet worden geladen. Probeer het later opnieuw." })] })] }) }), _jsxs("section", { className: "rounded-xl border border-border bg-card shadow-sm", children: [_jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2 border-b border-border px-4 py-3 sm:px-5", children: [_jsx("h2", { className: "text-sm font-semibold", children: "Regels" }), !alleenLezen && (_jsxs("div", { className: "flex flex-wrap gap-2", children: [sjablonen.length > 0 && (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", size: "sm", children: ["Kies sjabloon ", _jsx(ChevronDown, { className: "ml-1 h-4 w-4" })] }) }), _jsx(DropdownMenuContent, { children: sjablonen.map((s) => _jsx(DropdownMenuItem, { onClick: () => kiesSjabloon(s), children: s.naam }, s.id)) })] })), _jsx(Button, { variant: "outline", size: "sm", disabled: !kop.veillocatie_id, onClick: () => setSjabloonNaam(""), children: "Opslaan als sjabloon" })] }))] }), _jsx("ul", { className: "divide-y divide-border", children: regels.map((r, i) => {
|
|
415
455
|
const km = kenmerken[r.key];
|
|
416
456
|
const kwFout = alleenLezen ? null : klokRegelKwaliteitFout(r, km);
|
|
417
457
|
const kwRood = regelRood(r.key, "kwaliteit") || !!kwFout;
|
|
418
458
|
return (_jsxs("li", { className: "space-y-3 px-4 py-4 sm:px-5", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsx("span", { className: "mt-2 w-6 shrink-0 text-xs text-muted-foreground tabular-nums", children: i + 1 }), _jsx("div", { className: "min-w-0 flex-1", children: alleenLezen ? (_jsx("div", { className: "py-1.5 text-sm font-medium", children: r.product_name || "Onbekend artikel" })) : (_jsx(SearchableSelect, { value: r.product_id, options: productOpties(false), showImages: true, placeholder: "Kies artikel", allowClear: false, className: "min-h-9 w-full [@media(pointer:coarse)]:min-h-11" + (regelRood(r.key, "artikel") || regelRood(r.key, "fust") ? " border-destructive ring-1 ring-destructive" : ""), onChange: (v) => kiesProduct(r.key, v) })) }), !alleenLezen && (_jsx(Button, { variant: "ghost", size: "sm", className: "h-9 w-9 shrink-0 p-0 [@media(pointer:coarse)]:h-11 [@media(pointer:coarse)]:w-11", "aria-label": "Regel verwijderen", onClick: () => setRegels((rs) => (rs.length > 1 ? rs.filter((x) => x.key !== r.key) : [legeRegel()])), children: _jsx(Trash2, { className: "h-4 w-4" }) }))] }), _jsxs("div", { className: "grid grid-cols-2 gap-3 pl-8 sm:grid-cols-3 lg:grid-cols-6", children: [_jsx(NumField, { label: "Fusten", req: true, fout: regelRood(r.key, "fusten"), value: r.fusten, disabled: alleenLezen, inputMode: "numeric", onChange: (v) => setRegel(r.key, { fusten: v }) }), _jsx(NumField, { label: "Stuks/fust", req: true, fout: regelRood(r.key, "stuks"), value: r.stuks_per_fust, disabled: alleenLezen, inputMode: "numeric", onChange: (v) => setRegel(r.key, { stuks_per_fust: v }) }), _jsx(NumField, { label: "Fust/laag", value: r.fust_per_laag, disabled: alleenLezen, inputMode: "numeric", onChange: (v) => setRegel(r.key, { fust_per_laag: v }) }), _jsx(NumField, { label: "Lagen/kar", value: r.lagen_per_kar, disabled: alleenLezen, inputMode: "numeric", onChange: (v) => setRegel(r.key, { lagen_per_kar: v }) }), _jsxs("div", { children: [_jsx(NumField, { label: "Minimumprijs", req: true, fout: regelRood(r.key, "prijs"), value: r.min_prijs, disabled: alleenLezen, inputMode: "decimal", muted: !r.prijs_bevestigd, onChange: (v) => setRegel(r.key, { min_prijs: v, prijs_bevestigd: true, prijs_at: null }) }), !r.prijs_bevestigd && r.min_prijs != null && !alleenLezen && (_jsx("button", { type: "button", className: "mt-1 text-xs font-medium text-primary hover:underline", onClick: () => setRegel(r.key, { prijs_bevestigd: true }), children: "Voorstel bevestigen" }))] }), _jsx(NumField, { label: "Klokvoorverkoop", value: r.voorverkoop_prijs, disabled: alleenLezen, inputMode: "decimal", onChange: (v) => setRegel(r.key, { voorverkoop_prijs: v }) })] }), _jsxs("div", { className: "pl-8", children: [_jsxs("button", { type: "button", className: "text-xs font-medium text-muted-foreground hover:text-foreground", onClick: () => setMeerOpen((m) => ({ ...m, [r.key]: !m[r.key] })), children: [meerOpen[r.key] ? "Minder" : "Meer", ": opmerking, kwaliteit en keurcodes"] }), (meerOpen[r.key] || kwRood) && (_jsxs("div", { className: "mt-3 grid gap-3 sm:grid-cols-2", children: [_jsxs("label", { className: "block sm:col-span-2", children: [_jsx("span", { className: "mb-1 block text-xs text-muted-foreground", children: "Opmerking voor de veiling" }), _jsx(Input, { value: r.veil_opmerking ?? "", disabled: alleenLezen, onChange: (e) => setRegel(r.key, { veil_opmerking: e.target.value || null }) })] }), _jsxs("label", { className: "block", children: [_jsx("span", { className: "mb-1 block text-xs text-muted-foreground", children: "Kwaliteit (S98)" }), _jsxs("select", { className: "h-9 w-full rounded-lg border border-input bg-background px-2 text-sm disabled:cursor-not-allowed disabled:opacity-70 [@media(pointer:coarse)]:h-11" + (kwRood ? " border-destructive ring-1 ring-destructive" : ""), "aria-invalid": kwRood || undefined, value: r.kwaliteit ?? "", disabled: alleenLezen, onChange: (e) => setRegel(r.key, { kwaliteit: e.target.value || null }), children: [_jsx("option", { value: "", children: km?.kwaliteit ? `Artikel: ${km.kwaliteit}` : kwaliteitCodes.length ? "Kenmerk van het artikel" : (leegTekst ?? "Kenmerk van het artikel") }), kwaliteitCodes.filter((c) => c?.vbnCode === "S98").map((c) => (_jsxs("option", { value: c.vbnValueCode, children: [c.vbnValueCode, c.description ? ` · ${c.description}` : ""] }, c.vbnValueCode)))] })] }), _jsxs("div", { children: [_jsx("span", { className: "mb-1 block text-xs text-muted-foreground", children: "Keurcodes (K01/K02, P01/P02)" }), _jsx(KeurcodeVeld, { codes: kwaliteitCodes.filter((c) => /^(K01|K02|P01|P02)$/.test(String(c?.vbnCode))), waarde: r.keurcodes, voorinvulling: km?.keurcodes ?? [], leegTekst: leegTekst, disabled: alleenLezen, fout: kwRood, onChange: (v) => setRegel(r.key, { keurcodes: v }) })] })] })), kwFout && _jsx("p", { role: "alert", className: "mt-2 text-xs text-destructive", children: kwFout })] })] }, r.key));
|
|
419
|
-
}) }), !alleenLezen && (_jsxs("div", { className: "flex flex-wrap gap-2 border-t border-border px-4 py-3 sm:px-5", children: [_jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => setRegels((rs) => [...rs, legeRegel()]), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Artikel toevoegen"] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", children: [_jsx(Package, { className: "mr-2 h-4 w-4" }), " Uit voorraad"] }) }), _jsxs(DropdownMenuContent, { className: "max-h-80 overflow-y-auto", children: [productOpties(true).length === 0 && _jsx(DropdownMenuItem, { disabled: true, children: "Geen artikelen op voorraad" }), productOpties(true).slice(0, 100).map((o) => (_jsxs(DropdownMenuItem, { onClick: () => { const n = legeRegel(); setRegels((rs) => [...rs.filter((x) => x.product_id || x.product_name), n]); void kiesProduct(n.key, o.value); }, children: [_jsx("span", { className: "min-w-0 flex-1 truncate", children: o.label }), _jsx("span", { className: "ml-3 text-xs text-muted-foreground", children: o.hint })] }, o.value)))] })] })] }))] }), resultaten.length > 0 && (_jsxs("section", { className: "rounded-xl border border-border bg-card p-4 shadow-sm sm:p-5", children: [_jsx("h2", { className: "mb-3 text-sm font-semibold", children: "Verkocht" }), _jsxs("table", { className: "w-full text-sm", children: [_jsx("thead", { children: _jsxs("tr", { className: "text-left text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: [_jsx("th", { className: "py-1", children: "Koper" }), _jsx("th", { className: "py-1", children: "Stuks" }), _jsx("th", { className: "py-1", children: "Prijs" }), _jsx("th", { className: "py-1", children: "Bedrag" })] }) }), _jsx("tbody", { className: "divide-y divide-border", children: resultaten.filter((x) => !x.doorgedraaid).map((x) => (_jsxs("tr", { children: [_jsx("td", { className: "py-2", children: x.koper_naam }), _jsx("td", { className: "py-2 tabular-nums", children: Number(x.stuks || 0).toLocaleString("nl-NL") }), _jsx("td", { className: "py-2 tabular-nums", children: x.prijs != null ? eur(Number(x.prijs)) : "—" }), _jsx("td", { className: "py-2 tabular-nums", children: x.bedrag != null ? eur(Number(x.bedrag)) : "—" })] }, x.id))) })] }), _jsxs("div", { className: "mt-3 flex flex-wrap gap-x-6 gap-y-1 border-t border-border pt-3 text-sm", children: [_jsxs("span", { children: ["Totaal: ", _jsxs("strong", { className: "tabular-nums", children: [verkochtStuks.toLocaleString("nl-NL"), " stuks \u00B7 ", eur(verkochtBedrag)] })] }), _jsxs("span", { className: "text-muted-foreground", children: ["Doorgedraaid: ", _jsxs("span", { className: "tabular-nums", children: [doorStuks.toLocaleString("nl-NL"), " stuks"] })] })] })] })), !alleenLezen && (_jsx("div", { className: "sticky bottom-0 z-20 -mx-4 border-t border-border bg-background/95 px-4 pt-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] backdrop-blur sm:-mx-6 sm:px-6", children: _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsxs("div", { className: "text-sm tabular-nums", children: [_jsx("span", { className: "font-medium", children: tellersTekst(tellers) }), totaal > 0 && _jsxs("span", { className: "ml-2 text-muted-foreground", children: ["\u00B7 min. ", eur(totaal)] }), ontbreekt.length > 0 && _jsxs("span", { className: "ml-2 text-xs text-muted-foreground", title: ontbreekt.join(", "), children: ["\u00B7 ", ontbreekt.length, " ontbreekt nog"] })] }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs(Button, { variant: "ghost", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => setVoorbeeld(true), children: [_jsx(Eye, { className: "mr-2 h-4 w-4" }), " Voorbeeld"] }), bewerken ? (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => { setBewerken(false); geladen.current = null; qc.invalidateQueries({ queryKey: ["klok-order", klokId] }); }, children: "Annuleren" }), _jsxs(Button, { size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => setBevestigWijzig(true), children: [_jsx(Send, { className: "mr-2 h-4 w-4" }), " Opnieuw versturen"] })] })) : (_jsxs(_Fragment, { children: [_jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig, onClick: onOpslaan, children: [_jsx(Save, { className: "mr-2 h-4 w-4" }), " Opslaan als concept"] }), _jsx(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => onVersturen(true), children: "Versturen en nieuwe" }), _jsxs(Button, { size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => onVersturen(false), children: [_jsx(Send, { className: "mr-2 h-4 w-4" }), " ", bezig === "send" ? "Bezig…" : "Versturen naar veiling"] })] }))] })] }) })), voorbeeld && (_jsxs(Dialoog, { titel: "Voorbeeld veilbrief", onClose: () => setVoorbeeld(false), children: [_jsxs("dl", { className: "grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm", children: [_jsx("dt", { className: "text-muted-foreground", children: "Veillocatie" }), _jsx("dd", { children: kop.veillocatie_naam ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Veildatum" }), _jsx("dd", { children: kop.veildatum ? fmtNL(kop.veildatum, { weekday: "short", day: "numeric", month: "short" }) : "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Veilgroep" }), _jsx("dd", { children: kop.veilgroep ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Verzendlocatie" }), _jsx("dd", { children: kop.verzendlocatie_naam ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "
|
|
459
|
+
}) }), !alleenLezen && (_jsxs("div", { className: "flex flex-wrap gap-2 border-t border-border px-4 py-3 sm:px-5", children: [_jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => setRegels((rs) => [...rs, legeRegel()]), children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), " Artikel toevoegen"] }), _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", children: [_jsx(Package, { className: "mr-2 h-4 w-4" }), " Uit voorraad"] }) }), _jsxs(DropdownMenuContent, { className: "max-h-80 overflow-y-auto", children: [productOpties(true).length === 0 && _jsx(DropdownMenuItem, { disabled: true, children: "Geen artikelen op voorraad" }), productOpties(true).slice(0, 100).map((o) => (_jsxs(DropdownMenuItem, { onClick: () => { const n = legeRegel(); setRegels((rs) => [...rs.filter((x) => x.product_id || x.product_name), n]); void kiesProduct(n.key, o.value); }, children: [_jsx("span", { className: "min-w-0 flex-1 truncate", children: o.label }), _jsx("span", { className: "ml-3 text-xs text-muted-foreground", children: o.hint })] }, o.value)))] })] })] }))] }), resultaten.length > 0 && (_jsxs("section", { className: "rounded-xl border border-border bg-card p-4 shadow-sm sm:p-5", children: [_jsx("h2", { className: "mb-3 text-sm font-semibold", children: "Verkocht" }), _jsxs("table", { className: "w-full text-sm", children: [_jsx("thead", { children: _jsxs("tr", { className: "text-left text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: [_jsx("th", { className: "py-1", children: "Koper" }), _jsx("th", { className: "py-1", children: "Soort" }), _jsx("th", { className: "py-1", children: "Stuks" }), _jsx("th", { className: "py-1", children: "Prijs" }), _jsx("th", { className: "py-1", children: "Bedrag" })] }) }), _jsx("tbody", { className: "divide-y divide-border", children: resultaten.filter((x) => !x.doorgedraaid).map((x) => (_jsxs("tr", { children: [_jsx("td", { className: "py-2", children: x.koper_naam }), _jsx("td", { className: "py-2 text-muted-foreground", children: TRADE_INSTRUMENT_LABEL[String(x.trade_instrument ?? "").toUpperCase()] ?? "—" }), _jsx("td", { className: "py-2 tabular-nums", children: Number(x.stuks || 0).toLocaleString("nl-NL") }), _jsx("td", { className: "py-2 tabular-nums", children: x.prijs != null ? eur(Number(x.prijs)) : "—" }), _jsx("td", { className: "py-2 tabular-nums", children: x.bedrag != null ? eur(Number(x.bedrag)) : "—" })] }, x.id))) })] }), _jsxs("div", { className: "mt-3 flex flex-wrap gap-x-6 gap-y-1 border-t border-border pt-3 text-sm", children: [_jsxs("span", { children: ["Totaal: ", _jsxs("strong", { className: "tabular-nums", children: [verkochtStuks.toLocaleString("nl-NL"), " stuks \u00B7 ", eur(verkochtBedrag)] })] }), _jsxs("span", { className: "text-muted-foreground", children: ["Doorgedraaid: ", _jsxs("span", { className: "tabular-nums", children: [doorStuks.toLocaleString("nl-NL"), " stuks"] })] })] })] })), !alleenLezen && (_jsx("div", { className: "sticky bottom-0 z-20 -mx-4 border-t border-border bg-background/95 px-4 pt-3 pb-[calc(0.75rem+env(safe-area-inset-bottom))] backdrop-blur sm:-mx-6 sm:px-6", children: _jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [_jsxs("div", { className: "text-sm tabular-nums", children: [_jsx("span", { className: "font-medium", children: tellersTekst(tellers) }), totaal > 0 && _jsxs("span", { className: "ml-2 text-muted-foreground", children: ["\u00B7 min. ", eur(totaal)] }), ontbreekt.length > 0 && _jsxs("span", { className: "ml-2 text-xs text-muted-foreground", title: ontbreekt.join(", "), children: ["\u00B7 ", ontbreekt.length, " ontbreekt nog"] })] }), _jsxs("div", { className: "flex flex-wrap gap-2", children: [_jsxs(Button, { variant: "ghost", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => setVoorbeeld(true), children: [_jsx(Eye, { className: "mr-2 h-4 w-4" }), " Voorbeeld"] }), bewerken ? (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", onClick: () => { setBewerken(false); geladen.current = null; qc.invalidateQueries({ queryKey: ["klok-order", klokId] }); }, children: "Annuleren" }), _jsxs(Button, { size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => setBevestigWijzig(true), children: [_jsx(Send, { className: "mr-2 h-4 w-4" }), " Opnieuw versturen"] })] })) : (_jsxs(_Fragment, { children: [_jsxs(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig, onClick: onOpslaan, children: [_jsx(Save, { className: "mr-2 h-4 w-4" }), " Opslaan als concept"] }), _jsx(Button, { variant: "outline", size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => onVersturen(true), children: "Versturen en nieuwe" }), _jsxs(Button, { size: "sm", className: "h-9 [@media(pointer:coarse)]:h-11", disabled: !!bezig || !!blokkade || ontbreekt.length > 0, title: blokkade ?? (ontbreekt.length ? `Nog nodig: ${ontbreekt.join(", ")}` : undefined), onClick: () => onVersturen(false), children: [_jsx(Send, { className: "mr-2 h-4 w-4" }), " ", bezig === "send" ? "Bezig…" : "Versturen naar veiling"] })] }))] })] }) })), voorbeeld && (_jsxs(Dialoog, { titel: "Voorbeeld veilbrief", onClose: () => setVoorbeeld(false), children: [_jsxs("dl", { className: "grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-sm", children: [_jsx("dt", { className: "text-muted-foreground", children: "Veillocatie" }), _jsx("dd", { children: kop.veillocatie_naam ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Veildatum" }), _jsx("dd", { children: kop.veildatum ? fmtNL(kop.veildatum, { weekday: "short", day: "numeric", month: "short" }) : "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Veilgroep" }), _jsx("dd", { children: kop.veilgroep ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Verzendlocatie" }), _jsx("dd", { children: kop.verzendlocatie_naam ?? "—" }), _jsx("dt", { className: "text-muted-foreground", children: "Vervoerder" }), _jsx("dd", { children: kop.carrier_naam ?? "—" })] }), _jsx("ul", { className: "mt-3 divide-y divide-border text-sm", children: regels.filter((r) => r.product_name).map((r) => (_jsxs("li", { className: "flex justify-between gap-3 py-1.5", children: [_jsx("span", { className: "min-w-0 truncate", children: r.product_name }), _jsxs("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: [r.fusten ?? 0, " \u00D7 ", r.stuks_per_fust ?? 0, " \u00B7 min. ", r.min_prijs != null ? eur(r.min_prijs) : "—"] })] }, r.key))) }), _jsx("p", { className: "mt-3 text-sm font-medium tabular-nums", children: tellersTekst(tellers) }), ontbreekt.length > 0 && _jsxs("p", { className: "mt-2 text-sm text-muted-foreground", children: ["Ontbreekt nog: ", ontbreekt.join(", ")] })] })), bevestigWijzig && (_jsxs(Dialoog, { titel: "Wijzigen en opnieuw versturen?", onClose: () => setBevestigWijzig(false), children: [_jsx("p", { className: "text-sm text-muted-foreground", children: "De huidige veilbrief wordt bij de veiling verwijderd en opnieuw verstuurd. Doorgaan?" }), _jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [_jsx(Button, { variant: "ghost", onClick: () => setBevestigWijzig(false), children: "Annuleren" }), _jsx(Button, { onClick: onWijzigEnVerstuur, disabled: !!bezig, children: "Doorgaan" })] })] })), bevestigVerwijder && (_jsxs(Dialoog, { titel: `Veilbrief ${row?.klok_nummer ?? ""} verwijderen?`, onClose: () => !bezig && setBevestigVerwijder(false), children: [_jsx("p", { className: "text-sm text-muted-foreground", children: VERWIJDER_BEVESTIG_TEXT }), _jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [_jsx(Button, { variant: "ghost", onClick: () => setBevestigVerwijder(false), disabled: !!bezig, children: "Annuleren" }), _jsx(Button, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", onClick: onVerwijderen, disabled: !!bezig, "aria-busy": bezig === "delete" || undefined, children: bezig === "delete" ? _jsxs(_Fragment, { children: [_jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin", "aria-hidden": true }), " Bezig met verwijderen\u2026"] }) : "Verwijderen" })] })] })), sjabloonNaam != null && (_jsxs(Dialoog, { titel: "Opslaan als sjabloon", onClose: () => setSjabloonNaam(null), children: [_jsxs("label", { className: "block text-sm", children: [_jsxs("span", { className: "mb-1 block", children: ["Naam ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Input, { autoFocus: true, value: sjabloonNaam, maxLength: 80, onChange: (e) => setSjabloonNaam(e.target.value) })] }), _jsxs("p", { className: "mt-2 text-xs text-muted-foreground", children: ["Voor ", kop.veillocatie_naam, ". Prijzen ouder dan 14 dagen worden later als voorstel getoond."] }), _jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [_jsx(Button, { variant: "ghost", onClick: () => setSjabloonNaam(null), children: "Annuleren" }), _jsx(Button, { onClick: bewaarSjabloon, disabled: !sjabloonNaam.trim(), children: "Opslaan" })] })] }))] }));
|
|
420
460
|
}
|
|
421
461
|
function NumField({ label, value, onChange, disabled, req, inputMode, muted, fout }) {
|
|
422
462
|
// Bedragen altijd met twee decimalen ("0,50"); hele getallen zonder.
|
|
@@ -6,14 +6,14 @@ export interface KlokLijstParams extends KlokLijstFilters {
|
|
|
6
6
|
vandaag?: string;
|
|
7
7
|
kpi?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function useKlokOrders(params: KlokLijstParams, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
export declare function useKlokOrders(params: KlokLijstParams, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<{
|
|
10
10
|
orders: any;
|
|
11
11
|
total: any;
|
|
12
12
|
page: number;
|
|
13
13
|
pageSize: number;
|
|
14
14
|
kpiOrders: any[];
|
|
15
15
|
resultaten: any[];
|
|
16
|
-
}
|
|
16
|
+
}, Error>;
|
|
17
17
|
export declare const VERWIJDER_BEVESTIG_TEXT = "De veilbrief wordt bij de veiling verwijderd en de order voor picken geannuleerd.";
|
|
18
18
|
export declare function KlokOrdersList({ from, to, params, focusedId, onPage, }: {
|
|
19
19
|
from?: string | null;
|
|
@@ -22,5 +22,5 @@ export declare function KlokOrdersList({ from, to, params, focusedId, onPage, }:
|
|
|
22
22
|
params?: KlokLijstParams;
|
|
23
23
|
focusedId?: string | null;
|
|
24
24
|
onPage?: (page: number) => void;
|
|
25
|
-
}): import("react
|
|
25
|
+
}): import("react").JSX.Element;
|
|
26
26
|
//# sourceMappingURL=KlokOrdersList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KlokOrdersList.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokOrdersList.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM/E,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,UAAO;;;;;;;
|
|
1
|
+
{"version":3,"file":"KlokOrdersList.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokOrdersList.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAkB,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAM/E,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,EAAE,OAAO,UAAO;;;;;;;UASpE;AAED,eAAO,MAAM,uBAAuB,sFAAsF,CAAC;AAK3H,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GACpC,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,sEAAsE;IACtE,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,+BA8NA"}
|
|
@@ -140,7 +140,7 @@ export function KlokOrdersList({ from, to, params, focusedId, onPage, }) {
|
|
|
140
140
|
const regels = (o.regels ?? []);
|
|
141
141
|
const t = klokTellers(regels);
|
|
142
142
|
const prijzen = regels.map((r) => Number(r.min_prijs)).filter((n) => n > 0);
|
|
143
|
-
return (_jsxs("tr", { "data-klok-id": o.id, "aria-selected": focusedId === o.id || undefined, className: "h-[60px] cursor-pointer border-b border-border last:border-0 hover:bg-muted/50 " + (focusedId === o.id ? "bg-muted/60 outline outline-2 -outline-offset-2 outline-ring" : ""), onClick: () => open(o.id), children: [
|
|
143
|
+
return (_jsxs("tr", { "data-klok-id": o.id, "aria-selected": focusedId === o.id || undefined, className: "h-[60px] cursor-pointer border-b border-border last:border-0 hover:bg-muted/50 " + (focusedId === o.id ? "bg-muted/60 outline outline-2 -outline-offset-2 outline-ring" : ""), onClick: () => open(o.id), children: [_jsxs("td", { className: "px-4 font-medium tabular-nums", children: [o.klok_nummer, o.herkomst === "floriday" && _jsxs("span", { className: "block text-xs font-normal text-muted-foreground", children: ["Uit Floriday", o.floriday_delivery_note_code ? ` · ${o.floriday_delivery_note_code}` : ""] })] }), _jsx("td", { className: "px-3", children: o.veillocatie_naam ?? "—" }), _jsx("td", { className: "px-3 tabular-nums", children: o.veilgroep ?? "—" }), _jsxs("td", { className: "px-3 tabular-nums", children: [t.fusten, " \u00B7 ", t.stuks] }), _jsx("td", { className: "px-3 tabular-nums", children: prijzen.length ? `€ ${Math.min(...prijzen).toFixed(2).replace(".", ",")}${prijzen.length > 1 && Math.max(...prijzen) !== Math.min(...prijzen) ? ` – ${Math.max(...prijzen).toFixed(2).replace(".", ",")}` : ""}` : "—" }), _jsx("td", { className: "px-3", children: _jsx(KlokStatusBadge, { status: o.status, detail: o.status_detail ?? o.laatste_fout }) }), _jsx("td", { className: "px-3", onClick: (e) => e.stopPropagation(), children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { variant: "ghost", size: "sm", className: "h-8 w-8 p-0", "aria-label": "Acties", disabled: bezig === o.id, children: _jsx(MoreHorizontal, { className: "h-4 w-4" }) }) }), _jsxs(DropdownMenuContent, { align: "end", children: [_jsxs(DropdownMenuItem, { onClick: () => herhaal(o), children: [_jsx(Repeat, { className: "mr-2 h-4 w-4" }), " Herhalen"] }), (o.afleverbrieven ?? []).length ? (_jsxs(DropdownMenuItem, { onClick: () => afleverbrief(o), children: [_jsx(FileText, { className: "mr-2 h-4 w-4" }), " Afleverbrief"] })) : (_jsx("div", { title: KLOK_AFLEVERBRIEF_UIT_TEXT, "aria-label": `Afleverbrief: ${KLOK_AFLEVERBRIEF_UIT_TEXT}`, children: _jsxs(DropdownMenuItem, { disabled: true, children: [_jsx(FileText, { className: "mr-2 h-4 w-4" }), " Afleverbrief"] }) })), klokAnnulerenOpenstaand(o) && (_jsxs(DropdownMenuItem, { onClick: () => opnieuwAnnuleren(o), children: [_jsx(RotateCcw, { className: "mr-2 h-4 w-4" }), " Order annuleren opnieuw proberen"] })), o.herkomst !== "floriday" && klokKanVerwijderen(o.status) && (_jsxs(DropdownMenuItem, { className: "text-destructive", onClick: () => setTeVerwijderen(o), children: [_jsx(Trash2, { className: "mr-2 h-4 w-4" }), " Verwijderen"] }))] })] }) })] }, o.id));
|
|
144
144
|
}) }, dag || "geen"))) })] }), params && pages > 1 && (_jsxs("div", { className: "flex items-center justify-between gap-2 border-t border-border px-4 py-3 text-sm", children: [_jsxs("span", { className: "text-muted-foreground tabular-nums", children: [(page - 1) * KLOK_PAGE_SIZE + 1, "\u2013", Math.min(total, page * KLOK_PAGE_SIZE), " van ", total] }), _jsxs("div", { className: "flex gap-2", children: [_jsx(Button, { variant: "outline", size: "sm", disabled: page <= 1, onClick: () => onPage?.(page - 1), children: "Vorige" }), _jsx(Button, { variant: "outline", size: "sm", disabled: page >= pages, onClick: () => onPage?.(page + 1), children: "Volgende" })] })] })), teVerwijderen && (_jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-foreground/40 p-4", onClick: () => !bezig && setTeVerwijderen(null), children: _jsxs("div", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6 shadow-lg", onClick: (e) => e.stopPropagation(), children: [_jsxs("h2", { className: "text-lg font-semibold", children: ["Veilbrief ", teVerwijderen.klok_nummer, " verwijderen?"] }), _jsx("p", { className: "mt-2 text-sm text-muted-foreground", children: VERWIJDER_BEVESTIG_TEXT }), _jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [_jsx(Button, { variant: "ghost", onClick: () => setTeVerwijderen(null), disabled: !!bezig, children: "Annuleren" }), _jsx(Button, { className: "bg-destructive text-destructive-foreground hover:bg-destructive/90", onClick: () => verwijder(teVerwijderen), disabled: !!bezig, "aria-busy": !!bezig || undefined, children: bezig ? _jsxs(_Fragment, { children: [_jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin", "aria-hidden": true }), " Bezig met verwijderen\u2026"] }) : "Verwijderen" })] })] }) }))] }));
|
|
145
145
|
}
|
|
146
146
|
function FragmentGroep({ label, count, children }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function KlokPage(): import("react
|
|
1
|
+
export declare function KlokPage(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=KlokPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KlokPage.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KlokPage.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokPage.tsx"],"names":[],"mappings":"AAmCA,wBAAgB,QAAQ,gCA8TvB"}
|
|
@@ -10,6 +10,7 @@ import { fmtNL } from "../../../lib/nl-datetime.js";
|
|
|
10
10
|
import { SalesOrdersFilters } from "../SalesOrdersFilters.js";
|
|
11
11
|
import { FilterPanelShell } from "../SalesOrdersFilterPanel.js";
|
|
12
12
|
import { KLOK_STATUS_LABEL, klokTellers } from "../../../lib/klok-labels.js";
|
|
13
|
+
import { resultaatPerVeilbrief } from "../../../lib/klok-floriday.js";
|
|
13
14
|
import { KLOK_SNELTOETSEN, KLOK_ZOEK_PLACEHOLDER, klokActieveFilters, klokFilterChips, klokKpiKlik, klokVolgendeFocus, } from "../../../lib/klok-list.js";
|
|
14
15
|
import { getKlokLijsten } from "../../../lib/klok.functions.js";
|
|
15
16
|
import { listProductsForCreateOrder } from "../../../lib/create-order.functions.js";
|
|
@@ -112,6 +113,14 @@ export function KlokPage() {
|
|
|
112
113
|
window.addEventListener("keydown", onKey);
|
|
113
114
|
return () => window.removeEventListener("keydown", onKey);
|
|
114
115
|
}, [navigate, helpOpen, filterOpen, tab]);
|
|
116
|
+
// Resultaat per veilbrief: klok- en voorverkoop samen.
|
|
117
|
+
const perVeilbrief = useMemo(() => {
|
|
118
|
+
const per = resultaatPerVeilbrief(resultaten);
|
|
119
|
+
return kpiOrders
|
|
120
|
+
.filter((o) => per.has(o.id))
|
|
121
|
+
.map((o) => ({ o, r: per.get(o.id) }))
|
|
122
|
+
.sort((a, b) => String(b.o.veildatum ?? "").localeCompare(String(a.o.veildatum ?? "")));
|
|
123
|
+
}, [kpiOrders, resultaten]);
|
|
115
124
|
const kpi = useMemo(() => {
|
|
116
125
|
const vandaagRows = kpiOrders.filter((o) => o.veildatum === vandaag && o.status !== "concept" && o.status !== "verwijderd");
|
|
117
126
|
const stuks = kpiOrders.filter((o) => o.status !== "verwijderd").reduce((s, o) => s + klokTellers(o.regels ?? []).stuks, 0);
|
|
@@ -154,5 +163,5 @@ export function KlokPage() {
|
|
|
154
163
|
return (_jsxs("button", { type: "button", role: "tab", "aria-selected": active, onClick: () => setTab(t.id), className: "flex h-9 items-center gap-2 whitespace-nowrap rounded-lg border px-3 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring " +
|
|
155
164
|
(active ? "border-primary/30 bg-primary/10 font-semibold text-foreground" : "border-border bg-card text-foreground/80 hover:bg-muted"), children: [_jsx(Icon, { className: "h-4 w-4", "aria-hidden": true }), " ", t.label] }, t.id));
|
|
156
165
|
}) }), tab === "veilbrieven" && (_jsxs("div", { className: "flex shrink-0 flex-wrap items-center gap-2", children: [_jsx("div", { className: "min-w-0 flex-1 sm:flex-none", children: _jsx(SalesOrdersFilters, { value: filters, onChange: setFilters, part: "search", busy: q.isFetching, searchPlaceholder: KLOK_ZOEK_PLACEHOLDER }) }), _jsxs(Button, { variant: "outline", size: "sm", onClick: () => setFilterOpen(true), "aria-label": "Filters", className: "relative h-10 px-3 sm:h-9", children: [_jsx(SlidersHorizontal, { className: "h-4 w-4 sm:mr-2" }), _jsx("span", { className: "hidden sm:inline", children: "Filters" }), actief > 0 && (_jsx("span", { className: "ml-2 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1.5 text-[11px] font-semibold text-primary-foreground", children: actief }))] }), kpiFilter === "vandaag" && _jsx(FilterChip, { label: "Vandaag aangevoerd", onClear: () => setKpiFilter(null) }), chips.map((c) => (_jsx(FilterChip, { label: c.label, onClear: () => { setLf((f) => ({ ...f, [c.sleutel]: undefined })); if (c.sleutel === "status")
|
|
157
|
-
setKpiFilter(null); } }, c.sleutel))), (filters.search || actief > 0 || kpiFilter) && (_jsx(Button, { variant: "ghost", size: "sm", onClick: wisAlles, children: "Alles wissen" }))] })), tab === "veilbrieven" && _jsx(KlokOrdersList, { params: params, focusedId: focusedId, onPage: setPage }), tab === "aanvoer" && (_jsx("div", { className: "overflow-x-auto rounded-xl border border-border bg-card shadow-sm", children: _jsxs("table", { className: "w-full min-w-[700px] text-sm", children: [_jsx("thead", { children: _jsxs("tr", { className: "h-10 border-b border-border text-left text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: [_jsx("th", { className: "px-4", children: "Nummer" }), _jsx("th", { className: "px-3", children: "Veildatum" }), _jsx("th", { className: "px-3", children: "Veillocatie" }), _jsx("th", { className: "px-3", children: "Fusten" }), _jsx("th", { className: "px-3", children: "Veilstatus" })] }) }), _jsxs("tbody", { children: [kpiOrders.filter((o) => AANVOER.has(o.status)).map((o) => (_jsxs("tr", { className: "h-[60px] cursor-pointer border-b border-border last:border-0 hover:bg-muted/50", onClick: () => navigate({ to: "/floriday-verkoop/klok/$klokId", params: { klokId: o.id } }), children: [_jsx("td", { className: "px-4 font-medium", children: o.klok_nummer }), _jsx("td", { className: "px-3 tabular-nums", children: o.veildatum ? fmtNL(o.veildatum, { weekday: "short", day: "numeric", month: "short" }) : "—" }), _jsx("td", { className: "px-3", children: o.veillocatie_naam ?? "—" }), _jsx("td", { className: "px-3 tabular-nums", children: klokTellers(o.regels ?? []).fusten }), _jsx("td", { className: "px-3", children: _jsx(KlokStatusBadge, { status: o.status, detail: o.status_detail }) })] }, o.id))), kpiOrders.filter((o) => AANVOER.has(o.status)).length === 0 && (_jsx("tr", { children: _jsx("td", { colSpan: 5, className: "px-4 py-10 text-center text-sm text-muted-foreground", children: "Er ligt nu niets bij de veiling in deze periode." }) }))] })] }) })), tab === "resultaat" && (_jsxs("div", { className: "rounded-xl border border-border bg-card p-5 shadow-sm", children: [_jsxs("h2", { className: "mb-3 flex items-center gap-2 text-sm font-semibold", children: [_jsx(Users, { className: "h-4 w-4", "aria-hidden": true }), " Grootste kopers"] }), kpi.top.length === 0 ? (_jsx("p", { className: "text-sm text-muted-foreground", children: "Nog geen verkopen in deze periode." })) : (_jsx("ul", { className: "divide-y divide-border", children: kpi.top.map((k, i) => (_jsxs("li", { className: "flex items-center justify-between gap-3 py-2 text-sm", children: [_jsx("span", { className: "min-w-0 truncate", children: k.naam }), _jsxs("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: [k.stuks.toLocaleString("nl-NL"), " st \u00B7 ", _jsx("span", { className: "text-foreground", children: eur(k.bedrag) })] })] }, i))) }))] })), _jsx(ShortcutHelp, { open: helpOpen, onOpenChange: setHelpOpen, items: KLOK_SNELTOETSEN }), _jsx(FilterPanelShell, { open: filterOpen, onOpenChange: setFilterOpen, activeCount: actief, onClearAll: () => { setLf({}); setKpiFilter(null); }, children: _jsxs("div", { className: "space-y-5", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Veillocatie" }), _jsx(SearchableSelect, { value: lf.veillocatie ?? null, allowClear: true, clearLabel: "- Alle veillocaties -", placeholder: "- Alle veillocaties -", className: "h-10 w-full", options: locaties.map((l) => ({ value: String(l.id), label: String(l.displayName ?? l.name) })), onChange: (v) => setLf((f) => ({ ...f, veillocatie: v ?? undefined })) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Status" }), _jsxs(Select, { value: lf.status ?? "all", onValueChange: (v) => { setLf((f) => ({ ...f, status: v === "all" ? undefined : v })); setKpiFilter(v === "concept" ? "concept" : v === "fout" ? "fout" : null); }, children: [_jsx(SelectTrigger, { className: "h-10 w-full", children: _jsx(SelectValue, { placeholder: "- Alle statussen -" }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "all", children: "- Alle statussen -" }), Object.entries(KLOK_STATUS_LABEL).map(([k, label]) => _jsx(SelectItem, { value: k, children: label }, k))] })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Veilgroep" }), _jsx(Input, { inputMode: "numeric", placeholder: "Veilgroep", value: lf.veilgroep ?? "", className: "h-10", onChange: (e) => setLf((f) => ({ ...f, veilgroep: e.target.value.replace(/\D/g, "") || undefined })) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Artikel" }), _jsx(SearchableSelect, { value: lf.artikel ?? null, allowClear: true, clearLabel: "- Alle artikelen -", placeholder: "- Alle artikelen -", showImages: true, className: "h-10 w-full", options: products.filter((p) => p.source !== "group").map((p) => ({ value: String(p.id), label: String(p.product ?? ""), image: p.image_url ?? null })), onChange: (v) => setLf((f) => ({ ...f, artikel: v ?? undefined })) })] })] }) })] }));
|
|
166
|
+
setKpiFilter(null); } }, c.sleutel))), (filters.search || actief > 0 || kpiFilter) && (_jsx(Button, { variant: "ghost", size: "sm", onClick: wisAlles, children: "Alles wissen" }))] })), tab === "veilbrieven" && _jsx(KlokOrdersList, { params: params, focusedId: focusedId, onPage: setPage }), tab === "aanvoer" && (_jsx("div", { className: "overflow-x-auto rounded-xl border border-border bg-card shadow-sm", children: _jsxs("table", { className: "w-full min-w-[700px] text-sm", children: [_jsx("thead", { children: _jsxs("tr", { className: "h-10 border-b border-border text-left text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: [_jsx("th", { className: "px-4", children: "Nummer" }), _jsx("th", { className: "px-3", children: "Veildatum" }), _jsx("th", { className: "px-3", children: "Veillocatie" }), _jsx("th", { className: "px-3", children: "Fusten" }), _jsx("th", { className: "px-3", children: "Veilstatus" })] }) }), _jsxs("tbody", { children: [kpiOrders.filter((o) => AANVOER.has(o.status)).map((o) => (_jsxs("tr", { className: "h-[60px] cursor-pointer border-b border-border last:border-0 hover:bg-muted/50", onClick: () => navigate({ to: "/floriday-verkoop/klok/$klokId", params: { klokId: o.id } }), children: [_jsx("td", { className: "px-4 font-medium", children: o.klok_nummer }), _jsx("td", { className: "px-3 tabular-nums", children: o.veildatum ? fmtNL(o.veildatum, { weekday: "short", day: "numeric", month: "short" }) : "—" }), _jsx("td", { className: "px-3", children: o.veillocatie_naam ?? "—" }), _jsx("td", { className: "px-3 tabular-nums", children: klokTellers(o.regels ?? []).fusten }), _jsx("td", { className: "px-3", children: _jsx(KlokStatusBadge, { status: o.status, detail: o.status_detail }) })] }, o.id))), kpiOrders.filter((o) => AANVOER.has(o.status)).length === 0 && (_jsx("tr", { children: _jsx("td", { colSpan: 5, className: "px-4 py-10 text-center text-sm text-muted-foreground", children: "Er ligt nu niets bij de veiling in deze periode." }) }))] })] }) })), tab === "resultaat" && perVeilbrief.length > 0 && (_jsx("div", { className: "overflow-x-auto rounded-xl border border-border bg-card shadow-sm", children: _jsxs("table", { className: "w-full min-w-[760px] text-sm", children: [_jsx("thead", { children: _jsxs("tr", { className: "h-10 border-b border-border text-left text-[11px] font-semibold uppercase tracking-wider text-muted-foreground", children: [_jsx("th", { className: "px-4", children: "Veilbrief" }), _jsx("th", { className: "px-3", children: "Veildatum" }), _jsx("th", { className: "px-3", children: "Veillocatie" }), _jsx("th", { className: "px-3", children: "Klok" }), _jsx("th", { className: "px-3", children: "Voorverkoop" }), _jsx("th", { className: "px-3", children: "Totaal" }), _jsx("th", { className: "px-3", children: "Doorgedraaid" })] }) }), _jsx("tbody", { children: perVeilbrief.map(({ o, r }) => (_jsxs("tr", { className: "h-[52px] cursor-pointer border-b border-border last:border-0 hover:bg-muted/50", onClick: () => navigate({ to: "/floriday-verkoop/klok/$klokId", params: { klokId: o.id } }), children: [_jsxs("td", { className: "px-4 font-medium", children: [o.klok_nummer, o.herkomst === "floriday" && _jsx("span", { className: "ml-2 text-xs font-normal text-muted-foreground", children: "uit Floriday" })] }), _jsx("td", { className: "px-3 tabular-nums", children: o.veildatum ? fmtNL(o.veildatum, { weekday: "short", day: "numeric", month: "short" }) : "—" }), _jsx("td", { className: "px-3", children: o.veillocatie_naam ?? "—" }), _jsxs("td", { className: "px-3 tabular-nums", children: [r.klokStuks.toLocaleString("nl-NL"), " st \u00B7 ", eur(r.klokBedrag)] }), _jsxs("td", { className: "px-3 tabular-nums", children: [r.voorverkoopStuks.toLocaleString("nl-NL"), " st \u00B7 ", eur(r.voorverkoopBedrag)] }), _jsxs("td", { className: "px-3 tabular-nums font-medium", children: [(r.klokStuks + r.voorverkoopStuks).toLocaleString("nl-NL"), " st \u00B7 ", eur(r.klokBedrag + r.voorverkoopBedrag)] }), _jsxs("td", { className: "px-3 tabular-nums text-muted-foreground", children: [r.doorgedraaidStuks.toLocaleString("nl-NL"), " st"] })] }, o.id))) })] }) })), tab === "resultaat" && (_jsxs("div", { className: "rounded-xl border border-border bg-card p-5 shadow-sm", children: [_jsxs("h2", { className: "mb-3 flex items-center gap-2 text-sm font-semibold", children: [_jsx(Users, { className: "h-4 w-4", "aria-hidden": true }), " Grootste kopers"] }), kpi.top.length === 0 ? (_jsx("p", { className: "text-sm text-muted-foreground", children: "Nog geen verkopen in deze periode." })) : (_jsx("ul", { className: "divide-y divide-border", children: kpi.top.map((k, i) => (_jsxs("li", { className: "flex items-center justify-between gap-3 py-2 text-sm", children: [_jsx("span", { className: "min-w-0 truncate", children: k.naam }), _jsxs("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: [k.stuks.toLocaleString("nl-NL"), " st \u00B7 ", _jsx("span", { className: "text-foreground", children: eur(k.bedrag) })] })] }, i))) }))] })), _jsx(ShortcutHelp, { open: helpOpen, onOpenChange: setHelpOpen, items: KLOK_SNELTOETSEN }), _jsx(FilterPanelShell, { open: filterOpen, onOpenChange: setFilterOpen, activeCount: actief, onClearAll: () => { setLf({}); setKpiFilter(null); }, children: _jsxs("div", { className: "space-y-5", children: [_jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Veillocatie" }), _jsx(SearchableSelect, { value: lf.veillocatie ?? null, allowClear: true, clearLabel: "- Alle veillocaties -", placeholder: "- Alle veillocaties -", className: "h-10 w-full", options: locaties.map((l) => ({ value: String(l.id), label: String(l.displayName ?? l.name) })), onChange: (v) => setLf((f) => ({ ...f, veillocatie: v ?? undefined })) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Status" }), _jsxs(Select, { value: lf.status ?? "all", onValueChange: (v) => { setLf((f) => ({ ...f, status: v === "all" ? undefined : v })); setKpiFilter(v === "concept" ? "concept" : v === "fout" ? "fout" : null); }, children: [_jsx(SelectTrigger, { className: "h-10 w-full", children: _jsx(SelectValue, { placeholder: "- Alle statussen -" }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: "all", children: "- Alle statussen -" }), Object.entries(KLOK_STATUS_LABEL).map(([k, label]) => _jsx(SelectItem, { value: k, children: label }, k))] })] })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Veilgroep" }), _jsx(Input, { inputMode: "numeric", placeholder: "Veilgroep", value: lf.veilgroep ?? "", className: "h-10", onChange: (e) => setLf((f) => ({ ...f, veilgroep: e.target.value.replace(/\D/g, "") || undefined })) })] }), _jsxs("div", { className: "space-y-2", children: [_jsx(Label, { className: "text-sm font-semibold", children: "Artikel" }), _jsx(SearchableSelect, { value: lf.artikel ?? null, allowClear: true, clearLabel: "- Alle artikelen -", placeholder: "- Alle artikelen -", showImages: true, className: "h-10 w-full", options: products.filter((p) => p.source !== "group").map((p) => ({ value: String(p.id), label: String(p.product ?? ""), image: p.image_url ?? null })), onChange: (v) => setLf((f) => ({ ...f, artikel: v ?? undefined })) })] })] }) })] }));
|
|
158
167
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KlokStatusBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokStatusBadge.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"KlokStatusBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/KlokStatusBadge.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,+BASpG"}
|
|
@@ -6,12 +6,12 @@ export declare const KLOK_PATH = "/floriday-verkoop/klok";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function useKlokZichtbaar(): boolean;
|
|
8
8
|
/** Stand van de Floriday-koppeling voor de klokplekken. */
|
|
9
|
-
export declare function useKlokGereed(): import("@tanstack/react-query").UseQueryResult<
|
|
9
|
+
export declare function useKlokGereed(): import("@tanstack/react-query").UseQueryResult<{
|
|
10
10
|
blokkade: string | null;
|
|
11
11
|
koppeling_actief: boolean;
|
|
12
12
|
alleen_lezen: boolean | null;
|
|
13
13
|
recht_versturen: boolean | null;
|
|
14
14
|
omgeving: string | null;
|
|
15
15
|
reden: string | null;
|
|
16
|
-
}
|
|
16
|
+
}, Error>;
|
|
17
17
|
//# sourceMappingURL=useKlok.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKlok.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/useKlok.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,2BAA2B,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAiB1C;AAED,2DAA2D;AAC3D,wBAAgB,aAAa;;;;;;;
|
|
1
|
+
{"version":3,"file":"useKlok.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/klok/useKlok.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,2BAA2B,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAiB1C;AAED,2DAA2D;AAC3D,wBAAgB,aAAa;;;;;;;UAG5B"}
|
|
@@ -6,5 +6,5 @@ export declare function OrderLineExtrasCard({ orderId, pickProgress, pickKnown,
|
|
|
6
6
|
orderId: string;
|
|
7
7
|
pickProgress: PickProgress | null;
|
|
8
8
|
pickKnown: boolean;
|
|
9
|
-
}): import("react
|
|
9
|
+
}): import("react").JSX.Element | null;
|
|
10
10
|
//# sourceMappingURL=OrderLineExtrasCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderLineExtrasCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/OrderLineExtrasCard.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAgGhE,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,SAAS,EACT,oBAAoB,GACrB,EAAE;IACD,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;CACpB,
|
|
1
|
+
{"version":3,"file":"OrderLineExtrasCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/OrderLineExtrasCard.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAgGhE,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,YAAY,EACZ,SAAS,EACT,oBAAoB,GACrB,EAAE;IACD,mFAAmF;IACnF,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAClC,SAAS,EAAE,OAAO,CAAC;CACpB,sCA+EA"}
|
|
@@ -25,5 +25,5 @@ export declare function RegelGegevensVelden({ value, onChange, opties, optiesLad
|
|
|
25
25
|
uploadPad?: string | null;
|
|
26
26
|
/** Alleen stickers (Floriday-orders: de rest wijzig je in Floriday). */
|
|
27
27
|
alleenStickers?: boolean;
|
|
28
|
-
}): import("react
|
|
28
|
+
}): import("react").JSX.Element;
|
|
29
29
|
//# sourceMappingURL=RegelGegevensVelden.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegelGegevensVelden.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/RegelGegevensVelden.tsx"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,kBAAkB,EAEvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAClB,MAAM,gCAAgC,CAAC;AAGxC,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAiBD,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,SAAS,EACT,cAAc,GACf,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAClD,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,iFAAiF;IACjF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"RegelGegevensVelden.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/RegelGegevensVelden.tsx"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,kBAAkB,EAEvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,YAAY,EAClB,MAAM,gCAAgC,CAAC;AAGxC,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAiBD,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,qBAAqB,EACrB,SAAS,EACT,cAAc,GACf,EAAE;IACD,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAClD,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACvC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mEAAmE;IACnE,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,iFAAiF;IACjF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,+BAgHA"}
|
|
@@ -15,5 +15,5 @@ export declare function StickerKeuzeRegels({ value, onChange, keuze, opties, upl
|
|
|
15
15
|
uploadPad: string | null;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
idPrefix: string;
|
|
18
|
-
}): import("react
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
19
|
//# sourceMappingURL=StickerKeuzeRegels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickerKeuzeRegels.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/StickerKeuzeRegels.tsx"],"names":[],"mappings":"AAQA,OAAO,EAOL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAEjB,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AA4FD,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAC9D,EAAE;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACvD,+EAA+E;IAC/E,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB
|
|
1
|
+
{"version":3,"file":"StickerKeuzeRegels.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/regel/StickerKeuzeRegels.tsx"],"names":[],"mappings":"AAQA,OAAO,EAOL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAEjB,KAAK,uBAAuB,EAC7B,MAAM,gCAAgC,CAAC;AAExC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AA4FD,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAC9D,EAAE;IACD,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IACvD,+EAA+E;IAC/E,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACvC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,+BAyBA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function GewijzigdNaPrintCard({ orderRowId, floriday }: {
|
|
2
2
|
orderRowId: string | null;
|
|
3
3
|
floriday: boolean;
|
|
4
|
-
}): import("react
|
|
4
|
+
}): import("react").JSX.Element | null;
|
|
5
5
|
//# sourceMappingURL=GewijzigdNaPrintCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GewijzigdNaPrintCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/GewijzigdNaPrintCard.tsx"],"names":[],"mappings":"AAeA,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"GewijzigdNaPrintCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/GewijzigdNaPrintCard.tsx"],"names":[],"mappings":"AAeA,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,sCAkD9G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderTijdlijnCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/OrderTijdlijnCard.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"OrderTijdlijnCard.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/OrderTijdlijnCard.tsx"],"names":[],"mappings":"AAqBA,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,sCAwC3G"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const tijdlijnKey: (orderRowId: string | null) => readonly ["order-engine-tijdlijn", string | null];
|
|
2
2
|
/** Tijdlijn + "gewijzigd na printen" in één aanroep; gedeeld door beide blokken. */
|
|
3
|
-
export declare function useOrderTijdlijn(orderRowId: string | null, floriday: boolean): import("@tanstack/react-query").UseQueryResult<
|
|
3
|
+
export declare function useOrderTijdlijn(orderRowId: string | null, floriday: boolean): import("@tanstack/react-query").UseQueryResult<{
|
|
4
4
|
orderDbId: string;
|
|
5
5
|
tijdlijn: import("../../../lib/engine-tijdlijn.server.js").Lezen<import("../../../lib/engine-tijdlijn.js").Tijdlijn>;
|
|
6
6
|
gewijzigd: import("../../../lib/engine-tijdlijn.server.js").Lezen<import("../../../lib/engine-tijdlijn.js").GewijzigdNaPrint> | {
|
|
7
7
|
readonly beschikbaar: false;
|
|
8
8
|
};
|
|
9
9
|
magBeslissen: boolean;
|
|
10
|
-
}
|
|
10
|
+
}, Error>;
|
|
11
11
|
//# sourceMappingURL=useOrderTijdlijn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOrderTijdlijn.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/useOrderTijdlijn.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,YAAY,MAAM,GAAG,IAAI,sDAAmD,CAAC;AAEzG,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO;;;;;;;
|
|
1
|
+
{"version":3,"file":"useOrderTijdlijn.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/tijdlijn/useOrderTijdlijn.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,GAAI,YAAY,MAAM,GAAG,IAAI,sDAAmD,CAAC;AAEzG,oFAAoF;AACpF,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO;;;;;;;UAU5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticlesHover.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/ArticlesHover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBzD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"ArticlesHover.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/ArticlesHover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBzD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BA+E5G"}
|
|
@@ -5,5 +5,5 @@ export declare function CustomerName({ name, customerId, linkable, }: {
|
|
|
5
5
|
name: string;
|
|
6
6
|
customerId: string | null | undefined;
|
|
7
7
|
linkable: boolean;
|
|
8
|
-
}): import("react
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
9
|
//# sourceMappingURL=CustomerName.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerName.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/CustomerName.tsx"],"names":[],"mappings":"AAIA,6EAA6E;AAC7E,wBAAgB,mBAAmB,IAAI,OAAO,CAI7C;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB
|
|
1
|
+
{"version":3,"file":"CustomerName.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/CustomerName.tsx"],"names":[],"mappings":"AAIA,6EAA6E;AAC7E,wBAAgB,mBAAmB,IAAI,OAAO,CAI7C;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,QAAQ,EAAE,OAAO,CAAC;CACnB,+BAaA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,MAAM,GACP,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,+BAaA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterChip.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/FilterChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE
|
|
1
|
+
{"version":3,"file":"FilterChip.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/FilterChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,+BAa5G"}
|
|
@@ -11,5 +11,5 @@ export declare function HoverTip({ content, label, children, side, align, classN
|
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
side?: "top" | "bottom" | "left" | "right";
|
|
13
13
|
className?: string;
|
|
14
|
-
}): import("react
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=HoverTip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverTip.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/HoverTip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,KAAgB,EAChB,SAAc,GACf,EAAE;IACD,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB
|
|
1
|
+
{"version":3,"file":"HoverTip.d.ts","sourceRoot":"","sources":["../../../../src/components/verkoop/v3/HoverTip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAY,EACZ,KAAgB,EAChB,SAAc,GACf,EAAE;IACD,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,+BA4CA"}
|