This commit is contained in:
Thibault Richy 2019-05-20 15:11:44 +02:00
parent 445c072bcc
commit c1a23c2b07

View file

@ -262,7 +262,7 @@ trait GenerateBR {
if($coupon->coupon_norme == 1 && strlen($contact->contact_cp)==4){
//BELGE
$txt_mentions = $legalMentions[0]."\n\r".$legalMentions[1]." ".$coupon->coupon_rcs;
$ImageMentionFond = imagecreate(420, 150);
$ImageMentionFond = imagecreate(420, 145);
$boxMentions = imagettfbbox(7, 0, $arial, $txt_mentions);
$white = imagecolorallocate($ImageMentionFond, 255, 255, 255);
imagefilledrectangle($ImageMentionFond, 0, 0, 414, 99, $white);
@ -274,7 +274,7 @@ trait GenerateBR {
$y = $y +9;
}
//imagecolortransparent($ImageMentionFond, $white);
imagecopy($mask, $ImageMentionFond, 335, 230, 0, 0, imagesx($ImageMentionFond), imagesy($ImageMentionFond));
imagecopy($mask, $ImageMentionFond, 335, 235, 0, 0, imagesx($ImageMentionFond), imagesy($ImageMentionFond));
} else {
//FR
$txt_mentions = $legalMentions[0]." ".$coupon->coupon_rcs;