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