This commit is contained in:
2026-11-02 20:27:11 +02:00
parent b44378b899
commit badaada043
300 changed files with 17458 additions and 1056 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import { Head, useForm } from '@inertiajs/react';
import { Head, Link, useForm } from '@inertiajs/react';
import { useState } from 'react';
import { InventoryNotice, InventoryPagination } from '@/components/inventory';
import { LotCountFields, countTotal } from '@/components/inventory-lot-count';
@@ -92,6 +92,7 @@ type Props = {
operations: Page<Operation>;
counts: Operation[];
canOperate: boolean;
canViewReturns?: boolean;
correctedOperations?: Record<number, string>;
canAdjust?: boolean;
lotCounts?: LotCountSource[];
@@ -112,6 +113,7 @@ export default function Operations({
operations,
counts,
canOperate,
canViewReturns = false,
correctedOperations = {},
canAdjust = false,
lotCounts = [],
@@ -171,6 +173,7 @@ export default function Operations({
description="Movimentos com fundamento, contagens físicas e histórico preservado."
/>
<InventoryNotice />
{canViewReturns && <Link href="/stock/devolucoes-internas">Conferir devoluções de excedentes</Link>}
{canOperate && form.data.kind === 'issue' && (
<label className="grid gap-2 text-sm">
Equipamento de destino (obrigatório para peças
@@ -534,6 +537,7 @@ export default function Operations({
'Devolução ao fornecedor',
write_off: 'Abate físico',
reversal: 'Estorno integral',
workshop_return: 'Devolução de excedente',
}[o.kind] ??
o.kind}
</strong>