Add or number to JobOrder entity #153
This commit is contained in:
parent
efee1f98ae
commit
052f3dfe62
2 changed files with 20 additions and 0 deletions
|
|
@ -385,6 +385,8 @@ class RAPIController extends Controller
|
||||||
'plate_number' => $cv->getPlateNumber(),
|
'plate_number' => $cv->getPlateNumber(),
|
||||||
'color' => $cv->getColor(),
|
'color' => $cv->getColor(),
|
||||||
],
|
],
|
||||||
|
'or_num' => $jo->getORNum(),
|
||||||
|
'or_name' => $jo->getORName(),
|
||||||
'delivery_instructions' => $jo->getDeliveryInstructions(),
|
'delivery_instructions' => $jo->getDeliveryInstructions(),
|
||||||
'delivery_address' => $jo->getDeliveryAddress(),
|
'delivery_address' => $jo->getDeliveryAddress(),
|
||||||
'landmark' => $jo->getLandmark(),
|
'landmark' => $jo->getLandmark(),
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,12 @@ class JobOrder
|
||||||
*/
|
*/
|
||||||
protected $mode_of_payment;
|
protected $mode_of_payment;
|
||||||
|
|
||||||
|
// OR number
|
||||||
|
/**
|
||||||
|
* @ORM\Column(type="string", length=80, nullable=true)
|
||||||
|
*/
|
||||||
|
protected $or_num;
|
||||||
|
|
||||||
// name to put in OR
|
// name to put in OR
|
||||||
/**
|
/**
|
||||||
* @ORM\Column(type="string", length=80)
|
* @ORM\Column(type="string", length=80)
|
||||||
|
|
@ -235,6 +241,7 @@ class JobOrder
|
||||||
$this->source = 'mobile';
|
$this->source = 'mobile';
|
||||||
$this->mode_of_payment = ModeOfPayment::CASH;
|
$this->mode_of_payment = ModeOfPayment::CASH;
|
||||||
$this->or_name = '';
|
$this->or_name = '';
|
||||||
|
$this->or_num = '';
|
||||||
$this->landmark = '';
|
$this->landmark = '';
|
||||||
$this->promo_detail = '';
|
$this->promo_detail = '';
|
||||||
|
|
||||||
|
|
@ -571,6 +578,17 @@ class JobOrder
|
||||||
return $this->mode_of_payment;
|
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)
|
public function setORName($name)
|
||||||
{
|
{
|
||||||
$this->or_name = $name;
|
$this->or_name = $name;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue