This commit is contained in:
Lizandro Guarnizo
2026-01-29 17:14:05 -05:00
parent f9f5455cd5
commit 35f56cbbe0
7 changed files with 299 additions and 82 deletions
@@ -30,14 +30,8 @@ class RecepcionesRelationManager extends RelationManager
->maxValue(fn () => $this->getOwnerRecord()?->faltantes ?? 0)
->helperText(fn () => 'Máximo: ' . ($this->getOwnerRecord()?->faltantes ?? 0)),
TextInput::make('prendas_defectuosas')
->label('Faltantes')
->numeric()
->minValue(0)
->maxValue(fn ($get) => (int) ($get('cantidad') ?? 0))
->helperText('Opcional. Se restará del total recibido.'),
Textarea::make('notas'),
Textarea::make('notas')
->helperText('Si hay prendas defectuosas, regístralas en "Arreglos" después de crear la recepción.'),
]);
}
@@ -48,7 +42,6 @@ class RecepcionesRelationManager extends RelationManager
TextColumn::make('id')->label('#'),
TextColumn::make('fecha_recepcion')->dateTime()->label('Fecha'),
TextColumn::make('cantidad')->label('Cantidad'),
TextColumn::make('prendas_defectuosas')->label('Faltantes'),
TextColumn::make('usuario.name')->label('Usuario'),
TextColumn::make('notas')->limit(50)->wrap(),
TextColumn::make('created_at')->dateTime()->label('Creado'),