ip
This commit is contained in:
+7
@@ -29,6 +29,13 @@ class RecepcionesRelationManager extends RelationManager
|
||||
->minValue(1)
|
||||
->maxValue(fn () => $this->getOwnerRecord()?->faltantes ?? 0)
|
||||
->helperText(fn () => 'Máximo: ' . ($this->getOwnerRecord()?->faltantes ?? 0)),
|
||||
|
||||
TextInput::make('prendas_defectuosas')
|
||||
->numeric()
|
||||
->minValue(0)
|
||||
->maxValue(fn ($get) => (int) ($get('cantidad') ?? 0))
|
||||
->helperText('Opcional. Se restará del total recibido.'),
|
||||
|
||||
Textarea::make('notas'),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user