Resolve "Rider app changes" #965

Merged
jankstudio merged 2 commits from 153-rider-app-changes into master 2018-07-05 07:51:59 +00:00
2 changed files with 20 additions and 0 deletions
Showing only changes of commit 052f3dfe62 - Show all commits

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;