ip
This commit is contained in:
@@ -29,6 +29,12 @@ class EditConfeccion extends EditRecord
|
||||
->maxValue(fn () => $this->getRecord()->faltantes ?? 0)
|
||||
->helperText(fn () => 'Máximo: ' . ($this->getRecord()->faltantes ?? 0))
|
||||
->default(fn () => $this->getRecord()->faltantes ?? 0),
|
||||
|
||||
Forms\Components\TextInput::make('prendas_defectuosas')
|
||||
->numeric()
|
||||
->minValue(0)
|
||||
->maxValue(fn ($get) => (int) ($get('cantidad') ?? 0))
|
||||
->helperText('Opcional. Se restará del total recibido.'),
|
||||
Forms\Components\Textarea::make('notas'),
|
||||
])
|
||||
->action(function (array $data): void {
|
||||
|
||||
Reference in New Issue
Block a user