From 52f075ccbaf2aa6cff59f0f9f47a31208e2a3561 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 10 Feb 2020 02:48:21 +0000 Subject: [PATCH 1/7] Add new fields to customer. #324 --- src/Entity/Customer.php | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/Entity/Customer.php b/src/Entity/Customer.php index d9dd9b98..afad3ce9 100644 --- a/src/Entity/Customer.php +++ b/src/Entity/Customer.php @@ -165,6 +165,21 @@ class Customer */ protected $privpol_promo; + /** + * @ORM\Column(type="boolean") + */ + protected $flag_promo_email; + + /** + * @ORM\Column(type="boolean") + */ + protected $flag_promo_sms; + + /** + * @ORM\Column(type="boolean") + */ + protected $flag_dpa_consent; + public function __construct() { $this->numbers = new ArrayCollection(); @@ -191,6 +206,10 @@ class Customer $this->priv_promo = 0; $this->flag_csat = false; + + $this->flag_promo_email = false; + $this->flag_promo_sms = false; + $this->flag_dpa_consent = false; } public function getID() @@ -485,5 +504,36 @@ class Customer return $this->privpol_promo; } + public function setPromoEmail($flag_promo_email = true) + { + $this->flag_promo_email = $flag_promo_email; + return $this; + } + public function isPromoEmail() + { + return $this->flag_promo_email; + } + + public function setPromoSms($flag_promo_sms = true) + { + $this->flag_promo_sms = $flag_promo_sms; + return $this; + } + + public function isPromoSms() + { + return $this->flag_promo_sms; + } + + public function setDpaConsent($flag_dpa_consent = true) + { + $this->flag_dpa_consent = $flag_dpa_consent; + return $this; + } + + public function isDpaConsent() + { + return $this->flag_dpa_consent; + } } From e260edc80d7628fefb60dd7bf06609dd627ca6d2 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 10 Feb 2020 03:40:00 +0000 Subject: [PATCH 2/7] Add new fields to incoming job order form. #324 --- templates/job-order/form.html.twig | 36 +++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/templates/job-order/form.html.twig b/templates/job-order/form.html.twig index fe9f00ac..8b250b52 100644 --- a/templates/job-order/form.html.twig +++ b/templates/job-order/form.html.twig @@ -148,6 +148,10 @@ +
+ + +
@@ -295,8 +299,8 @@
-
-
+
+
-
+
@@ -331,6 +335,32 @@
+
+
+
+
+ +
+ + +
+
+
+
+
+ + + +
+