diff --git a/src/Controller/BatterySizeController.php b/src/Controller/BatterySizeController.php index 5dc2906a..177780e8 100644 --- a/src/Controller/BatterySizeController.php +++ b/src/Controller/BatterySizeController.php @@ -129,7 +129,8 @@ class BatterySizeController extends Controller $obj->setName($req->request->get('name')) ->setTIPriceMotolite($req->request->get('tip_motolite')) ->setTIPricePremium($req->request->get('tip_premium')) - ->setTIPriceOther($req->request->get('tip_other')); + ->setTIPriceOther($req->request->get('tip_other')) + ->setTIPriceLazada($req->request->get('tip_lazada')); } public function addSubmit(Request $req, ValidatorInterface $validator) diff --git a/src/Entity/BatterySize.php b/src/Entity/BatterySize.php index 9fff4d44..8b47d6af 100644 --- a/src/Entity/BatterySize.php +++ b/src/Entity/BatterySize.php @@ -51,12 +51,19 @@ class BatterySize */ protected $tip_other; + // lazada trade-in price + /** + * @ORM\Column(type="decimal", precision=7, scale=2) + */ + protected $tip_lazada; + public function __construct() { $this->batteries = new ArrayCollection(); $this->tip_motolite = 0; $this->tip_premium = 0; $this->tip_other = 0; + $this->tip_lazada = 0; } public function getID() @@ -130,4 +137,16 @@ class BatterySize { return $this->tip_other; } + + public function setTIPriceLazada($price) + { + $this->tip_lazada = $price; + return $this; + } + + public function getTIPriceLazada() + { + return $this->tip_lazada; + } + } diff --git a/templates/battery-size/form.html.twig b/templates/battery-size/form.html.twig index 1af1f342..06d3fadd 100644 --- a/templates/battery-size/form.html.twig +++ b/templates/battery-size/form.html.twig @@ -70,7 +70,16 @@
- + +
+ +
+ + +
+
diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index c0fb8ca1..e9f077a3 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -8,6 +8,7 @@ copyright: Motolite Res-Q battery_size_tradein_brand: Trade-in Motolite battery_size_tradein_premium: Trade-in Premium battery_size_tradein_other: Trade-in Other +battery_size_tradein_lazada: Trade-in Lazada add_cust_vehicle_battery_info: This vehicle is using a Motolite battery jo_title_pdf: Motolite Res-Q Job Order country_code_prefix: '+63'