mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-21 13:24:17 +00:00
contract generate
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user