This commit is contained in:
2026-11-02 08:08:05 +02:00
parent 13a6cb9922
commit 504b01b244
246 changed files with 24499 additions and 185 deletions
+24
View File
@@ -48,6 +48,12 @@ type History = {
equipment?: { code: string; description: string };
stock_item: { name: string; unit: string };
reason?: string;
reversal?: {
source: {
document: { reference: string };
rows: { warehouse_name: string; quantity_milli: number }[];
};
};
};
};
type Props = {
@@ -766,6 +772,24 @@ export default function EquipmentPage({
{h.snapshot.stock_item.unit}
</p>
<p>{h.snapshot.reason}</p>
{h.snapshot.reversal && (
<p className="mt-2 font-medium">
Estorno de{' '}
{
h.snapshot.reversal.source.document
.reference
}
:{' '}
{h.snapshot.reversal.source.rows
.map(
(row) =>
`${row.warehouse_name}: ${row.quantity_milli > 0 ? '+' : ''}${quantity(row.quantity_milli)}`,
)
.join(' · ')}
. As quantidades repostas exigem a
conferência de qualidade aplicável.
</p>
)}
</article>
))}
{history.data.length === 0 && (