This commit is contained in:
Yuri Kuznetsov
2022-10-14 14:13:16 +03:00
parent f253e021d0
commit f54497b76f
6 changed files with 40 additions and 1 deletions
@@ -39,6 +39,15 @@ class Call extends Entity
{
public const ENTITY_TYPE = 'Call';
public const STATUS_PLANNED = 'Planned';
public const STATUS_HELD = 'Held';
public const STATUS_NOT_HELD = 'Not Held';
public function getStatus(): ?string
{
return $this->get('status');
}
public function getDateStart(): ?DateTime
{
/** @var ?DateTime */
@@ -36,7 +36,12 @@ class CaseObj extends \Espo\Core\ORM\Entity
{
public const ENTITY_TYPE = 'Case';
public const STATUS_NEW = 'New';
public const STATUS_ASSIGNED = 'Assigned';
public const STATUS_CLOSED = 'Closed';
public const STATUS_PENDING = 'Pending';
public const STATUS_REJECTED = 'Rejected';
public const STATUS_DUPLICATE = 'Duplicate';
protected $entityType = 'Case';
@@ -36,7 +36,12 @@ class Lead extends \Espo\Core\Entities\Person
{
public const ENTITY_TYPE = 'Lead';
public const STATUS_NEW = 'New';
public const STATUS_ASSIGNED = 'Assigned';
public const STATUS_IN_PROCESS = 'In Process';
public const STATUS_CONVERTED = 'Converted';
public const STATUS_RECYCLED = 'Recycled';
public const STATUS_DEAD = 'Dead';
public function getStatus(): ?string
{
@@ -48,6 +48,11 @@ class Meeting extends Entity
public const STATUS_HELD = 'Held';
public const STATUS_NOT_HELD = 'Not Held';
public function getStatus(): ?string
{
return $this->get('status');
}
public function getDateStart(): ?DateTimeOptional
{
/** @var ?DateTimeOptional */
@@ -40,6 +40,9 @@ class Opportunity extends Entity
{
public const ENTITY_TYPE = 'Opportunity';
public const STAGE_CLOSED_WON = 'Closed Won';
public const STAGE_CLOSED_LOST = 'Closed Lost';
public function getName(): ?string
{
return $this->get('name');
+13 -1
View File
@@ -33,12 +33,24 @@ use Espo\Core\{
Field\Link,
Field\LinkMultiple,
ORM\Entity,
Field\DateTimeOptional};
Field\DateTimeOptional,
};
class Task extends Entity
{
public const ENTITY_TYPE = 'Task';
public const STATUS_NOT_STARTED = 'Not Started';
public const STATUS_STARTED = 'Started';
public const STATUS_COMPLETED = 'Completed';
public const STATUS_CANCELED = 'Canceled';
public const STATUS_DEFERRED = 'Deferred';
public function getStatus(): ?string
{
return $this->get('status');
}
public function getDateStart(): ?DateTimeOptional
{
/** @var ?DateTimeOptional */