|
@@ -9,7 +9,7 @@ class UnitFinancialRequest extends FormRequest
|
|
|
public function rules(): array
|
|
public function rules(): array
|
|
|
{
|
|
{
|
|
|
return [
|
|
return [
|
|
|
- 'unit_id' => 'required|integer|exists:units,id',
|
|
|
|
|
|
|
+ 'unit_id' => 'sometimes|nullable|integer|exists:units,id',
|
|
|
'tax_regime' => 'nullable|string|max:50',
|
|
'tax_regime' => 'nullable|string|max:50',
|
|
|
'bank' => 'nullable|string|max:100',
|
|
'bank' => 'nullable|string|max:100',
|
|
|
'agency' => 'nullable|string|max:20',
|
|
'agency' => 'nullable|string|max:20',
|
|
@@ -24,6 +24,12 @@ public function rules(): array
|
|
|
'maintenance_fee' => 'nullable|numeric|min:0',
|
|
'maintenance_fee' => 'nullable|numeric|min:0',
|
|
|
'marketing_fund' => 'nullable|numeric|min:0',
|
|
'marketing_fund' => 'nullable|numeric|min:0',
|
|
|
'tbr' => 'nullable|numeric|min:0',
|
|
'tbr' => 'nullable|numeric|min:0',
|
|
|
|
|
+ 'max_freeze_count' => 'nullable|integer|min:0',
|
|
|
|
|
+ 'charge_roi' => 'nullable|boolean',
|
|
|
|
|
+ 'charge_fnm' => 'nullable|boolean',
|
|
|
|
|
+ 'default_discount' => 'nullable|numeric|min:0|max:100',
|
|
|
|
|
+ 'default_interest' => 'nullable|numeric|min:0',
|
|
|
|
|
+ 'default_fine' => 'nullable|numeric|min:0|max:100',
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|