Add subscription MSRP field to battery sizes #799
This commit is contained in:
parent
219d5c09d3
commit
b67f960055
4 changed files with 38 additions and 10 deletions
|
|
@ -130,7 +130,8 @@ class BatterySizeController extends Controller
|
||||||
->setTIPriceMotolite($req->request->get('tip_motolite'))
|
->setTIPriceMotolite($req->request->get('tip_motolite'))
|
||||||
->setTIPricePremium($req->request->get('tip_premium'))
|
->setTIPricePremium($req->request->get('tip_premium'))
|
||||||
->setTIPriceOther($req->request->get('tip_other'))
|
->setTIPriceOther($req->request->get('tip_other'))
|
||||||
->setTIPriceLazada($req->request->get('tip_lazada'));
|
->setTIPriceLazada($req->request->get('tip_lazada'))
|
||||||
|
->setSubMSRP($req->request->get('sub_msrp'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addSubmit(Request $req, ValidatorInterface $validator)
|
public function addSubmit(Request $req, ValidatorInterface $validator)
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,12 @@ class BatterySize
|
||||||
*/
|
*/
|
||||||
protected $tip_lazada;
|
protected $tip_lazada;
|
||||||
|
|
||||||
|
// subscription msrp
|
||||||
|
/**
|
||||||
|
* @ORM\Column(type="decimal", precision=7, scale=2, nullable=true)
|
||||||
|
*/
|
||||||
|
protected $sub_msrp;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->batteries = new ArrayCollection();
|
$this->batteries = new ArrayCollection();
|
||||||
|
|
@ -64,6 +70,7 @@ class BatterySize
|
||||||
$this->tip_premium = 0;
|
$this->tip_premium = 0;
|
||||||
$this->tip_other = 0;
|
$this->tip_other = 0;
|
||||||
$this->tip_lazada = 0;
|
$this->tip_lazada = 0;
|
||||||
|
$this->sub_msrp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getID()
|
public function getID()
|
||||||
|
|
@ -149,4 +156,14 @@ class BatterySize
|
||||||
return $this->tip_lazada;
|
return $this->tip_lazada;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setSubMSRP($sub_msrp)
|
||||||
|
{
|
||||||
|
$this->sub_msrp = $sub_msrp;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSubMSRP()
|
||||||
|
{
|
||||||
|
return $this->sub_msrp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,15 +71,24 @@
|
||||||
<div class="form-control-feedback hide" data-field="tip_other"></div>
|
<div class="form-control-feedback hide" data-field="tip_other"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group m-form__group row no-border">
|
<div class="form-group m-form__group row no-border">
|
||||||
<label class="col-lg-3 col-form-label" data-field="tip_lazada">
|
<label class="col-lg-3 col-form-label" data-field="tip_lazada">
|
||||||
{% trans %}battery_size_tradein_lazada{% endtrans %}
|
{% trans %}battery_size_tradein_lazada{% endtrans %}
|
||||||
</label>
|
</label>
|
||||||
<div class="col-lg-9">
|
<div class="col-lg-9">
|
||||||
<input type="text" name="tip_lazada" class="form-control m-input" value="{{ obj.getTIPriceLazada }}">
|
<input type="text" name="tip_lazada" class="form-control m-input" value="{{ obj.getTIPriceLazada }}">
|
||||||
<div class="form-control-feedback hide" data-field="tip_lazada"></div>
|
<div class="form-control-feedback hide" data-field="tip_lazada"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group m-form__group row no-border">
|
||||||
|
<label class="col-lg-3 col-form-label" data-field="sub_msrp">
|
||||||
|
{% trans %}battery_Size_sub_msrp{% endtrans %}
|
||||||
|
</label>
|
||||||
|
<div class="col-lg-9">
|
||||||
|
<input type="text" name="sub_msrp" class="form-control m-input" value="{{ obj.getSubMSRP }}">
|
||||||
|
<div class="form-control-feedback hide" data-field="sub_msrp"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="m-portlet__foot m-portlet__foot--fit">
|
<div class="m-portlet__foot m-portlet__foot--fit">
|
||||||
<div class="m-form__actions m-form__actions--solid m-form__actions--right">
|
<div class="m-form__actions m-form__actions--solid m-form__actions--right">
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ battery_size_tradein_brand: Trade-in Motolite
|
||||||
battery_size_tradein_premium: Trade-in Premium
|
battery_size_tradein_premium: Trade-in Premium
|
||||||
battery_size_tradein_other: Trade-in Other
|
battery_size_tradein_other: Trade-in Other
|
||||||
battery_size_tradein_lazada: Trade-in Lazada
|
battery_size_tradein_lazada: Trade-in Lazada
|
||||||
|
battery_Size_sub_msrp: Subscription MSRP
|
||||||
add_cust_vehicle_battery_info: This vehicle is using a Motolite battery
|
add_cust_vehicle_battery_info: This vehicle is using a Motolite battery
|
||||||
jo_title_pdf: Motolite Res-Q Job Order
|
jo_title_pdf: Motolite Res-Q Job Order
|
||||||
country_code_prefix: '+63'
|
country_code_prefix: '+63'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue