Add or number to JobOrder entity #153

This commit is contained in:
Kendrick Chan 2018-07-05 15:19:44 +08:00
parent efee1f98ae
commit 052f3dfe62
2 changed files with 20 additions and 0 deletions

View file

@ -385,6 +385,8 @@ class RAPIController extends Controller
'plate_number' => $cv->getPlateNumber(),
'color' => $cv->getColor(),
],
'or_num' => $jo->getORNum(),
'or_name' => $jo->getORName(),
'delivery_instructions' => $jo->getDeliveryInstructions(),
'delivery_address' => $jo->getDeliveryAddress(),
'landmark' => $jo->getLandmark(),

View file

@ -208,6 +208,12 @@ class JobOrder
*/
protected $mode_of_payment;
// OR number
/**
* @ORM\Column(type="string", length=80, nullable=true)
*/
protected $or_num;
// name to put in OR
/**
* @ORM\Column(type="string", length=80)
@ -235,6 +241,7 @@ class JobOrder
$this->source = 'mobile';
$this->mode_of_payment = ModeOfPayment::CASH;
$this->or_name = '';
$this->or_num = '';
$this->landmark = '';
$this->promo_detail = '';
@ -571,6 +578,17 @@ class JobOrder
return $this->mode_of_payment;
}
public function setORNum($num)
{
$this->or_num = $num;
return $this;
}
public function getORNum()
{
return $this->or_num;
}
public function setORName($name)
{
$this->or_name = $name;