|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($isBilled && $producerModule->getSolver()->isFreeBillingPeriodSponsorship($producer)) { |
|
|
if($isBilled && $producerModule->getSolver()->isFreeBillingPeriodSponsorship($producer)) { |
|
|
$str .= "<br /><p><span class=\"glyphicon glyphicon-warning-sign\"></span> <strong>Pas de facturation, offre de parrainage jusqu'au ".$producerModule->getSolver()->getDateEndFreeBillingPeriodSponsorship($producer)->format('d/m/Y')."</strong></p>"; |
|
|
$str .= "<br /><p><span class=\"glyphicon glyphicon-warning-sign\"></span> <strong>Pas de facturation, offre de parrainage jusqu'au ".$producerModule->getSolver()->getDateEndFreeBillingPeriodSponsorship($producer)->format('d/m/Y')."</strong></p>"; |
|
|
if(!$producer->getSponsorshipSponsorReward()) { |
|
|
|
|
|
$str .= '<p><i class="fa fa-gift"></i> Créer un avoir de 30€ pour le parrain <strong>'.Html::encode($producer->getSponsoredBy()->getName()).'</strong> sur Dolibarr et valider la récompense parrain.</p>'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
$str .= '<p><i class="fa fa-gift"></i> Créer un avoir pour le parrain <strong>'.Html::encode($producer->getSponsoredBy()->getName()).'</strong> sur Dolibarr.</p>'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return $str; |
|
|
return $str; |