up
This commit is contained in:
+2
-9
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user