Dashboard enhancement

This commit is contained in:
Hagernesh
2026-06-19 10:55:03 +00:00
parent f32d3d76e3
commit e40318c847
20 changed files with 563 additions and 28 deletions

View File

@@ -12,6 +12,8 @@ import type {
LoadInventoryPayload,
MoveInventoryPayload,
ReceiveInventoryPayload,
ReleaseOrderPayload,
DeliverInventoryPayload,
ReserveInventoryPayload,
SaveWarehousePayload,
SaveYardPayload,
@@ -172,6 +174,18 @@ export const useMoveInventory = () =>
warehouseService.move(args.id, args.payload),
);
// ── Import branch (READY_FOR_PICKUP → DELIVERED) ───────────────────────────
export const useMarkReadyForPickup = () =>
useInventoryMutation((id: string) => warehouseService.markReadyForPickup(id));
export const useReleaseInventory = () =>
useInventoryMutation((args: { id: string; payload: ReleaseOrderPayload }) =>
warehouseService.release(args.id, args.payload),
);
export const useDeliverInventory = () =>
useInventoryMutation((args: { id: string; payload: DeliverInventoryPayload }) =>
warehouseService.deliver(args.id, args.payload),
);
// ── Loading (Batch 3) ────────────────────────────────────────────────────────
export function useLoadableWagons(enabled = true) {