@open-mercato/core 0.10.1-develop.7709.1.046124599c → 0.10.1-develop.7714.1.9dbb8200d8
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/.turbo/turbo-build.log +2 -2
- package/dist/generated/entities/asn/index.js +19 -0
- package/dist/generated/entities/asn/index.js.map +7 -0
- package/dist/generated/entities/putaway_task/index.js +25 -0
- package/dist/generated/entities/putaway_task/index.js.map +7 -0
- package/dist/generated/entities/receiving_line/index.js +21 -0
- package/dist/generated/entities/receiving_line/index.js.map +7 -0
- package/dist/generated/entities.ids.generated.js +4 -1
- package/dist/generated/entities.ids.generated.js.map +2 -2
- package/dist/generated/entity-fields-registry.js +34 -0
- package/dist/generated/entity-fields-registry.js.map +2 -2
- package/dist/modules/communication_channels/lib/sanitize-channel-html.js +22 -3
- package/dist/modules/communication_channels/lib/sanitize-channel-html.js.map +2 -2
- package/dist/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.js +40 -11
- package/dist/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.js.map +2 -2
- package/dist/modules/customers/components/calendar/CalendarEventEditor.js +13 -2
- package/dist/modules/customers/components/calendar/CalendarEventEditor.js.map +2 -2
- package/dist/modules/wms/acl.js +2 -0
- package/dist/modules/wms/acl.js.map +2 -2
- package/dist/modules/wms/api/asns/[id]/complete/route.js +61 -0
- package/dist/modules/wms/api/asns/[id]/complete/route.js.map +7 -0
- package/dist/modules/wms/api/asns/[id]/receive/route.js +68 -0
- package/dist/modules/wms/api/asns/[id]/receive/route.js.map +7 -0
- package/dist/modules/wms/api/asns/route.js +197 -0
- package/dist/modules/wms/api/asns/route.js.map +7 -0
- package/dist/modules/wms/api/inventory/helpers.js +42 -34
- package/dist/modules/wms/api/inventory/helpers.js.map +2 -2
- package/dist/modules/wms/api/inventory/receive/route.js +1 -1
- package/dist/modules/wms/api/inventory/receive/route.js.map +2 -2
- package/dist/modules/wms/api/listEnrichers.js +23 -0
- package/dist/modules/wms/api/listEnrichers.js.map +2 -2
- package/dist/modules/wms/api/putaway-tasks/[id]/assign/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/assign/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/cancel/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/cancel/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/complete/route.js +65 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/complete/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/start/route.js +56 -0
- package/dist/modules/wms/api/putaway-tasks/[id]/start/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/create-from-balance/route.js +51 -0
- package/dist/modules/wms/api/putaway-tasks/create-from-balance/route.js.map +7 -0
- package/dist/modules/wms/api/putaway-tasks/route.js +192 -0
- package/dist/modules/wms/api/putaway-tasks/route.js.map +7 -0
- package/dist/modules/wms/api/receiving-lines/route.js +180 -0
- package/dist/modules/wms/api/receiving-lines/route.js.map +7 -0
- package/dist/modules/wms/api/scan/putaway/route.js +104 -0
- package/dist/modules/wms/api/scan/putaway/route.js.map +7 -0
- package/dist/modules/wms/api/scan/receive/route.js +109 -0
- package/dist/modules/wms/api/scan/receive/route.js.map +7 -0
- package/dist/modules/wms/api/scan/resolve-location/route.js +89 -0
- package/dist/modules/wms/api/scan/resolve-location/route.js.map +7 -0
- package/dist/modules/wms/api/scan/resolve-lot/route.js +89 -0
- package/dist/modules/wms/api/scan/resolve-lot/route.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.js +9 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/asns/[id]/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/page.js +9 -0
- package/dist/modules/wms/backend/wms/asns/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/asns/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/asns/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/putaway/page.js +9 -0
- package/dist/modules/wms/backend/wms/putaway/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/putaway/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/putaway/page.meta.js.map +7 -0
- package/dist/modules/wms/backend/wms/receiving/page.js +8 -0
- package/dist/modules/wms/backend/wms/receiving/page.js.map +7 -0
- package/dist/modules/wms/backend/wms/receiving/page.meta.js +18 -0
- package/dist/modules/wms/backend/wms/receiving/page.meta.js.map +7 -0
- package/dist/modules/wms/ce.js +27 -0
- package/dist/modules/wms/ce.js.map +2 -2
- package/dist/modules/wms/commands/asn.js +1746 -0
- package/dist/modules/wms/commands/asn.js.map +7 -0
- package/dist/modules/wms/commands/index.js +2 -0
- package/dist/modules/wms/commands/index.js.map +2 -2
- package/dist/modules/wms/commands/inventory-actions.js +347 -243
- package/dist/modules/wms/commands/inventory-actions.js.map +2 -2
- package/dist/modules/wms/commands/putaway.js +945 -0
- package/dist/modules/wms/commands/putaway.js.map +7 -0
- package/dist/modules/wms/commands/shared.js +51 -0
- package/dist/modules/wms/commands/shared.js.map +2 -2
- package/dist/modules/wms/components/backend/AssignPutawayTaskDialog.js +278 -0
- package/dist/modules/wms/components/backend/AssignPutawayTaskDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/CompletePutawayTaskDialog.js +327 -0
- package/dist/modules/wms/components/backend/CompletePutawayTaskDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/CreateAsnDialog.js +404 -0
- package/dist/modules/wms/components/backend/CreateAsnDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/InventoryOperationsSection.js +16 -3
- package/dist/modules/wms/components/backend/InventoryOperationsSection.js.map +2 -2
- package/dist/modules/wms/components/backend/ReceiveAsnLineDialog.js +476 -0
- package/dist/modules/wms/components/backend/ReceiveAsnLineDialog.js.map +7 -0
- package/dist/modules/wms/components/backend/ReceiveInventoryDialog.js +2 -2
- package/dist/modules/wms/components/backend/ReceiveInventoryDialog.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsAsnDetailPage.js +524 -0
- package/dist/modules/wms/components/backend/WmsAsnDetailPage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsAsnsListPage.js +339 -0
- package/dist/modules/wms/components/backend/WmsAsnsListPage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsLocationDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsLotDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsOperationalDashboardPage.js +14 -10
- package/dist/modules/wms/components/backend/WmsOperationalDashboardPage.js.map +2 -2
- package/dist/modules/wms/components/backend/WmsPutawayQueuePage.js +598 -0
- package/dist/modules/wms/components/backend/WmsPutawayQueuePage.js.map +7 -0
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js +5 -6
- package/dist/modules/wms/components/backend/WmsSkuDetailPage.js.map +2 -2
- package/dist/modules/wms/components/backend/asnCompleteOptimisticLock.js +32 -0
- package/dist/modules/wms/components/backend/asnCompleteOptimisticLock.js.map +7 -0
- package/dist/modules/wms/components/backend/asnReceivingLinesLoader.js +36 -0
- package/dist/modules/wms/components/backend/asnReceivingLinesLoader.js.map +7 -0
- package/dist/modules/wms/components/backend/inboundStatusUi.js +106 -0
- package/dist/modules/wms/components/backend/inboundStatusUi.js.map +7 -0
- package/dist/modules/wms/components/backend/inventoryMutationLoaders.js +17 -0
- package/dist/modules/wms/components/backend/inventoryMutationLoaders.js.map +2 -2
- package/dist/modules/wms/components/backend/putawayQueueOptimisticLock.js +14 -0
- package/dist/modules/wms/components/backend/putawayQueueOptimisticLock.js.map +7 -0
- package/dist/modules/wms/components/backend/useWmsInventoryMutationAccess.js +4 -0
- package/dist/modules/wms/components/backend/useWmsInventoryMutationAccess.js.map +2 -2
- package/dist/modules/wms/data/enrichers.js +117 -12
- package/dist/modules/wms/data/enrichers.js.map +2 -2
- package/dist/modules/wms/data/entities.js +150 -1
- package/dist/modules/wms/data/entities.js.map +2 -2
- package/dist/modules/wms/data/validators.js +214 -0
- package/dist/modules/wms/data/validators.js.map +2 -2
- package/dist/modules/wms/events.js +12 -1
- package/dist/modules/wms/events.js.map +2 -2
- package/dist/modules/wms/extension-points.js +3 -1
- package/dist/modules/wms/extension-points.js.map +2 -2
- package/dist/modules/wms/lib/asnReceiving.js +124 -0
- package/dist/modules/wms/lib/asnReceiving.js.map +7 -0
- package/dist/modules/wms/lib/asnVendor.js +52 -0
- package/dist/modules/wms/lib/asnVendor.js.map +7 -0
- package/dist/modules/wms/lib/flashMutationError.js +4 -0
- package/dist/modules/wms/lib/flashMutationError.js.map +2 -2
- package/dist/modules/wms/lib/inventoryDisplayUi.js +24 -0
- package/dist/modules/wms/lib/inventoryDisplayUi.js.map +2 -2
- package/dist/modules/wms/lib/inventoryPolicy.js +17 -0
- package/dist/modules/wms/lib/inventoryPolicy.js.map +2 -2
- package/dist/modules/wms/lib/loadOperationalDashboard.js +67 -1
- package/dist/modules/wms/lib/loadOperationalDashboard.js.map +2 -2
- package/dist/modules/wms/lib/putaway.js +141 -0
- package/dist/modules/wms/lib/putaway.js.map +7 -0
- package/dist/modules/wms/lib/roleFeatures.js +3 -1
- package/dist/modules/wms/lib/roleFeatures.js.map +2 -2
- package/dist/modules/wms/lib/salesOrderInventoryAutomation.js +99 -1
- package/dist/modules/wms/lib/salesOrderInventoryAutomation.js.map +2 -2
- package/dist/modules/wms/lib/scanResolve.js +147 -0
- package/dist/modules/wms/lib/scanResolve.js.map +7 -0
- package/dist/modules/wms/lib/wmsIntegrationToggles.js +1 -1
- package/dist/modules/wms/lib/wmsIntegrationToggles.js.map +2 -2
- package/dist/modules/wms/migrations/Migration20260812120000.js +43 -0
- package/dist/modules/wms/migrations/Migration20260812120000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260812130000.js +30 -0
- package/dist/modules/wms/migrations/Migration20260812130000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260822120000.js +17 -0
- package/dist/modules/wms/migrations/Migration20260822120000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20260822130000.js +17 -0
- package/dist/modules/wms/migrations/Migration20260822130000.js.map +7 -0
- package/dist/modules/wms/migrations/Migration20261029120000.js +13 -0
- package/dist/modules/wms/migrations/Migration20261029120000.js.map +7 -0
- package/dist/modules/wms/search.js +85 -0
- package/dist/modules/wms/search.js.map +2 -2
- package/dist/modules/wms/subscribers/asn-line-received-reevaluate-reservations.js +14 -0
- package/dist/modules/wms/subscribers/asn-line-received-reevaluate-reservations.js.map +7 -0
- package/dist/modules/wms/subscribers/invalidate-enricher-cache-asn.js +12 -0
- package/dist/modules/wms/subscribers/invalidate-enricher-cache-asn.js.map +7 -0
- package/dist/modules/wms/subscribers/procurement-goods-receipt-created.js +163 -0
- package/dist/modules/wms/subscribers/procurement-goods-receipt-created.js.map +7 -0
- package/dist/modules/wms/subscribers/putaway-completed-reevaluate-reservations.js +14 -0
- package/dist/modules/wms/subscribers/putaway-completed-reevaluate-reservations.js.map +7 -0
- package/dist/modules/wms/widgets/injection/sales-order-stock-context/widget.client.js +37 -8
- package/dist/modules/wms/widgets/injection/sales-order-stock-context/widget.client.js.map +2 -2
- package/generated/entities/asn/index.ts +8 -0
- package/generated/entities/putaway_task/index.ts +11 -0
- package/generated/entities/receiving_line/index.ts +9 -0
- package/generated/entities.ids.generated.ts +4 -1
- package/generated/entity-fields-registry.ts +34 -0
- package/package.json +7 -7
- package/src/modules/auth/i18n/de.json +2 -0
- package/src/modules/auth/i18n/en.json +2 -0
- package/src/modules/auth/i18n/es.json +2 -0
- package/src/modules/auth/i18n/ko.json +2 -0
- package/src/modules/auth/i18n/pl.json +2 -0
- package/src/modules/communication_channels/i18n/de.json +2 -0
- package/src/modules/communication_channels/i18n/en.json +2 -0
- package/src/modules/communication_channels/i18n/es.json +2 -0
- package/src/modules/communication_channels/i18n/ko.json +2 -0
- package/src/modules/communication_channels/i18n/pl.json +2 -0
- package/src/modules/communication_channels/lib/sanitize-channel-html.ts +23 -3
- package/src/modules/communication_channels/widgets/injection/channel-payload-renderer/widget.client.tsx +44 -12
- package/src/modules/customers/components/calendar/CalendarEventEditor.tsx +16 -2
- package/src/modules/wms/acl.ts +2 -0
- package/src/modules/wms/api/asns/[id]/complete/route.ts +62 -0
- package/src/modules/wms/api/asns/[id]/receive/route.ts +74 -0
- package/src/modules/wms/api/asns/route.ts +200 -0
- package/src/modules/wms/api/inventory/helpers.ts +57 -34
- package/src/modules/wms/api/inventory/receive/route.ts +2 -1
- package/src/modules/wms/api/listEnrichers.ts +38 -0
- package/src/modules/wms/api/putaway-tasks/[id]/assign/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/[id]/cancel/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/[id]/complete/route.ts +66 -0
- package/src/modules/wms/api/putaway-tasks/[id]/start/route.ts +56 -0
- package/src/modules/wms/api/putaway-tasks/create-from-balance/route.ts +50 -0
- package/src/modules/wms/api/putaway-tasks/route.ts +199 -0
- package/src/modules/wms/api/receiving-lines/route.ts +180 -0
- package/src/modules/wms/api/scan/putaway/route.ts +108 -0
- package/src/modules/wms/api/scan/receive/route.ts +118 -0
- package/src/modules/wms/api/scan/resolve-location/route.ts +92 -0
- package/src/modules/wms/api/scan/resolve-lot/route.ts +92 -0
- package/src/modules/wms/backend/wms/asns/[id]/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/asns/[id]/page.tsx +5 -0
- package/src/modules/wms/backend/wms/asns/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/asns/page.tsx +5 -0
- package/src/modules/wms/backend/wms/putaway/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/putaway/page.tsx +5 -0
- package/src/modules/wms/backend/wms/receiving/page.meta.ts +14 -0
- package/src/modules/wms/backend/wms/receiving/page.tsx +5 -0
- package/src/modules/wms/ce.ts +27 -0
- package/src/modules/wms/commands/asn.ts +2122 -0
- package/src/modules/wms/commands/index.ts +2 -0
- package/src/modules/wms/commands/inventory-actions.ts +413 -243
- package/src/modules/wms/commands/putaway.ts +1169 -0
- package/src/modules/wms/commands/shared.ts +51 -0
- package/src/modules/wms/components/backend/AssignPutawayTaskDialog.tsx +328 -0
- package/src/modules/wms/components/backend/CompletePutawayTaskDialog.tsx +366 -0
- package/src/modules/wms/components/backend/CreateAsnDialog.tsx +427 -0
- package/src/modules/wms/components/backend/InventoryOperationsSection.tsx +20 -2
- package/src/modules/wms/components/backend/ReceiveAsnLineDialog.tsx +535 -0
- package/src/modules/wms/components/backend/ReceiveInventoryDialog.tsx +2 -2
- package/src/modules/wms/components/backend/WmsAsnDetailPage.tsx +647 -0
- package/src/modules/wms/components/backend/WmsAsnsListPage.tsx +407 -0
- package/src/modules/wms/components/backend/WmsLocationDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/WmsLotDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/WmsOperationalDashboardPage.tsx +12 -8
- package/src/modules/wms/components/backend/WmsPutawayQueuePage.tsx +677 -0
- package/src/modules/wms/components/backend/WmsSkuDetailPage.tsx +4 -5
- package/src/modules/wms/components/backend/asnCompleteOptimisticLock.ts +52 -0
- package/src/modules/wms/components/backend/asnReceivingLinesLoader.ts +83 -0
- package/src/modules/wms/components/backend/inboundStatusUi.ts +154 -0
- package/src/modules/wms/components/backend/inventoryMutationLoaders.ts +20 -0
- package/src/modules/wms/components/backend/putawayQueueOptimisticLock.ts +20 -0
- package/src/modules/wms/components/backend/useWmsInventoryMutationAccess.ts +4 -0
- package/src/modules/wms/data/enrichers.ts +175 -13
- package/src/modules/wms/data/entities.ts +155 -0
- package/src/modules/wms/data/validators.ts +256 -0
- package/src/modules/wms/events.ts +11 -0
- package/src/modules/wms/extension-points.ts +2 -0
- package/src/modules/wms/i18n/de.json +205 -3
- package/src/modules/wms/i18n/en.json +205 -3
- package/src/modules/wms/i18n/es.json +205 -3
- package/src/modules/wms/i18n/ko.json +205 -3
- package/src/modules/wms/i18n/pl.json +205 -3
- package/src/modules/wms/lib/asnReceiving.ts +226 -0
- package/src/modules/wms/lib/asnVendor.ts +80 -0
- package/src/modules/wms/lib/flashMutationError.ts +4 -0
- package/src/modules/wms/lib/inventoryDisplayUi.ts +46 -0
- package/src/modules/wms/lib/inventoryPolicy.ts +31 -1
- package/src/modules/wms/lib/loadOperationalDashboard.ts +89 -1
- package/src/modules/wms/lib/putaway.ts +210 -0
- package/src/modules/wms/lib/roleFeatures.ts +2 -0
- package/src/modules/wms/lib/salesOrderInventoryAutomation.ts +150 -1
- package/src/modules/wms/lib/scanResolve.ts +185 -0
- package/src/modules/wms/lib/wmsIntegrationToggles.ts +2 -1
- package/src/modules/wms/migrations/.snapshot-open-mercato.json +1000 -0
- package/src/modules/wms/migrations/Migration20260812120000.ts +43 -0
- package/src/modules/wms/migrations/Migration20260812130000.ts +28 -0
- package/src/modules/wms/migrations/Migration20260822120000.ts +17 -0
- package/src/modules/wms/migrations/Migration20260822130000.ts +15 -0
- package/src/modules/wms/migrations/Migration20261029120000.ts +11 -0
- package/src/modules/wms/search.ts +95 -0
- package/src/modules/wms/subscribers/asn-line-received-reevaluate-reservations.ts +21 -0
- package/src/modules/wms/subscribers/invalidate-enricher-cache-asn.ts +12 -0
- package/src/modules/wms/subscribers/procurement-goods-receipt-created.ts +238 -0
- package/src/modules/wms/subscribers/putaway-completed-reevaluate-reservations.ts +21 -0
- package/src/modules/wms/widgets/injection/sales-order-stock-context/widget.client.tsx +63 -13
|
@@ -4,10 +4,129 @@
|
|
|
4
4
|
"search.entityType.wms.product_inventory_profile": "Profil zapasu",
|
|
5
5
|
"search.entityType.wms.warehouse": "Magazyn",
|
|
6
6
|
"search.entityType.wms.warehouse_location": "Lokalizacja",
|
|
7
|
+
"wms.asns.create": "Utwórz ASN",
|
|
8
|
+
"wms.asns.title": "ASNs",
|
|
9
|
+
"wms.audit.asn.close": "Complete ASN",
|
|
10
|
+
"wms.audit.asn.create": "Create ASN",
|
|
11
|
+
"wms.audit.asn.delete": "Delete ASN",
|
|
12
|
+
"wms.audit.asn.receiveLine": "Receive ASN line",
|
|
13
|
+
"wms.audit.asn.update": "Update ASN",
|
|
7
14
|
"wms.audit.inventory.receive": "Przyjmij zapas",
|
|
15
|
+
"wms.audit.putaway.assign": "Przypisz zadanie odkładania",
|
|
16
|
+
"wms.audit.putaway.cancel": "Anuluj zadanie odkładania",
|
|
17
|
+
"wms.audit.putaway.complete": "Zakończ zadanie odkładania",
|
|
18
|
+
"wms.audit.putaway.create": "Utwórz zadanie odkładania",
|
|
19
|
+
"wms.audit.putaway.createFromBalance": "Utwórz zadanie odkładania ze stanu",
|
|
20
|
+
"wms.audit.putaway.delete": "Usuń zadanie odkładania",
|
|
21
|
+
"wms.audit.putaway.start": "Rozpocznij zadanie odkładania",
|
|
22
|
+
"wms.audit.putaway.update": "Aktualizuj zadanie odkładania",
|
|
23
|
+
"wms.audit.receivingLine.create": "Create receiving line",
|
|
24
|
+
"wms.audit.receivingLine.delete": "Delete receiving line",
|
|
25
|
+
"wms.audit.receivingLine.update": "Update receiving line",
|
|
8
26
|
"wms.audit.salesOrder.assignWarehouse": "Przypisz magazyn do zamówienia",
|
|
9
27
|
"wms.audit.salesOrder.reRunReservation": "Ponów rezerwację dla zamówienia",
|
|
10
28
|
"wms.audit.salesOrder.unassignWarehouse": "Usuń przypisanie magazynu do zamówienia",
|
|
29
|
+
"wms.backend.asns.actions.create": "Create ASN",
|
|
30
|
+
"wms.backend.asns.actions.open": "Open receiving",
|
|
31
|
+
"wms.backend.asns.actions.putawayQueue": "Putaway queue",
|
|
32
|
+
"wms.backend.asns.columns.expectedAt": "Expected",
|
|
33
|
+
"wms.backend.asns.columns.reference": "Reference",
|
|
34
|
+
"wms.backend.asns.columns.status": "Status",
|
|
35
|
+
"wms.backend.asns.columns.warehouse": "Warehouse",
|
|
36
|
+
"wms.backend.asns.complete.closeWhenShort": "Allow close when short",
|
|
37
|
+
"wms.backend.asns.complete.confirm.cancel": "Cancel",
|
|
38
|
+
"wms.backend.asns.complete.confirm.description": "Mark this ASN as received when receiving is finished.",
|
|
39
|
+
"wms.backend.asns.complete.confirm.descriptionShort": "Close this ASN even if some lines are short of expected quantity.",
|
|
40
|
+
"wms.backend.asns.complete.confirm.submit": "Complete ASN",
|
|
41
|
+
"wms.backend.asns.complete.confirm.title": "Complete ASN?",
|
|
42
|
+
"wms.backend.asns.complete.errors.submit": "Failed to complete ASN.",
|
|
43
|
+
"wms.backend.asns.complete.flash.success": "ASN completed",
|
|
44
|
+
"wms.backend.asns.create.dialog.cancel": "Cancel",
|
|
45
|
+
"wms.backend.asns.create.dialog.description": "Create an expected inbound shipment with receiving lines.",
|
|
46
|
+
"wms.backend.asns.create.dialog.shortcutHint": "to save",
|
|
47
|
+
"wms.backend.asns.create.dialog.submit": "Create ASN",
|
|
48
|
+
"wms.backend.asns.create.dialog.title": "Create ASN",
|
|
49
|
+
"wms.backend.asns.create.errors.submit": "Failed to create ASN.",
|
|
50
|
+
"wms.backend.asns.create.flash.success": "ASN created",
|
|
51
|
+
"wms.backend.asns.create.form.addLine": "Add line",
|
|
52
|
+
"wms.backend.asns.create.form.expectedAt": "Expected date",
|
|
53
|
+
"wms.backend.asns.create.form.expectedQty": "Expected qty",
|
|
54
|
+
"wms.backend.asns.create.form.lines": "Expected lines",
|
|
55
|
+
"wms.backend.asns.create.form.notes": "Notes",
|
|
56
|
+
"wms.backend.asns.create.form.referenceNumber": "Reference",
|
|
57
|
+
"wms.backend.asns.create.form.referencePlaceholder": "PO / ASN ref",
|
|
58
|
+
"wms.backend.asns.create.form.staging": "Staging location",
|
|
59
|
+
"wms.backend.asns.create.form.stagingPlaceholder": "Optional staging/dock",
|
|
60
|
+
"wms.backend.asns.create.form.variant": "Variant",
|
|
61
|
+
"wms.backend.asns.create.form.variantPlaceholder": "Search variant or SKU",
|
|
62
|
+
"wms.backend.asns.create.form.warehouse": "Warehouse",
|
|
63
|
+
"wms.backend.asns.create.form.warehousePlaceholder": "Select warehouse",
|
|
64
|
+
"wms.backend.asns.description": "Advance shipping notices and inbound receiving.",
|
|
65
|
+
"wms.backend.asns.detail.actions.complete": "Complete ASN",
|
|
66
|
+
"wms.backend.asns.detail.actions.receive": "Receive line",
|
|
67
|
+
"wms.backend.asns.detail.back": "Back to ASNs",
|
|
68
|
+
"wms.backend.asns.detail.columns.expected": "Expected",
|
|
69
|
+
"wms.backend.asns.detail.columns.qc": "QC",
|
|
70
|
+
"wms.backend.asns.detail.columns.received": "Received",
|
|
71
|
+
"wms.backend.asns.detail.columns.staging": "Staging",
|
|
72
|
+
"wms.backend.asns.detail.columns.variant": "Variant",
|
|
73
|
+
"wms.backend.asns.detail.description": "Primary receiving console for ASN lines, QC, and discrepancies.",
|
|
74
|
+
"wms.backend.asns.detail.discrepancy.description": "{count} line(s) have received quantity different from expected.",
|
|
75
|
+
"wms.backend.asns.detail.discrepancy.title": "Quantity discrepancies",
|
|
76
|
+
"wms.backend.asns.detail.emptyLines.description": "This ASN has no expected lines yet.",
|
|
77
|
+
"wms.backend.asns.detail.emptyLines.title": "No receiving lines",
|
|
78
|
+
"wms.backend.asns.detail.errors.load": "Failed to load ASN.",
|
|
79
|
+
"wms.backend.asns.detail.errors.loadLines": "Failed to load receiving lines.",
|
|
80
|
+
"wms.backend.asns.detail.linesDescription": "Receive against expected quantities with QC pass or fail.",
|
|
81
|
+
"wms.backend.asns.detail.linesTitle": "Receiving lines",
|
|
82
|
+
"wms.backend.asns.detail.loading": "Loading ASN…",
|
|
83
|
+
"wms.backend.asns.detail.nav.title": "ASN detail",
|
|
84
|
+
"wms.backend.asns.detail.notFound": "ASN not found.",
|
|
85
|
+
"wms.backend.asns.detail.qcFailed.description": "{count} line(s) failed QC and did not increase available stock.",
|
|
86
|
+
"wms.backend.asns.detail.qcFailed.title": "QC failed lines",
|
|
87
|
+
"wms.backend.asns.detail.untitled": "ASN {id}",
|
|
88
|
+
"wms.backend.asns.empty.description": "Create an ASN to start expected inbound receiving.",
|
|
89
|
+
"wms.backend.asns.empty.title": "No ASNs",
|
|
90
|
+
"wms.backend.asns.errors.load": "Failed to load ASNs.",
|
|
91
|
+
"wms.backend.asns.filters.statusAll": "All statuses",
|
|
92
|
+
"wms.backend.asns.filters.statusOpen": "Open receiving",
|
|
93
|
+
"wms.backend.asns.filters.warehouse": "Warehouse",
|
|
94
|
+
"wms.backend.asns.filters.warehouseAll": "All warehouses",
|
|
95
|
+
"wms.backend.asns.loading": "Loading ASNs…",
|
|
96
|
+
"wms.backend.asns.nav.title": "ASNs",
|
|
97
|
+
"wms.backend.asns.qc.failed": "Failed",
|
|
98
|
+
"wms.backend.asns.qc.passed": "Passed",
|
|
99
|
+
"wms.backend.asns.qc.pending": "Pending",
|
|
100
|
+
"wms.backend.asns.receive.dialog.cancel": "Cancel",
|
|
101
|
+
"wms.backend.asns.receive.dialog.description": "Record accepted or rejected quantity against the expected ASN line.",
|
|
102
|
+
"wms.backend.asns.receive.dialog.shortcutHint": "to receive",
|
|
103
|
+
"wms.backend.asns.receive.dialog.submit": "Receive line",
|
|
104
|
+
"wms.backend.asns.receive.dialog.title": "Receive ASN line",
|
|
105
|
+
"wms.backend.asns.receive.errors.duplicateSerial": "Zduplikowane numery seryjne są niedozwolone.",
|
|
106
|
+
"wms.backend.asns.receive.errors.rejectionRequired": "Rejection reason is required for QC fail.",
|
|
107
|
+
"wms.backend.asns.receive.errors.serialCount": "Liczba numerów seryjnych musi odpowiadać przyjętej ilości.",
|
|
108
|
+
"wms.backend.asns.receive.errors.stagingRequired": "Staging location is required for QC pass.",
|
|
109
|
+
"wms.backend.asns.receive.errors.submit": "Failed to receive ASN line.",
|
|
110
|
+
"wms.backend.asns.receive.flash.qcFailed": "ASN line recorded with QC fail",
|
|
111
|
+
"wms.backend.asns.receive.flash.success": "ASN line received",
|
|
112
|
+
"wms.backend.asns.receive.form.lotNumber": "Lot number",
|
|
113
|
+
"wms.backend.asns.receive.form.qcStatus": "QC outcome",
|
|
114
|
+
"wms.backend.asns.receive.form.receivedQty": "Received quantity",
|
|
115
|
+
"wms.backend.asns.receive.form.rejectionReason": "Rejection reason",
|
|
116
|
+
"wms.backend.asns.receive.form.serialNumbers": "Numery seryjne",
|
|
117
|
+
"wms.backend.asns.receive.form.serialNumbersHint": "Tylko ta partia, jeden w wierszu. Nie powtarzaj numerów już przyjętych. Liczba musi odpowiadać tej ilości.",
|
|
118
|
+
"wms.backend.asns.receive.form.serialNumbersPlaceholder": "Wpisz jeden numer seryjny w wierszu",
|
|
119
|
+
"wms.backend.asns.receive.form.staging": "Staging location",
|
|
120
|
+
"wms.backend.asns.receive.form.stagingPlaceholder": "Select staging or dock",
|
|
121
|
+
"wms.backend.asns.receive.summary.alreadyReceivedSerials": "Już przyjęte",
|
|
122
|
+
"wms.backend.asns.receive.summary.expected": "Expected",
|
|
123
|
+
"wms.backend.asns.receive.summary.received": "Received",
|
|
124
|
+
"wms.backend.asns.search": "Search ASNs",
|
|
125
|
+
"wms.backend.asns.status.closed": "Closed",
|
|
126
|
+
"wms.backend.asns.status.draft": "Draft",
|
|
127
|
+
"wms.backend.asns.status.in_transit": "In transit",
|
|
128
|
+
"wms.backend.asns.status.received": "Received",
|
|
129
|
+
"wms.backend.asns.title": "ASNs",
|
|
11
130
|
"wms.backend.config.actions.addLocation": "Dodaj lokalizację",
|
|
12
131
|
"wms.backend.config.actions.addProfile": "Dodaj profil",
|
|
13
132
|
"wms.backend.config.actions.addWarehouse": "Dodaj magazyn",
|
|
@@ -138,6 +257,7 @@
|
|
|
138
257
|
"wms.backend.dashboard.activity.columns.time": "Czas",
|
|
139
258
|
"wms.backend.dashboard.activity.empty": "Brak ostatnich ruchów magazynowych.",
|
|
140
259
|
"wms.backend.dashboard.activity.open": "Otwórz ruch",
|
|
260
|
+
"wms.backend.dashboard.activity.reasons.asnReceive": "Przyjęcie (z ASN)",
|
|
141
261
|
"wms.backend.dashboard.activity.reasons.cycleCount": "Inwentaryzacja",
|
|
142
262
|
"wms.backend.dashboard.activity.title": "Ostatnia aktywność",
|
|
143
263
|
"wms.backend.dashboard.activity.titles.adjusted": "Skorygowano {quantity}× {sku}",
|
|
@@ -539,11 +659,12 @@
|
|
|
539
659
|
"wms.backend.inventory.operations.description": "Przyjmij przychodzący towar, zarezerwuj lub przesuń zapas, zaksięguj korekty lub uruchom inwentaryzację.",
|
|
540
660
|
"wms.backend.inventory.operations.import": "Import z CSV",
|
|
541
661
|
"wms.backend.inventory.operations.move": "Przesuń towar",
|
|
542
|
-
"wms.backend.inventory.operations.receive": "
|
|
662
|
+
"wms.backend.inventory.operations.receive": "Receive stock (no ASN)",
|
|
663
|
+
"wms.backend.inventory.operations.receiveAsn": "Receive ASN",
|
|
543
664
|
"wms.backend.inventory.operations.reserve": "Rezerwuj",
|
|
544
665
|
"wms.backend.inventory.operations.title": "Operacje magazynowe",
|
|
545
|
-
"wms.backend.inventory.receive.dialog.description": "
|
|
546
|
-
"wms.backend.inventory.receive.dialog.title": "
|
|
666
|
+
"wms.backend.inventory.receive.dialog.description": "Ad-hoc inbound receipt without an ASN. Use ASN receiving for expected shipments.",
|
|
667
|
+
"wms.backend.inventory.receive.dialog.title": "Receive inventory (no ASN)",
|
|
547
668
|
"wms.backend.inventory.receive.errors.lot": "Nie udało się rozpoznać partii zapasu.",
|
|
548
669
|
"wms.backend.inventory.receive.errors.lotRequired": "Numer partii jest wymagany dla tego wariantu.",
|
|
549
670
|
"wms.backend.inventory.receive.errors.quantityPositive": "Ilość musi być większa od zera.",
|
|
@@ -883,6 +1004,68 @@
|
|
|
883
1004
|
"wms.backend.lots.title.pastDue": "Partie przeterminowane",
|
|
884
1005
|
"wms.backend.movements.nav.title": "Ruchy",
|
|
885
1006
|
"wms.backend.nav.title": "WMS",
|
|
1007
|
+
"wms.backend.putaway.actions.asns": "ASNs",
|
|
1008
|
+
"wms.backend.putaway.actions.assign": "Assign…",
|
|
1009
|
+
"wms.backend.putaway.actions.assignMe": "Assign to me",
|
|
1010
|
+
"wms.backend.putaway.actions.cancel": "Cancel",
|
|
1011
|
+
"wms.backend.putaway.actions.complete": "Complete",
|
|
1012
|
+
"wms.backend.putaway.actions.manualPutaway": "Manual put away",
|
|
1013
|
+
"wms.backend.putaway.actions.start": "Start",
|
|
1014
|
+
"wms.backend.putaway.assign.dialog.assigneeLocked": "Only the current user can be assigned without user-directory access.",
|
|
1015
|
+
"wms.backend.putaway.assign.dialog.assigneePlaceholder": "Select assignee",
|
|
1016
|
+
"wms.backend.putaway.assign.dialog.description": "Choose who should complete this putaway task.",
|
|
1017
|
+
"wms.backend.putaway.assign.dialog.title": "Assign putaway task",
|
|
1018
|
+
"wms.backend.putaway.assign.errors.assignee": "Select an assignee.",
|
|
1019
|
+
"wms.backend.putaway.assignee.me": "Me",
|
|
1020
|
+
"wms.backend.putaway.assignee.unassigned": "Unassigned",
|
|
1021
|
+
"wms.backend.putaway.cancel.confirm.description": "The task will be cancelled and will no longer appear in the active queue.",
|
|
1022
|
+
"wms.backend.putaway.cancel.confirm.keep": "Keep task",
|
|
1023
|
+
"wms.backend.putaway.cancel.confirm.submit": "Cancel task",
|
|
1024
|
+
"wms.backend.putaway.cancel.confirm.title": "Cancel putaway task?",
|
|
1025
|
+
"wms.backend.putaway.columns.aging": "Aging",
|
|
1026
|
+
"wms.backend.putaway.columns.assignee": "Assignee",
|
|
1027
|
+
"wms.backend.putaway.columns.quantity": "Qty",
|
|
1028
|
+
"wms.backend.putaway.columns.serial": "Numer seryjny",
|
|
1029
|
+
"wms.backend.putaway.columns.source": "Source",
|
|
1030
|
+
"wms.backend.putaway.columns.status": "Status",
|
|
1031
|
+
"wms.backend.putaway.columns.target": "Target",
|
|
1032
|
+
"wms.backend.putaway.columns.variant": "Variant",
|
|
1033
|
+
"wms.backend.putaway.complete.dialog.cancel": "Cancel",
|
|
1034
|
+
"wms.backend.putaway.complete.dialog.description": "Confirm quantity and destination bin to move stock from staging.",
|
|
1035
|
+
"wms.backend.putaway.complete.dialog.shortcutHint": "to complete",
|
|
1036
|
+
"wms.backend.putaway.complete.dialog.submit": "Complete putaway",
|
|
1037
|
+
"wms.backend.putaway.complete.dialog.title": "Complete putaway",
|
|
1038
|
+
"wms.backend.putaway.complete.errors.serialMismatch": "Zeskanowany numer seryjny nie pasuje do tego zadania.",
|
|
1039
|
+
"wms.backend.putaway.complete.errors.submit": "Failed to complete putaway task.",
|
|
1040
|
+
"wms.backend.putaway.complete.flash.success": "Putaway completed",
|
|
1041
|
+
"wms.backend.putaway.complete.form.quantity": "Confirmed quantity",
|
|
1042
|
+
"wms.backend.putaway.complete.form.serial": "Numer seryjny",
|
|
1043
|
+
"wms.backend.putaway.complete.form.serialConfirm": "Potwierdź numer seryjny",
|
|
1044
|
+
"wms.backend.putaway.complete.form.serialConfirmHint": "Zeskanuj lub wpisz numer ze sztuki. Musi pasować do tego zadania.",
|
|
1045
|
+
"wms.backend.putaway.complete.form.target": "Target location",
|
|
1046
|
+
"wms.backend.putaway.complete.form.targetPlaceholder": "Select destination bin",
|
|
1047
|
+
"wms.backend.putaway.description": "Open and in-progress putaway tasks from accepted receipts.",
|
|
1048
|
+
"wms.backend.putaway.empty.description": "Tasks appear after ASN lines are received with QC pass.",
|
|
1049
|
+
"wms.backend.putaway.empty.title": "No putaway tasks",
|
|
1050
|
+
"wms.backend.putaway.errors.action": "Failed to update putaway task.",
|
|
1051
|
+
"wms.backend.putaway.errors.load": "Failed to load putaway tasks.",
|
|
1052
|
+
"wms.backend.putaway.filters.active": "Open + in progress",
|
|
1053
|
+
"wms.backend.putaway.filters.all": "All statuses",
|
|
1054
|
+
"wms.backend.putaway.flash.assigned": "Putaway task assigned",
|
|
1055
|
+
"wms.backend.putaway.flash.cancelled": "Putaway task cancelled",
|
|
1056
|
+
"wms.backend.putaway.flash.started": "Putaway task started",
|
|
1057
|
+
"wms.backend.putaway.loading": "Loading putaway tasks…",
|
|
1058
|
+
"wms.backend.putaway.nav.title": "Putaway",
|
|
1059
|
+
"wms.backend.putaway.section.description": "Filter and complete open or in-progress putaway work.",
|
|
1060
|
+
"wms.backend.putaway.section.title": "Tasks",
|
|
1061
|
+
"wms.backend.putaway.status.cancelled": "Cancelled",
|
|
1062
|
+
"wms.backend.putaway.status.done": "Done",
|
|
1063
|
+
"wms.backend.putaway.status.in_progress": "In progress",
|
|
1064
|
+
"wms.backend.putaway.status.open": "Open",
|
|
1065
|
+
"wms.backend.putaway.title": "Putaway queue",
|
|
1066
|
+
"wms.backend.receiving.description": "Open and in-transit ASNs ready for receiving.",
|
|
1067
|
+
"wms.backend.receiving.nav.title": "Receiving",
|
|
1068
|
+
"wms.backend.receiving.title": "Receiving queue",
|
|
886
1069
|
"wms.backend.reservations.nav.title": "Rezerwacje",
|
|
887
1070
|
"wms.backend.sku.actions.adjust": "Korekta stanu",
|
|
888
1071
|
"wms.backend.sku.actions.backToInventory": "Wróć do zapasów",
|
|
@@ -978,14 +1161,20 @@
|
|
|
978
1161
|
"wms.errors.forbidden.adjustInventory": "Nie masz uprawnień do korygowania lub przenoszenia zapasów.",
|
|
979
1162
|
"wms.errors.forbidden.cycleCount": "Nie masz uprawnień do przeprowadzania inwentaryzacji cyklicznych.",
|
|
980
1163
|
"wms.errors.forbidden.import": "Nie masz uprawnień do importowania zapasów.",
|
|
1164
|
+
"wms.errors.forbidden.manageAsn": "Nie masz uprawnień do zarządzania ASN.",
|
|
981
1165
|
"wms.errors.forbidden.manageInventory": "Nie masz uprawnień do zarządzania profilami zapasów.",
|
|
982
1166
|
"wms.errors.forbidden.manageLocations": "Nie masz uprawnień do zarządzania lokalizacjami magazynowymi.",
|
|
1167
|
+
"wms.errors.forbidden.managePutaway": "Nie masz uprawnień do zarządzania zadaniami odkładania.",
|
|
983
1168
|
"wms.errors.forbidden.manageReservations": "Nie masz uprawnień do zarządzania rezerwacjami zapasów.",
|
|
984
1169
|
"wms.errors.forbidden.manageWarehouses": "Nie masz uprawnień do zarządzania magazynami.",
|
|
985
1170
|
"wms.errors.forbidden.manageZones": "Nie masz uprawnień do zarządzania strefami magazynowymi.",
|
|
986
1171
|
"wms.errors.forbidden.receiveInventory": "Nie masz uprawnień do przyjmowania towaru przychodzącego.",
|
|
987
1172
|
"wms.errors.internalServerError": "Błąd wewnętrzny serwera",
|
|
1173
|
+
"wms.errors.invalidPutawayState": "Tego zadania odkładania nie można zaktualizować w bieżącym stanie.",
|
|
1174
|
+
"wms.errors.invalidQcTransition": "Ta zmiana statusu QC nie jest dozwolona dla tej linii przyjęcia.",
|
|
1175
|
+
"wms.errors.invalidReceiptState": "Tego ASN nie można przyjąć ani zamknąć w obecnym stanie.",
|
|
988
1176
|
"wms.errors.salesOrder.reRunReservationCancelled": "Anulowane zamówienie nie może mieć rezerwacji zapasu.",
|
|
1177
|
+
"wms.errors.trackingRequired": "Dla tego produktu wymagane są dane partii lub numeru seryjnego.",
|
|
989
1178
|
"wms.errors.unauthorized": "Brak autoryzacji",
|
|
990
1179
|
"wms.nav.group": "WMS",
|
|
991
1180
|
"wms.notifications.lowStock.body": "Alert niskiego zapasu — dostępne: {availableQuantity}, punkt zamówienia: {reorderPoint}, zapas bezpieczeństwa: {safetyStock}",
|
|
@@ -1005,12 +1194,22 @@
|
|
|
1005
1194
|
"wms.notifications.reservationShortfall.renderer.viewOrder": "Pokaż zamówienie",
|
|
1006
1195
|
"wms.notifications.reservationShortfall.renderer.viewReservations": "Pokaż rezerwacje",
|
|
1007
1196
|
"wms.notifications.reservationShortfall.title": "Częściowa rezerwacja zamówienia",
|
|
1197
|
+
"wms.putaway.title": "Putaway",
|
|
1198
|
+
"wms.receiving.title": "Receiving",
|
|
1199
|
+
"wms.scan.errors.notFound": "Nie znaleziono zeskanowanego kodu.",
|
|
1200
|
+
"wms.scan.putaway.title": "Skan putaway",
|
|
1201
|
+
"wms.scan.receive.title": "Skan przyjęcia",
|
|
1202
|
+
"wms.scan.resolveLocation.title": "Rozwiąż lokalizację",
|
|
1203
|
+
"wms.scan.resolveLot.title": "Rozwiąż partię",
|
|
1204
|
+
"wms.search.badge.asn": "ASN",
|
|
1008
1205
|
"wms.search.badge.inventoryProfile": "Profil zapasu",
|
|
1009
1206
|
"wms.search.badge.location": "Lokalizacja",
|
|
1010
1207
|
"wms.search.badge.lot": "Partia zapasu",
|
|
1208
|
+
"wms.search.badge.putaway": "Zadanie odkładania",
|
|
1011
1209
|
"wms.search.badge.warehouse": "Magazyn",
|
|
1012
1210
|
"wms.search.profile.productScoped": "Zakres produktu",
|
|
1013
1211
|
"wms.search.profile.variantScoped": "Zakres wariantu",
|
|
1212
|
+
"wms.subscribers.procurementGoodsReceipt.asnNotes": "Utworzono z przyjęcia towaru w zakupach {goodsReceiptId}",
|
|
1014
1213
|
"wms.validation.warehouse.inactivePrimary": "Nieaktywne magazyny nie mogą być oznaczone jako główne.",
|
|
1015
1214
|
"wms.validation.warehouse.primaryConflict": "Inny magazyn został właśnie oznaczony jako główny dla tej organizacji. Spróbuj ponownie.",
|
|
1016
1215
|
"wms.widgets.catalog.inventoryProfile.defaultStrategy": "Strategia rotacji",
|
|
@@ -1030,6 +1229,9 @@
|
|
|
1030
1229
|
"wms.widgets.catalog.inventoryProfile.trackExpiration": "Śledź daty ważności",
|
|
1031
1230
|
"wms.widgets.catalog.inventoryProfile.trackLot": "Śledź partie",
|
|
1032
1231
|
"wms.widgets.catalog.inventoryProfile.trackSerial": "Śledź numery seryjne",
|
|
1232
|
+
"wms.widgets.sales.inboundSummary.nextExpectedAt": "Następne oczekiwane przyjęcie",
|
|
1233
|
+
"wms.widgets.sales.inboundSummary.openAsnCount": "Otwarte ASN",
|
|
1234
|
+
"wms.widgets.sales.inboundSummary.title": "Podsumowanie przyjęć",
|
|
1033
1235
|
"wms.widgets.sales.orderItems.stockColumn.available": "dost.",
|
|
1034
1236
|
"wms.widgets.sales.orderItems.stockColumn.header": "Stan magazynowy",
|
|
1035
1237
|
"wms.widgets.sales.orderItems.stockColumn.loading": "…",
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { createHash } from 'crypto'
|
|
2
|
+
import { CrudHttpError } from '@open-mercato/shared/lib/crud/errors'
|
|
3
|
+
import type { AsnStatus, ReceivingLineQcStatus } from '../data/entities'
|
|
4
|
+
|
|
5
|
+
const ASN_STATUSES: ReadonlySet<AsnStatus> = new Set([
|
|
6
|
+
'draft',
|
|
7
|
+
'in_transit',
|
|
8
|
+
'received',
|
|
9
|
+
'closed',
|
|
10
|
+
])
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Parse ASN list `status` query: single value or comma-separated
|
|
14
|
+
* (e.g. `draft,in_transit` for the open receiving queue).
|
|
15
|
+
* Returns `$eq` / `$in` filter fragment, or undefined when empty/invalid.
|
|
16
|
+
*/
|
|
17
|
+
export function buildAsnStatusFilter(
|
|
18
|
+
statusQuery: string | undefined,
|
|
19
|
+
): { $eq: AsnStatus } | { $in: AsnStatus[] } | undefined {
|
|
20
|
+
if (typeof statusQuery !== 'string' || statusQuery.trim().length === 0) return undefined
|
|
21
|
+
const statuses = [
|
|
22
|
+
...new Set(
|
|
23
|
+
statusQuery
|
|
24
|
+
.split(',')
|
|
25
|
+
.map((value) => value.trim())
|
|
26
|
+
.filter((value): value is AsnStatus => ASN_STATUSES.has(value as AsnStatus)),
|
|
27
|
+
),
|
|
28
|
+
]
|
|
29
|
+
if (statuses.length === 0) return undefined
|
|
30
|
+
if (statuses.length === 1) return { $eq: statuses[0]! }
|
|
31
|
+
return { $in: statuses }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function assertAsnQcTransition(
|
|
35
|
+
current: ReceivingLineQcStatus,
|
|
36
|
+
next: 'passed' | 'failed',
|
|
37
|
+
): void {
|
|
38
|
+
if (current === 'pending') return
|
|
39
|
+
if (current === next) return
|
|
40
|
+
throw new CrudHttpError(422, { error: 'invalid_qc_transition' })
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function shouldWriteStockOnQcPass(qcStatus: 'passed' | 'failed'): boolean {
|
|
44
|
+
return qcStatus === 'passed'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Accepted qty for close checks: only QC-passed quantity counts toward
|
|
49
|
+
* fulfillment. QC-failed receipts increment receivedQty for audit but do not
|
|
50
|
+
* satisfy the ASN unless `closeWhenShort` is set.
|
|
51
|
+
*/
|
|
52
|
+
export function acceptedReceivedQty(line: {
|
|
53
|
+
receivedQty: string | number
|
|
54
|
+
qcStatus?: ReceivingLineQcStatus | string | null
|
|
55
|
+
}): number {
|
|
56
|
+
const received = Number(line.receivedQty)
|
|
57
|
+
if (!Number.isFinite(received) || received <= 0) return 0
|
|
58
|
+
if (line.qcStatus !== 'passed') return 0
|
|
59
|
+
return received
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** True when at least one receiving line has recorded receipt qty (> 0). */
|
|
63
|
+
export function hasAsnReceiptActivity(
|
|
64
|
+
lines: Array<{ receivedQty: string | number }>,
|
|
65
|
+
): boolean {
|
|
66
|
+
return lines.some((line) => {
|
|
67
|
+
const received = Number(line.receivedQty)
|
|
68
|
+
return Number.isFinite(received) && received > 0
|
|
69
|
+
})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Aligns with `wms.receiving-lines.delete`: any received qty or non-pending QC
|
|
74
|
+
* blocks soft-deleting the ASN (would free `source_key` while staging stock remains).
|
|
75
|
+
*/
|
|
76
|
+
export function hasAsnDeleteBlockingLineActivity(
|
|
77
|
+
lines: Array<{ receivedQty: string | number; qcStatus?: string | null }>,
|
|
78
|
+
): boolean {
|
|
79
|
+
return lines.some((line) => {
|
|
80
|
+
const received = Number(line.receivedQty)
|
|
81
|
+
if (Number.isFinite(received) && received > 0) return true
|
|
82
|
+
return line.qcStatus !== 'pending'
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function isAsnCloseable(
|
|
87
|
+
lines: Array<{
|
|
88
|
+
expectedQty: string | number
|
|
89
|
+
receivedQty: string | number
|
|
90
|
+
qcStatus?: ReceivingLineQcStatus | string | null
|
|
91
|
+
}>,
|
|
92
|
+
closeWhenShort: boolean,
|
|
93
|
+
): boolean {
|
|
94
|
+
// Header-only ASNs (no receiving lines) are never closeable — `[].every` would
|
|
95
|
+
// otherwise be vacuously true and `closeWhenShort` would short-circuit to true.
|
|
96
|
+
if (lines.length === 0) return false
|
|
97
|
+
// Zero-activity lines (all receivedQty 0) must not close even with closeWhenShort —
|
|
98
|
+
// that flag only covers short / QC-fail receipts after some receipt activity.
|
|
99
|
+
if (!hasAsnReceiptActivity(lines)) return false
|
|
100
|
+
if (closeWhenShort) return true
|
|
101
|
+
return lines.every((line) => {
|
|
102
|
+
const expected = Number(line.expectedQty)
|
|
103
|
+
if (!Number.isFinite(expected)) return false
|
|
104
|
+
return acceptedReceivedQty(line) + 0.000001 >= expected
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function buildStableUuid(seed: string): string {
|
|
109
|
+
const hex = createHash('sha256').update(seed).digest('hex')
|
|
110
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20, 32)}`
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Resolve the stable receive attempt identity.
|
|
115
|
+
*
|
|
116
|
+
* Both QC-pass and QC-fail MUST supply absolute `targetReceivedQty` (enforced by
|
|
117
|
+
* zod + command). Optional `idempotencyKey` is an extra stabilizer, but the
|
|
118
|
+
* attempt key always includes absolute target — same key + different target must
|
|
119
|
+
* not reuse the first movement/putaway identity while advancing line qty.
|
|
120
|
+
* Never derive target as `prior + receivedQty` (that path double-applies audit
|
|
121
|
+
* qty on identical HTTP retry after success).
|
|
122
|
+
*/
|
|
123
|
+
export function resolveAsnReceiveAttempt(input: {
|
|
124
|
+
lineId: string
|
|
125
|
+
priorReceivedQty: number
|
|
126
|
+
receivedQty: number
|
|
127
|
+
targetReceivedQty?: number | null
|
|
128
|
+
idempotencyKey?: string | null
|
|
129
|
+
}): {
|
|
130
|
+
attemptKey: string
|
|
131
|
+
targetReceivedQty: number
|
|
132
|
+
applyQty: number
|
|
133
|
+
} {
|
|
134
|
+
const idempotencyKey = input.idempotencyKey?.trim() || null
|
|
135
|
+
const hasAbsoluteTarget =
|
|
136
|
+
input.targetReceivedQty != null && Number.isFinite(input.targetReceivedQty)
|
|
137
|
+
if (!hasAbsoluteTarget) {
|
|
138
|
+
throw new CrudHttpError(422, { error: 'target_received_qty_required' })
|
|
139
|
+
}
|
|
140
|
+
const targetReceivedQty = Number(input.targetReceivedQty)
|
|
141
|
+
const applyQty = Math.max(0, targetReceivedQty - input.priorReceivedQty)
|
|
142
|
+
// Always include absolute target so same idempotencyKey + higher target cannot
|
|
143
|
+
// reuse the first movement referenceId / putaway_key while applyQty > 0.
|
|
144
|
+
const attemptKey = idempotencyKey
|
|
145
|
+
? ['wms:asn-receive-idemp', input.lineId, idempotencyKey, String(targetReceivedQty)].join(':')
|
|
146
|
+
: ['wms:asn-receive-target', input.lineId, String(targetReceivedQty)].join(':')
|
|
147
|
+
return { attemptKey, targetReceivedQty, applyQty }
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** Deterministic movement referenceId so client retries reuse inventory idempotency. */
|
|
151
|
+
export function buildAsnReceiveReferenceId(input: {
|
|
152
|
+
attemptKey: string
|
|
153
|
+
serialNumber?: string | null
|
|
154
|
+
}): string {
|
|
155
|
+
return buildStableUuid(
|
|
156
|
+
['wms:asn-receive', input.attemptKey, input.serialNumber?.trim() ?? ''].join(':'),
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function buildAsnReceivePutawayKey(input: {
|
|
161
|
+
attemptKey: string
|
|
162
|
+
serialNumber?: string | null
|
|
163
|
+
}): string {
|
|
164
|
+
const serialNumber = input.serialNumber?.trim() ?? ''
|
|
165
|
+
const parts = ['wms:asn-receive-putaway', input.attemptKey]
|
|
166
|
+
// Blank serial keeps the legacy attempt key so non-serial retries still find the original task.
|
|
167
|
+
if (serialNumber.length > 0) parts.push(serialNumber)
|
|
168
|
+
return buildStableUuid(parts.join(':'))
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function putawayMetadataMatchesKey(
|
|
172
|
+
metadata: Record<string, unknown> | null | undefined,
|
|
173
|
+
putawayKey: string,
|
|
174
|
+
): boolean {
|
|
175
|
+
if (!metadata) return false
|
|
176
|
+
return metadata.putawayKey === putawayKey
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* QC-pass retries with applyQty=0 must still ensure a queue task when the
|
|
181
|
+
* auto-created putaway was cancelled (cancel clears putaway_key). Reuse any
|
|
182
|
+
* open/in_progress/done task; otherwise find-or-create again.
|
|
183
|
+
*/
|
|
184
|
+
export function shouldEnsurePutawayOnAlreadyAtTarget(
|
|
185
|
+
existingOpenPutaway: { id: string } | null | undefined,
|
|
186
|
+
): boolean {
|
|
187
|
+
return existingOpenPutaway == null
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Prefer the cancelled task's quantity (metadata still carries putawayKey after
|
|
192
|
+
* column clear); fall back to absolute target for first-shot receives.
|
|
193
|
+
*/
|
|
194
|
+
export function resolvePutawayQuantityForAlreadyAtTargetRetry(input: {
|
|
195
|
+
cancelledTaskQuantity: number | null | undefined
|
|
196
|
+
absoluteTargetQty: number
|
|
197
|
+
}): number {
|
|
198
|
+
const fromCancelled =
|
|
199
|
+
input.cancelledTaskQuantity != null && Number.isFinite(input.cancelledTaskQuantity)
|
|
200
|
+
? Number(input.cancelledTaskQuantity)
|
|
201
|
+
: null
|
|
202
|
+
if (fromCancelled != null && fromCancelled > 0.000001) return fromCancelled
|
|
203
|
+
return Math.max(0, input.absoluteTargetQty)
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Idempotent already-at-target recreate must not open a second putaway when
|
|
208
|
+
* staging stock is already fully committed by other open/in_progress tasks
|
|
209
|
+
* (manual putaway after cancel). Skip create when remaining would go negative.
|
|
210
|
+
*/
|
|
211
|
+
export function shouldRecreatePutawayOnAlreadyAtTarget(input: {
|
|
212
|
+
requestedQuantity: number
|
|
213
|
+
remainingAvailable: number
|
|
214
|
+
}): boolean {
|
|
215
|
+
if (!(input.requestedQuantity > 0.000001)) return false
|
|
216
|
+
return input.requestedQuantity <= input.remainingAvailable + 0.000001
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Reject lifecycle fields on receiving-line CRUD before zod strips them. */
|
|
220
|
+
export function assertReceivingLineLifecycleFieldsForbidden(rawInput: unknown): void {
|
|
221
|
+
if (!rawInput || typeof rawInput !== 'object') return
|
|
222
|
+
const payload = rawInput as Record<string, unknown>
|
|
223
|
+
if ('qcStatus' in payload || 'receivedQty' in payload || 'rejectionReason' in payload) {
|
|
224
|
+
throw new CrudHttpError(422, { error: 'lifecycle_field_forbidden' })
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { CrudHttpError } from '@open-mercato/shared/lib/crud/errors'
|
|
2
|
+
import type { QueryEngine } from '@open-mercato/shared/lib/query/types'
|
|
3
|
+
import { E } from '#generated/entities.ids.generated'
|
|
4
|
+
|
|
5
|
+
type VendorLookupScope = {
|
|
6
|
+
tenantId: string
|
|
7
|
+
organizationId: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type VendorLookupContainer = {
|
|
11
|
+
resolve: (name: string) => unknown
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* True when the failure indicates the optional `customers` peer (or query
|
|
16
|
+
* engine) is absent from the deployment — not a transient lookup failure.
|
|
17
|
+
* Transient errors must NOT be treated as "vendor OK".
|
|
18
|
+
*/
|
|
19
|
+
export function isOptionalCustomersPeerAbsentError(error: unknown): boolean {
|
|
20
|
+
if (!error || typeof error !== 'object') return false
|
|
21
|
+
const name = String((error as { name?: string }).name ?? '')
|
|
22
|
+
const message = String((error as { message?: string }).message ?? '')
|
|
23
|
+
if (name === 'AwilixResolutionError') return true
|
|
24
|
+
if (/Could not resolve ['"]?queryEngine['"]?/i.test(message)) return true
|
|
25
|
+
if (
|
|
26
|
+
/unknown entity|entity id .+ not (found|registered)|no entity metadata for|entity .+ is not registered/i.test(
|
|
27
|
+
message,
|
|
28
|
+
)
|
|
29
|
+
) {
|
|
30
|
+
return true
|
|
31
|
+
}
|
|
32
|
+
return false
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function mapVendorLookupFailure(error: unknown): CrudHttpError {
|
|
36
|
+
if (error instanceof CrudHttpError) return error
|
|
37
|
+
return new CrudHttpError(503, { error: 'vendor_lookup_unavailable' })
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* When `vendorId` is set and the customers peer is available, require a
|
|
42
|
+
* matching customer entity in scope. Skip only when the peer is absent;
|
|
43
|
+
* re-throw / map other failures so invalid vendors are not silently accepted.
|
|
44
|
+
*/
|
|
45
|
+
export async function requireVendorIfPresent(
|
|
46
|
+
container: VendorLookupContainer,
|
|
47
|
+
vendorId: string | null | undefined,
|
|
48
|
+
scope: VendorLookupScope,
|
|
49
|
+
): Promise<void> {
|
|
50
|
+
if (!vendorId) return
|
|
51
|
+
const customerEntityId = (
|
|
52
|
+
E as { customers?: { customer_entity?: string } }
|
|
53
|
+
).customers?.customer_entity
|
|
54
|
+
if (!customerEntityId) return
|
|
55
|
+
|
|
56
|
+
let queryEngine: QueryEngine
|
|
57
|
+
try {
|
|
58
|
+
queryEngine = container.resolve('queryEngine') as QueryEngine
|
|
59
|
+
} catch (error) {
|
|
60
|
+
if (isOptionalCustomersPeerAbsentError(error)) return
|
|
61
|
+
throw mapVendorLookupFailure(error)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
try {
|
|
65
|
+
const result = await queryEngine.query<{ id?: string }>(customerEntityId, {
|
|
66
|
+
tenantId: scope.tenantId,
|
|
67
|
+
organizationId: scope.organizationId,
|
|
68
|
+
filters: { id: { $eq: vendorId } },
|
|
69
|
+
fields: ['id'],
|
|
70
|
+
page: { page: 1, pageSize: 1 },
|
|
71
|
+
})
|
|
72
|
+
if (!result.items[0]?.id) {
|
|
73
|
+
throw new CrudHttpError(422, { error: 'invalid_vendor' })
|
|
74
|
+
}
|
|
75
|
+
} catch (error) {
|
|
76
|
+
if (error instanceof CrudHttpError) throw error
|
|
77
|
+
if (isOptionalCustomersPeerAbsentError(error)) return
|
|
78
|
+
throw mapVendorLookupFailure(error)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -14,6 +14,8 @@ const FORBIDDEN_FEATURE_MESSAGE_KEYS: Record<string, string> = {
|
|
|
14
14
|
'wms.manage_reservations': 'wms.errors.forbidden.manageReservations',
|
|
15
15
|
'wms.adjust_inventory': 'wms.errors.forbidden.adjustInventory',
|
|
16
16
|
'wms.receive_inventory': 'wms.errors.forbidden.receiveInventory',
|
|
17
|
+
'wms.manage_asn': 'wms.errors.forbidden.manageAsn',
|
|
18
|
+
'wms.manage_putaway': 'wms.errors.forbidden.managePutaway',
|
|
17
19
|
'wms.cycle_count': 'wms.errors.forbidden.cycleCount',
|
|
18
20
|
'wms.import': 'wms.errors.forbidden.import',
|
|
19
21
|
}
|
|
@@ -26,6 +28,8 @@ const FORBIDDEN_FEATURE_MESSAGE_FALLBACKS: Record<string, string> = {
|
|
|
26
28
|
'wms.manage_reservations': "You don't have permission to manage inventory reservations.",
|
|
27
29
|
'wms.adjust_inventory': "You don't have permission to adjust or move inventory.",
|
|
28
30
|
'wms.receive_inventory': "You don't have permission to receive inbound inventory.",
|
|
31
|
+
'wms.manage_asn': "You don't have permission to manage ASNs.",
|
|
32
|
+
'wms.manage_putaway': "You don't have permission to manage putaway tasks.",
|
|
29
33
|
'wms.cycle_count': "You don't have permission to run cycle counts.",
|
|
30
34
|
'wms.import': "You don't have permission to import inventory.",
|
|
31
35
|
}
|
|
@@ -159,6 +159,9 @@ function translateStableReasonCode(
|
|
|
159
159
|
if (code === 'cycle_count') {
|
|
160
160
|
return t('wms.backend.dashboard.activity.reasons.cycleCount', 'Cycle count')
|
|
161
161
|
}
|
|
162
|
+
if (code === 'asn_receive') {
|
|
163
|
+
return t('wms.backend.dashboard.activity.reasons.asnReceive', 'Receive (from ASN)')
|
|
164
|
+
}
|
|
162
165
|
|
|
163
166
|
const type = (movementType ?? '').trim()
|
|
164
167
|
if (type === 'transfer' && code in MOVE_REASON_FALLBACKS) {
|
|
@@ -206,6 +209,49 @@ export function inventoryMovementReasonLabel(
|
|
|
206
209
|
return reason
|
|
207
210
|
}
|
|
208
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Resolve a movement/activity subtitle. Prefers a stable reason label, then a
|
|
214
|
+
* human reference label (never the opaque idempotency `referenceId` UUID).
|
|
215
|
+
* Mirrors `formatReservationSourceLabel` so activity feeds stay readable.
|
|
216
|
+
*/
|
|
217
|
+
export function formatInventoryMovementActivitySubtitle(
|
|
218
|
+
input: {
|
|
219
|
+
reasonCode?: string | null
|
|
220
|
+
reason?: string | null
|
|
221
|
+
movementType?: string | null
|
|
222
|
+
referenceType?: string | null
|
|
223
|
+
referenceId?: string | null
|
|
224
|
+
referenceLabel?: string | null
|
|
225
|
+
/** Movement metadata `source` — used to recover ASN-receive labels for legacy rows. */
|
|
226
|
+
source?: string | null
|
|
227
|
+
},
|
|
228
|
+
t: InventoryDisplayTranslator,
|
|
229
|
+
): string | null {
|
|
230
|
+
const source = input.source?.trim() || null
|
|
231
|
+
const effectiveReasonCode =
|
|
232
|
+
input.reasonCode?.trim() || (source === 'asn_receive' ? 'asn_receive' : null)
|
|
233
|
+
const reasonLabel = inventoryMovementReasonLabel(
|
|
234
|
+
{
|
|
235
|
+
reasonCode: effectiveReasonCode,
|
|
236
|
+
reason: input.reason,
|
|
237
|
+
movementType: input.movementType,
|
|
238
|
+
},
|
|
239
|
+
t,
|
|
240
|
+
)
|
|
241
|
+
const referenceLabel = input.referenceLabel?.trim() || null
|
|
242
|
+
|
|
243
|
+
if (reasonLabel && referenceLabel) return `${reasonLabel} · ${referenceLabel}`
|
|
244
|
+
if (reasonLabel) return reasonLabel
|
|
245
|
+
|
|
246
|
+
const referenceType = input.referenceType?.trim() || null
|
|
247
|
+
if (!referenceType) return null
|
|
248
|
+
const typeLabel = inventoryReferenceTypeLabel(referenceType, t)
|
|
249
|
+
if (referenceLabel) return `${typeLabel} · ${referenceLabel}`
|
|
250
|
+
// Never append raw referenceId UUIDs (ASN receive + manual receive both use
|
|
251
|
+
// synthetic idempotency UUIDs that truncate poorly in the activity feed).
|
|
252
|
+
return typeLabel
|
|
253
|
+
}
|
|
254
|
+
|
|
209
255
|
export function formatCatalogProductLabel(row: {
|
|
210
256
|
product_title?: string | null
|
|
211
257
|
product_sku?: string | null
|