Merge branch 'staging' into 'production'
Staging fixe attestation See merge request sottye/h2f!2
This commit is contained in:
commit
821ce6270f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -253,15 +253,14 @@ const actions = {
|
|||||||
const foldedComment = foldICSLines(escapedComment)
|
const foldedComment = foldICSLines(escapedComment)
|
||||||
|
|
||||||
let newCommentKeyValue = "COMMENT:"+foldedComment;
|
let newCommentKeyValue = "COMMENT:"+foldedComment;
|
||||||
//let regex = /COMMENT:[^\s]+/;
|
let regex = /^COMMENT:.*(?:\r?\n [^\n]*)*/m;
|
||||||
let regex = /^COMMENT:.*$/m;
|
|
||||||
if(regex.test(icsValue)){
|
if(regex.test(icsValue)){
|
||||||
icsValue = icsValue.replace(regex, newCommentKeyValue);
|
icsValue = icsValue.replace(regex, newCommentKeyValue);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
const customKeyValue = {
|
const customKeyValue = {
|
||||||
"COMMENT": foldedComment
|
"COMMENT": foldedComment
|
||||||
};
|
}
|
||||||
icsValue = setCustomKeyValuesArrayToIcsAndReturnIcs(icsValue,customKeyValue);
|
icsValue = setCustomKeyValuesArrayToIcsAndReturnIcs(icsValue,customKeyValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,13 +87,13 @@ class CareCertificatePdfHandler extends FPDF {
|
|||||||
$this->SetFont('Arial', '', 14);
|
$this->SetFont('Arial', '', 14);
|
||||||
$this->MultiCell(0,7, FileExportHelpers::FormatTextForExport('Employé au sein de notre société et titulaire du diplôme national de Thanatopracteur a effectué des soins de conservation sur le corps du défunt:'));
|
$this->MultiCell(0,7, FileExportHelpers::FormatTextForExport('Employé au sein de notre société et titulaire du diplôme national de Thanatopracteur a effectué des soins de conservation sur le corps du défunt:'));
|
||||||
$this->SetFont('Arial', 'B', 14);
|
$this->SetFont('Arial', 'B', 14);
|
||||||
$this->Cell(0,12, 'Mr/Mme '.$this->devisOfDefunt['defunt_nom'],0,1);
|
$this->Cell(0,12, 'Mr/Mme '. FileExportHelpers::FormatTextForExport($this->devisOfDefunt['defunt_nom']),0,1);
|
||||||
$this->SetFont('Arial', '', 14);
|
$this->SetFont('Arial', '', 14);
|
||||||
$this->Cell(0,12, FileExportHelpers::FormatTextForExport("Qui reposait à l'adresse suivante") . ': ',0,1);
|
$this->Cell(0,12, FileExportHelpers::FormatTextForExport("Qui reposait à l'adresse suivante") . ': ',0,1);
|
||||||
$this->SetFont('Arial', 'B', 14);
|
$this->SetFont('Arial', 'B', 14);
|
||||||
$this->Cell(0,12, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis']),0,1);
|
$this->Cell(0,12, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis']),0,1);
|
||||||
$this->SetFont('Arial', '', 14);
|
$this->SetFont('Arial', '', 14);
|
||||||
$this->Cell(0,12, FileExportHelpers::FormatTextForExport("La présente attestion est établie pour faire valoir ce que de droit."),0,5);
|
$this->Cell(0,12, FileExportHelpers::FormatTextForExport("La présente attestation est établie pour faire valoir ce que de droit."),0,5);
|
||||||
$this->Ln(5);
|
$this->Ln(5);
|
||||||
$this->Cell(0,12,FileExportHelpers::FormatTextForExport('Fait à '). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['configuration']->adresse));
|
$this->Cell(0,12,FileExportHelpers::FormatTextForExport('Fait à '). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['configuration']->adresse));
|
||||||
$this->SetX(150);
|
$this->SetX(150);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user