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:
@@ -11,7 +11,7 @@ class ContractEntity extends Model
|
||||
{
|
||||
protected $table = 'contract_entities';
|
||||
|
||||
protected $appends = ['hash_id', 'contract_list', 'entity_list'];
|
||||
protected $appends = ['hash_id', 'entity_signature_hash_id', 'contract_list', 'entity_list'];
|
||||
|
||||
public function contract()
|
||||
{
|
||||
@@ -28,6 +28,11 @@ class ContractEntity extends Model
|
||||
return Hasher::encode('contract_entities', $this->id);
|
||||
}
|
||||
|
||||
public function getEntitySignatureHashIdAttribute()
|
||||
{
|
||||
return Hasher::encode('entity_signatures', $this->entity_signature_id);
|
||||
}
|
||||
|
||||
public function getContractListAttribute()
|
||||
{
|
||||
return $this->contract()->get()->makeHidden(['contract_entity_list']);
|
||||
|
||||
Reference in New Issue
Block a user