commit13
This commit is contained in:
@@ -25,6 +25,11 @@ type Props = {
|
||||
stock_item_id: number;
|
||||
warehouse_id: number;
|
||||
quantity_milli: number;
|
||||
lot_control?: {
|
||||
usable_milli: number;
|
||||
blocked_milli: number;
|
||||
reconciled: boolean;
|
||||
} | null;
|
||||
}[];
|
||||
movements: Page<StockMovement>;
|
||||
filters: { search?: string; warehouse_id?: number };
|
||||
@@ -139,6 +144,14 @@ export default function Stock({
|
||||
balance.quantity_milli,
|
||||
)}{' '}
|
||||
{article?.unit}
|
||||
{balance.lot_control && (
|
||||
<p className="mt-1 text-xs text-muted-foreground">
|
||||
{balance.lot_control
|
||||
.reconciled
|
||||
? `Utilizável: ${quantity(balance.lot_control.usable_milli)} · Indisponível: ${quantity(balance.lot_control.blocked_milli)}`
|
||||
: 'Repartição por lotes por conferir'}
|
||||
</p>
|
||||
)}
|
||||
</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user