mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
contract obligation complete and accept api
This commit is contained in:
@@ -13,6 +13,7 @@ class ContractObligation extends Model
|
||||
|
||||
protected $appends = [
|
||||
'hash_id',
|
||||
'contract_hash_id',
|
||||
'contract_list',
|
||||
'contract_obligation_dependency_list',
|
||||
'depend_contract_obligation_dependency_list',
|
||||
@@ -54,6 +55,11 @@ class ContractObligation extends Model
|
||||
return Hasher::encode('contract_obligations', $this->id);
|
||||
}
|
||||
|
||||
public function getContractHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('contracts', $this->contract_id);
|
||||
}
|
||||
|
||||
public function getContractListAttribute()
|
||||
{
|
||||
return $this->contract()->get()->makeHidden(['contract_obligation_list']);
|
||||
|
||||
Reference in New Issue
Block a user