fix create contract bug

This commit is contained in:
omair saleh
2021-12-29 01:56:37 +08:00
parent bf6f4c06c8
commit b7a966ef3f
+2 -3
View File
@@ -137,9 +137,8 @@ class ContractModule extends BaseController
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)
->first(); ->first();
dd(ContractObligation::
where('contract_id', $contract->id) dd($contract_obligation->hash_id);
->where('contract_template_obligation_id', $contract_template_obligation_dependency[0]->depend_contract_template_obligation_id)->dd());
$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)