fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -103,7 +103,9 @@ final class BusinessFormSchema
|
||||
// The field limit is a text length, not an 8% ceiling.
|
||||
$rules['payload.equity_percentage'] = ['nullable', 'numeric', 'between:0,100',
|
||||
function ($attribute, $value, $fail) {
|
||||
if (strlen((string) $value) > 8) $fail('Indique a percentagem com até 8 caracteres.');
|
||||
if (strlen((string) $value) > 8) {
|
||||
$fail('Indique a percentagem com até 8 caracteres.');
|
||||
}
|
||||
}];
|
||||
foreach (['valid_until', 'mandate_valid_until'] as $date) {
|
||||
$rules['payload.'.$date][] = 'date_format:Y-m-d';
|
||||
|
||||
Reference in New Issue
Block a user