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:
@@ -129,7 +129,6 @@ class ContractModule extends BaseController
|
|||||||
|
|
||||||
// generate contract obligation dependency
|
// generate contract obligation dependency
|
||||||
foreach ($contract_template_obligation_list as $key => $row) {
|
foreach ($contract_template_obligation_list as $key => $row) {
|
||||||
|
|
||||||
$contract_template_obligation_dependency = $row->contract_template_obligation_dependency()
|
$contract_template_obligation_dependency = $row->contract_template_obligation_dependency()
|
||||||
->where('status', config('constants.contract_template_obligation_dependency.status.active'))
|
->where('status', config('constants.contract_template_obligation_dependency.status.active'))
|
||||||
->get();
|
->get();
|
||||||
@@ -140,9 +139,9 @@ 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();
|
||||||
|
|
||||||
$depend_contract_obligation = ContractObligation::
|
$depend_contract_obligation = ContractTemplateObligation::
|
||||||
where('contract_template_id', $contarct_template->id)
|
where('contract_template_id', $contarct_template->id)
|
||||||
->where('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)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$request->request->add([
|
$request->request->add([
|
||||||
|
|||||||
Reference in New Issue
Block a user