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:
@@ -135,21 +135,11 @@ class ContractModule extends BaseController
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
if (!empty($contract_template_obligation_dependency[0])) {
|
if (!empty($contract_template_obligation_dependency[0])) {
|
||||||
dd($contract_template_obligation_dependency);
|
|
||||||
$contract_obligation = ContractObligation::
|
|
||||||
where('contract_id', $contract->id)
|
|
||||||
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id)
|
|
||||||
->first();
|
|
||||||
|
|
||||||
$depend_contract_obligation = ContractTemplateObligation::
|
|
||||||
where('contract_template_id', $contarct_template->id)
|
|
||||||
->where('id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id)
|
|
||||||
->first();
|
|
||||||
dd($contarct_template->id);
|
|
||||||
|
|
||||||
$request->request->add([
|
$request->request->add([
|
||||||
'contract_obligation_id' => [$contract_obligation->hash_id],
|
'contract_obligation_id' => [$contract_template_obligation_dependency[0]->contract_template_obligation_id],
|
||||||
'depend_contract_obligation_id' => [$depend_contract_obligation->hash_id]
|
'depend_contract_obligation_id' => [$contract_template_obligation_dependency[0]->depend_contract_template_obligation_id]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$contract_obligation_dependency = ContractObligationDependencyModule::generate($request);
|
$contract_obligation_dependency = ContractObligationDependencyModule::generate($request);
|
||||||
|
|||||||
Reference in New Issue
Block a user