import { Head, Link, useForm } from '@inertiajs/react';
import { InventoryNotice, InventoryPagination } from '@/components/inventory';
import {
FormErrors,
PageTitle,
Panel,
controlClass,
} from '@/components/procurement';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { date } from '@/types/procurement';
import { quantity } from '@/types/inventory';
import type {
Page,
StockItem,
StockMovement,
Warehouse,
} from '@/types/inventory';
type Props = {
items: StockItem[];
warehouses: Warehouse[];
balances: {
stock_item_id: number;
warehouse_id: number;
quantity_milli: number;
}[];
movements: Page
| Artigo | Armazém | Quantidade em stock |
|---|---|---|
| {article?.code}{' '} · {article?.name} | { warehouses.find( (w) => w.id === balance.warehouse_id, )?.name } | {quantity( balance.quantity_milli, )}{' '} {article?.unit} |
Não há entradas confirmadas para estes filtros. Criar um artigo não cria stock.
)}{m.snapshot.stock_item.name} ·{' '} {m.snapshot.warehouse.name} {m.snapshot.equipment && ` · Equipamento ${m.snapshot.equipment.code}`}
{date(m.moved_at)} · Utilizador # {m.moved_by} ·{' '} {m.snapshot.reference ?? m.snapshot.order_number}{' '} · {m.movement_type} {m.snapshot.delivery_note && ` · Guia ${m.snapshot.delivery_note}`}
Ainda não há movimentos disponíveis.
)}Movimentos confirmados preservados. As transferências têm duas linhas ligadas à mesma operação.
{i.code} · {i.name} ·{' '} {i.unit}
))}{w.code} · {w.name}
))}