mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
fix create contract bug
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Http\Modules\User;
|
||||
|
||||
use App\Models\ContractTemplateObligation;
|
||||
use Auth;
|
||||
use App\Models\Contract;
|
||||
use App\Models\ContractLog;
|
||||
@@ -140,15 +139,14 @@ class ContractModule extends BaseController
|
||||
->first();
|
||||
|
||||
$depend_contract_obligation = ContractObligation::
|
||||
where('contract_id', $contarct_template->id)
|
||||
where('contract_id', $contract->id)
|
||||
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id)
|
||||
->first();
|
||||
|
||||
$request->request->add([
|
||||
'contract_obligation_id' => [$contract_obligation->hash_id],
|
||||
'depend_contract_obligation_id' => [$contract_template_obligation_dependency[0]->depend_contract_template_obligation_id]
|
||||
'depend_contract_obligation_id' => [$depend_contract_obligation->hash_id]
|
||||
]);
|
||||
|
||||
$contract_obligation_dependency = ContractObligationDependencyModule::generate($request);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user