Merge branch 'staging-HFC' into production-hfc
This commit is contained in:
commit
005034f587
@ -57,8 +57,8 @@ class InvoiceGroupPdfHandler extends FPDF
|
|||||||
function Header()
|
function Header()
|
||||||
{
|
{
|
||||||
if ($this->logo != "nothing") {
|
if ($this->logo != "nothing") {
|
||||||
$this->Image($this->logoPath . "logo.png", 4, 2, 50, 35);
|
$this->Image($this->logoPath . "logo.png", 4, 2, 36, 37);
|
||||||
$this->AddWatermark();
|
// $this->AddWatermark();
|
||||||
} else {
|
} else {
|
||||||
$this->Cell(55, 30, '');
|
$this->Cell(55, 30, '');
|
||||||
}
|
}
|
||||||
@ -68,6 +68,7 @@ class InvoiceGroupPdfHandler extends FPDF
|
|||||||
}
|
}
|
||||||
function AddWatermark()
|
function AddWatermark()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$this->SetAlpha(0.2);
|
$this->SetAlpha(0.2);
|
||||||
|
|
||||||
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
||||||
@ -89,6 +90,10 @@ class InvoiceGroupPdfHandler extends FPDF
|
|||||||
// Ajouter l'image en filigrane
|
// Ajouter l'image en filigrane
|
||||||
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
||||||
$this->SetAlpha(0.1); // Définir l'opacité
|
$this->SetAlpha(0.1); // Définir l'opacité
|
||||||
|
|
||||||
|
} catch (\Throwable $th) {
|
||||||
|
//throw $th;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function SetAlpha($alpha)
|
function SetAlpha($alpha)
|
||||||
|
|||||||
@ -52,8 +52,8 @@ class InvoicePdfHandler extends FPDF
|
|||||||
function Header()
|
function Header()
|
||||||
{
|
{
|
||||||
if ($this->logo != "nothing") {
|
if ($this->logo != "nothing") {
|
||||||
$this->Image($this->logoPath . "logo.png", 4, 2, 50, 35);
|
$this->Image($this->logoPath . "logo.png", 4, 2, 36, 37);
|
||||||
$this->AddWatermark();
|
// $this->AddWatermark();
|
||||||
} else {
|
} else {
|
||||||
$this->Cell(55, 30, '');
|
$this->Cell(55, 30, '');
|
||||||
}
|
}
|
||||||
@ -61,6 +61,7 @@ class InvoicePdfHandler extends FPDF
|
|||||||
|
|
||||||
function AddWatermark()
|
function AddWatermark()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$this->SetAlpha(0.2);
|
$this->SetAlpha(0.2);
|
||||||
|
|
||||||
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
$imagePath = $this->logoPath . "filigrane_pdf.png";
|
||||||
@ -82,6 +83,9 @@ class InvoicePdfHandler extends FPDF
|
|||||||
// Ajouter l'image en filigrane
|
// Ajouter l'image en filigrane
|
||||||
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
$this->Image($imagePath, $x, $y, $width, $height); // Chemin, position x, position y, largeur, hauteur
|
||||||
$this->SetAlpha(0.1); // Définir l'opacité
|
$this->SetAlpha(0.1); // Définir l'opacité
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
// Handle exception if needed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function SetAlpha($alpha)
|
function SetAlpha($alpha)
|
||||||
|
|||||||
@ -38,7 +38,7 @@ class MailerService {
|
|||||||
){
|
){
|
||||||
$this->adminStorage = $rootFolder->getUserFolder(BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD);
|
$this->adminStorage = $rootFolder->getUserFolder(BddConstant::DEFAULT_ADMIN_ID_NEXTCLOUD);
|
||||||
}
|
}
|
||||||
public function getFooterContent ($userName = "Johann"){
|
public function getFooterContent ($userName = "Vanessa"){
|
||||||
$wish = "<p>Vous en souhaitant bonne réception. </p>";
|
$wish = "<p>Vous en souhaitant bonne réception. </p>";
|
||||||
$cordialement = "<p> Cordialement,</p>";
|
$cordialement = "<p> Cordialement,</p>";
|
||||||
$userName = "<p> {$userName} </p>" ;
|
$userName = "<p> {$userName} </p>" ;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user