commit14
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user