162 lines
2.7 KiB
PHP
162 lines
2.7 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use DateTime;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="legacy_job_order_row")
|
|
*/
|
|
class LegacyJobOrderRow
|
|
{
|
|
// legacy internal id
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
protected $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=40)
|
|
*/
|
|
protected $item;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=10)
|
|
*/
|
|
protected $qty;
|
|
|
|
/**
|
|
* @ORM\Column(type="decimal", precision=9, scale=2)
|
|
*/
|
|
protected $price;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=30)
|
|
*/
|
|
protected $price_level;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=10)
|
|
*/
|
|
protected $status;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=20)
|
|
*/
|
|
protected $account;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=70)
|
|
*/
|
|
protected $enrollee;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="LegacyJobOrder", inversedBy="rows")
|
|
* @ORM\JoinColumn(name="job_order_id", referencedColumnName="id", nullable=true)
|
|
*/
|
|
protected $job_order;
|
|
|
|
public function setID($id)
|
|
{
|
|
$this->id = $id;
|
|
return $this;
|
|
}
|
|
|
|
public function getID()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setItem($item)
|
|
{
|
|
$this->item = $item;
|
|
return $this;
|
|
}
|
|
|
|
public function getItem()
|
|
{
|
|
return $this->item;
|
|
}
|
|
|
|
public function setQuantity($qty)
|
|
{
|
|
$this->qty = $qty;
|
|
return $this;
|
|
}
|
|
|
|
public function getQuantity()
|
|
{
|
|
return $this->qty;
|
|
}
|
|
|
|
public function setPrice($price)
|
|
{
|
|
$this->price = $price;
|
|
return $this;
|
|
}
|
|
|
|
public function getPrice()
|
|
{
|
|
return $this->price;
|
|
}
|
|
|
|
public function setPriceLevel($price_level)
|
|
{
|
|
$this->price_level = $price_level;
|
|
return $this;
|
|
}
|
|
|
|
public function getPriceLevel()
|
|
{
|
|
return $this->price_level;
|
|
}
|
|
|
|
public function setStatus($status)
|
|
{
|
|
$this->status = $status;
|
|
return $this;
|
|
}
|
|
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function setAccount($account)
|
|
{
|
|
$this->account = $account;
|
|
return $this;
|
|
}
|
|
|
|
public function getAccount()
|
|
{
|
|
return $this->account;
|
|
}
|
|
|
|
public function setEnrollee($enrollee)
|
|
{
|
|
$this->enrollee = $enrollee;
|
|
return $this;
|
|
}
|
|
|
|
public function getEnrollee()
|
|
{
|
|
return $this->enrollee;
|
|
}
|
|
|
|
public function setJobOrder(LegacyJobOrder $job_order)
|
|
{
|
|
$this->job_order = $job_order;
|
|
return $this;
|
|
}
|
|
|
|
public function getJobOrder()
|
|
{
|
|
return $this->job_order;
|
|
}
|
|
|
|
}
|