Stock Receipts Card (spree/stock-receipts-card.tsx)

spree · packages/dashboard/src/components/spree/stock-receipts-card.tsx · typescript · BSD-3-Clause
ui, pos, payments, fw:react, tag:query

Displays stock receipts booked against a purchase order or transfer as nested cards with variant links and relative timestamps. Reuse to show delivery history for inventory documents.

// Source: https://github.com/spree/spree | License: BSD-3-Clause | Copyright 2024-present, Vendo Sp. z o.o., Vendo Connect Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { PaginatedResponse, StockReceipt } from '@spree/admin-sdk'
import {
  Badge,
  Card,
  CardContent,
  CardHeader,
  CardTitle,
  RelativeTime,
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from '@spree/dashboard-ui'
import { PackageCheckIcon } from '@spree/dashboard-ui/icons'
import { useQuery } from '@tanstack/react-query'
import { useTranslation } from 'react-i18next'
import { VariantLink } from './variant-link'

/**
 * The deliveries booked against a purchase order or a transfer, each as a
 * nested card inside one container — the way an order's fulfillm

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key