Transaction not edit, duplicate, delete etc button for Transferred
This commit is contained in:
@ -349,6 +349,16 @@ class Transaction extends Model
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the record is attached to a transfer.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getHasTransferRelationAttribute()
|
||||
{
|
||||
return (bool) (optional($this->category)->id == optional($this->category)->transfer());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the title of type.
|
||||
*
|
||||
|
Reference in New Issue
Block a user