Merge branch 'develop' of http://114.203.209.83:3000/SamProject/sam-api into develop
This commit is contained in:
22
app/Http/Requests/Order/OrderBulkDeleteRequest.php
Normal file
22
app/Http/Requests/Order/OrderBulkDeleteRequest.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests\Order;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class OrderBulkDeleteRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'ids' => 'required|array|min:1',
|
||||
'ids.*' => 'required|integer',
|
||||
'force' => 'sometimes|boolean',
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,13 @@ public function rules(): array
|
||||
'order_qty' => ['nullable', 'numeric', 'min:0'],
|
||||
'order_unit' => ['nullable', 'string', 'max:20'],
|
||||
'due_date' => ['nullable', 'date'],
|
||||
'receiving_qty' => ['nullable', 'numeric', 'min:0'],
|
||||
'receiving_date' => ['nullable', 'date'],
|
||||
'lot_no' => ['nullable', 'string', 'max:50'],
|
||||
'status' => ['nullable', 'string', 'in:order_completed,shipping,inspection_pending,receiving_pending'],
|
||||
'remark' => ['nullable', 'string', 'max:1000'],
|
||||
'manufacturer' => ['nullable', 'string', 'max:100'],
|
||||
'material_no' => ['nullable', 'string', 'max:50'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ public function rules(): array
|
||||
'order_qty' => ['sometimes', 'numeric', 'min:0'],
|
||||
'order_unit' => ['nullable', 'string', 'max:20'],
|
||||
'due_date' => ['nullable', 'date'],
|
||||
'status' => ['sometimes', 'string', 'in:order_completed,shipping,inspection_pending,receiving_pending,completed'],
|
||||
'status' => ['sometimes', 'string', 'in:order_completed,shipping,inspection_pending,receiving_pending,completed,inspection_completed'],
|
||||
'remark' => ['nullable', 'string', 'max:1000'],
|
||||
'receiving_qty' => ['nullable', 'numeric', 'min:0'],
|
||||
'receiving_date' => ['nullable', 'date'],
|
||||
@@ -31,6 +31,8 @@ public function rules(): array
|
||||
'inspection_status' => ['nullable', 'string', 'max:10'],
|
||||
'inspection_date' => ['nullable', 'date'],
|
||||
'inspection_result' => ['nullable', 'string', 'max:20'],
|
||||
'manufacturer' => ['nullable', 'string', 'max:100'],
|
||||
'material_no' => ['nullable', 'string', 'max:50'],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user