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:
@@ -131,8 +131,9 @@ class ContractModule extends BaseController
|
|||||||
$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();
|
||||||
dd($contract->id);
|
|
||||||
if (!empty($contract_template_obligation_dependency[0])) {
|
if (!empty($contract_template_obligation_dependency[0])) {
|
||||||
|
dd($contract_template_obligation_dependency[0]);
|
||||||
$contract_obligation = ContractObligation::
|
$contract_obligation = ContractObligation::
|
||||||
where('contract_id', $contract->id)
|
where('contract_id', $contract->id)
|
||||||
->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)
|
||||||
|
|||||||
Reference in New Issue
Block a user