up
This commit is contained in:
+6
-1
@@ -23,7 +23,12 @@ class RecepcionesRelationManager extends RelationManager
|
||||
{
|
||||
return $form->schema([
|
||||
DateTimePicker::make('fecha_recepcion')->required(),
|
||||
TextInput::make('cantidad')->numeric()->required()->minValue(1),
|
||||
TextInput::make('cantidad')
|
||||
->numeric()
|
||||
->required()
|
||||
->minValue(1)
|
||||
->maxValue(fn () => $this->getOwnerRecord()?->faltantes ?? 0)
|
||||
->helperText(fn () => 'Máximo: ' . ($this->getOwnerRecord()?->faltantes ?? 0)),
|
||||
Textarea::make('notas'),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user