Add priority field for JobOrder #360
This commit is contained in:
parent
506505bff5
commit
1ab5909dfd
1 changed files with 21 additions and 0 deletions
|
|
@ -280,6 +280,14 @@ class JobOrder
|
||||||
*/
|
*/
|
||||||
protected $hub_rejections;
|
protected $hub_rejections;
|
||||||
|
|
||||||
|
// priority order for riders
|
||||||
|
// NOTE: this is a workaround since changeing rider to jo rider assignment with details requires
|
||||||
|
// too many changes and may break too many things.
|
||||||
|
/**
|
||||||
|
* @ORM\Column(type="integer", options={"default": 0}))
|
||||||
|
*/
|
||||||
|
protected $priority;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->date_create = new DateTime();
|
$this->date_create = new DateTime();
|
||||||
|
|
@ -297,6 +305,8 @@ class JobOrder
|
||||||
$this->trade_in_type = null;
|
$this->trade_in_type = null;
|
||||||
$this->flag_rider_rating = false;
|
$this->flag_rider_rating = false;
|
||||||
$this->flag_coolant = false;
|
$this->flag_coolant = false;
|
||||||
|
|
||||||
|
$this->priority = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getID()
|
public function getID()
|
||||||
|
|
@ -802,4 +812,15 @@ class JobOrder
|
||||||
{
|
{
|
||||||
return $this->hub_rejections;
|
return $this->hub_rejections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setPriority($priority)
|
||||||
|
{
|
||||||
|
$this->priority = $priority;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getPriority()
|
||||||
|
{
|
||||||
|
return $this->priority;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue