mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
fix create contract bug
This commit is contained in:
@@ -102,7 +102,7 @@ class ContractModule extends BaseController
|
|||||||
$contract_template_id = $request->input('contract_template_id');
|
$contract_template_id = $request->input('contract_template_id');
|
||||||
$contract_template_id = Hasher::decode('contract_templates', $contract_template_id);
|
$contract_template_id = Hasher::decode('contract_templates', $contract_template_id);
|
||||||
$contarct_template = ContractTemplate::find($contract_template_id);
|
$contarct_template = ContractTemplate::find($contract_template_id);
|
||||||
|
dd($contarct_template);
|
||||||
$contract = new Contract();
|
$contract = new Contract();
|
||||||
$contract->user_id = Auth::guard('user-api')->user()->id;
|
$contract->user_id = Auth::guard('user-api')->user()->id;
|
||||||
$contract->contract_template_id = $contarct_template->id;
|
$contract->contract_template_id = $contarct_template->id;
|
||||||
@@ -138,7 +138,6 @@ class ContractModule extends BaseController
|
|||||||
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id)
|
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
dd($contract_template_obligation_dependency[0]->depend_contract_template_obligation_id, $contract->id);
|
|
||||||
$depend_contract_obligation = ContractObligation::
|
$depend_contract_obligation = ContractObligation::
|
||||||
where('contract_id', $contract->id)
|
where('contract_id', $contract->id)
|
||||||
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id)
|
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user