thanato email , date for new functionnalities h2f
This commit is contained in:
parent
ad19cce002
commit
7310013da7
@ -26,6 +26,8 @@ class Bdd {
|
|||||||
private String $tableprefix;
|
private String $tableprefix;
|
||||||
private $l;
|
private $l;
|
||||||
|
|
||||||
|
private $dateForNewTrajetFunctionnalities = "2025-04-25";
|
||||||
|
|
||||||
public function __construct(IDbConnection $db,
|
public function __construct(IDbConnection $db,
|
||||||
IL10N $l) {
|
IL10N $l) {
|
||||||
$this->whiteColumn = array("date", "num", "id_client", "entreprise", "nom", "prenom", "legal_one", "telephone", "mail", "adresse", "produit_id", "quantite", "date_paiement", "type_paiement",
|
$this->whiteColumn = array("date", "num", "id_client", "entreprise", "nom", "prenom", "legal_one", "telephone", "mail", "adresse", "produit_id", "quantite", "date_paiement", "type_paiement",
|
||||||
@ -1335,7 +1337,7 @@ class Bdd {
|
|||||||
* l'ajout d'un thanato depuis son domicile ver le siege .
|
* l'ajout d'un thanato depuis son domicile ver le siege .
|
||||||
*/
|
*/
|
||||||
$dateTime = new DateTime($date);
|
$dateTime = new DateTime($date);
|
||||||
$dateTimeForFunctionalityGoToHome = new DateTime('2025-04-07');
|
$dateTimeForFunctionalityGoToHome = new DateTime($this->dateForNewTrajetFunctionnalities);//Don't edit this date, it's a date for the new functionality
|
||||||
|
|
||||||
if ( $dateTime <= $dateTimeForFunctionalityGoToHome) {
|
if ( $dateTime <= $dateTimeForFunctionalityGoToHome) {
|
||||||
return;
|
return;
|
||||||
@ -1384,7 +1386,7 @@ class Bdd {
|
|||||||
|
|
||||||
foreach($datesLignes as $date => $currentDateLignes){
|
foreach($datesLignes as $date => $currentDateLignes){
|
||||||
$dateTime = new DateTime($date);
|
$dateTime = new DateTime($date);
|
||||||
$dateTimeForFunctionalityGoToHome = new DateTime('2025-04-07');//Don't edit this date, it's a date for the new functionality
|
$dateTimeForFunctionalityGoToHome = new DateTime($this->dateForNewTrajetFunctionnalities);//Don't edit this date, it's a date for the new functionality
|
||||||
|
|
||||||
if ( $dateTime <= $dateTimeForFunctionalityGoToHome) {
|
if ( $dateTime <= $dateTimeForFunctionalityGoToHome) {
|
||||||
|
|
||||||
|
|||||||
@ -313,7 +313,7 @@ class GestionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($thanatoIsSubcontractor && $devisExist) {
|
if ($thanatoIsSubcontractor && $devisExist) {
|
||||||
$thanatoHasEmail = $thanato["thanato_email"] != null;
|
$thanatoHasEmail = $thanato["thanato_email"] != null && $thanato["thanato_email"] != "" && $thanato["thanato_email"] != "-";
|
||||||
if($thanatoHasEmail){
|
if($thanatoHasEmail){
|
||||||
$emailBody = $this->extractBodyOfEmailAttachment(VCalendarHelpers::getEmailIdInVCalendar($vCalendarString));
|
$emailBody = $this->extractBodyOfEmailAttachment(VCalendarHelpers::getEmailIdInVCalendar($vCalendarString));
|
||||||
$this->sendEmailAndAttachment($thanato["thanato_email"] , $devis["defunt_nom"],$emailBody ,$attachmentsCalendar ,$orderContent);
|
$this->sendEmailAndAttachment($thanato["thanato_email"] , $devis["defunt_nom"],$emailBody ,$attachmentsCalendar ,$orderContent);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user