Request filtering for Client Statements

This commit is contained in:
David Bomba 2023-11-08 08:59:49 +11:00
parent 3e59c71379
commit cd5efeb913
2 changed files with 6 additions and 1 deletions

View File

@ -25,7 +25,11 @@ class ShowStatementRequest extends FormRequest
public function rules()
{
return [
//
'start_date' => 'sometimes|nullable|date',
'end_date' => 'sometimes|nullable|date',
'show_payments_table' => 'sometimes|nullable|boolean',
'show_aging_table' => 'sometimes|nullable|boolean',
'show_credits_table' => 'sometimes|nullable|boolean',
];
}

View File

@ -54,6 +54,7 @@ class Statement
public function run() :?string
{
$this
->setupOptions()
->setupEntity();