migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Modules\Accounting\Http\Requests\FundTransfer;
use Illuminate\Foundation\Http\FormRequest;
class FundTransferStoreRequest extends FormRequest
{
public function rules(): array
{
return [
'from_fund_id' => 'required|exists:funds,id',
'to_fund_id' => 'required|exists:funds,id|different:from_fund_id',
'amount' => 'required|numeric|min:0.01',
'transfer_date' => 'required|date',
'note' => 'nullable|string',
'created_by' => 'nullable|exists:users,id',
'status' => 'nullable|in:0,1',
];
}
public function messages(): array
{
return [
'to_fund_id.different' => 'Destination fund must be different from source fund.',
];
}
public function authorize(): bool
{
return true;
}
}

View File

@@ -0,0 +1,35 @@
<?php
namespace Modules\Accounting\Http\Requests\FundTransfer;
use Illuminate\Foundation\Http\FormRequest;
class FundTransferUpdateRequest extends FormRequest
{
public function rules(): array
{
$transferId = $this->route('fund_transfer');
return [
'from_fund_id' => 'required|exists:funds,id',
'to_fund_id' => 'required|exists:funds,id|different:from_fund_id',
'amount' => 'required|numeric|min:0.01',
'transfer_date' => 'required|date',
'note' => 'nullable|string',
'created_by' => 'nullable|exists:users,id',
'status' => 'nullable|in:0,1',
];
}
public function messages(): array
{
return [
'to_fund_id.different' => 'Destination fund must be different from source fund.',
];
}
public function authorize(): bool
{
return true;
}
}