contract generate

This commit is contained in:
glovetleong
2021-07-03 20:54:36 +08:00
parent 4938263615
commit abc405ff16
14 changed files with 814 additions and 8 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ class ContractTemplate extends Model
public function getContractTemplateObligationListAttribute()
{
return $this->contract_template_obligation()->get()->makeHidden(['contract_template_list']);
return $this->contract_template_obligation()
->orderBy('sequence', 'asc')
->where('status', config('constants.contract_template_obligation.status.active'))
->get()
->makeHidden(['contract_template_list']);
}
public function getUpdatedAtAttribute($date)