Add promo detail field in job order #UAT
This commit is contained in:
parent
f807c7041e
commit
bc4a2ac7f7
3 changed files with 26 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ class JobOrderController extends BaseController
|
|||
->setTier2Notes($req->request->get('tier2_notes'))
|
||||
->setDeliveryAddress($req->request->get('delivery_address'))
|
||||
->setORName($req->request->get('or_name'))
|
||||
->setPromoDetail($req->request->get('promo_detail'))
|
||||
->setLandmark($req->request->get('landmark'));
|
||||
|
||||
// check if reference JO is set and validate
|
||||
|
|
|
|||
|
|
@ -199,16 +199,24 @@ class JobOrder
|
|||
*/
|
||||
protected $ref_jo;
|
||||
|
||||
// mode of payment
|
||||
/**
|
||||
* @ORM\Column(type="string", length=50)
|
||||
*/
|
||||
protected $mode_of_payment;
|
||||
|
||||
// name to put in OR
|
||||
/**
|
||||
* @ORM\Column(type="string", length=80)
|
||||
*/
|
||||
protected $or_name;
|
||||
|
||||
// details needed by promo - employee id / card number / refered by
|
||||
/**
|
||||
* @ORM\Column(type="string", length=80)
|
||||
*/
|
||||
protected $promo_detail;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->date_create = new DateTime();
|
||||
|
|
@ -219,6 +227,7 @@ class JobOrder
|
|||
$this->mode_of_payment = ModeOfPayment::CASH;
|
||||
$this->or_name = '';
|
||||
$this->landmark = '';
|
||||
$this->promo_detail = '';
|
||||
}
|
||||
|
||||
public function getID()
|
||||
|
|
@ -551,4 +560,15 @@ class JobOrder
|
|||
{
|
||||
return $this->or_name;
|
||||
}
|
||||
|
||||
public function setPromoDetail($detail)
|
||||
{
|
||||
$this->promo_detail = $detail;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPromoDetail()
|
||||
{
|
||||
return $this->promo_detail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -394,6 +394,11 @@
|
|||
<input type="text" name="or_name" id="or_name" class="form-control m-input" value="{{ obj.getORName|default('') }}">
|
||||
<div class="form-control-feedback hide" data-field="or_name"></div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<label data-field="promo_detail">Employee ID / Card Number / Referred By</label>
|
||||
<input type="text" name="promo_detail" id="promo_detail" class="form-control m-input" value="{{ obj.getPromoDetail|default('') }}">
|
||||
<div class="form-control-feedback hide" data-field="promo_detail"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group m-form__group row">
|
||||
<div class="col-lg-6">
|
||||
|
|
|
|||
Loading…
Reference in a new issue