diff --git a/app/Http/Modules/User/ContractModule.php b/app/Http/Modules/User/ContractModule.php index 4b11b43..c810f8a 100644 --- a/app/Http/Modules/User/ContractModule.php +++ b/app/Http/Modules/User/ContractModule.php @@ -139,7 +139,7 @@ class ContractModule extends BaseController ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->contract_template_obligation_id) ->first(); - $depend_contract_obligation = ContractTemplateObligation:: + $depend_contract_obligation = ContractObligation:: where('contract_template_id', $contarct_template->id) ->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id) ->first();