Add late documentation fields to ticket table #774
This commit is contained in:
parent
78956de357
commit
561a280647
1 changed files with 35 additions and 0 deletions
|
|
@ -139,9 +139,22 @@ class Ticket
|
|||
*/
|
||||
protected $other_description;
|
||||
|
||||
// is it a late documentation?
|
||||
/**
|
||||
* @ORM\Column(type="boolean", nullable=true)
|
||||
*/
|
||||
protected $flag_late_doc;
|
||||
|
||||
// reason for late documentation
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
protected $late_doc_reason;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->date_create = new DateTime();
|
||||
$this->flag_late_doc = false;
|
||||
}
|
||||
|
||||
public function getID()
|
||||
|
|
@ -354,4 +367,26 @@ class Ticket
|
|||
{
|
||||
return $this->other_description;
|
||||
}
|
||||
|
||||
public function setLateDoc($flag_late_doc = true)
|
||||
{
|
||||
$this->flag_late_doc = $flag_late_doc;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isLateDoc()
|
||||
{
|
||||
return $this->flag_late_doc;
|
||||
}
|
||||
|
||||
public function setLateDocReason($late_doc_reason)
|
||||
{
|
||||
$this->late_doc_reason = $late_doc_reason;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLateDocReason()
|
||||
{
|
||||
return $this->late_doc_reason;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue