Project

General

Profile

Actions

Anomalie #18589

closed

[INPI] [REVIEW] Bordereau recommandé : Impression du descriptif de pli - informations manquantes

Added by Support Maarch about 3 years ago. Updated almost 3 years ago.

Status:
R&D - Terminé
Priority:
2-Sérieux
Assignee:
-
Target version:
Start date:
10/07/2021
Due date:
11/16/2021

Description

Lors de l'impression du descriptif de pli, il manque le nom prénom du destinataire lorsqu'il n'y a pas de company.

En effet, soit on doit avoir avoir la raison sociale quand cela est renseigné, soit on a le prénom nom si la company n'est pas renseignée

Pour corriger le problème le temps d'avoir la correction, j'ai modifié le fichier src/app/registeredMail/controllers/RegisteredMailController.php

J'ai changé le code à partir de la ligne 1062

if (strlen($recipient[1] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7]) > 60) {
                $pdf->Cell(95, 10, $recipient[1], 1);
                $pdf->SetXY($pdf->GetX() - 95, $pdf->GetY() + 3);
                $pdf->Cell(95, 10, $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 0);
                $pdf->SetXY($pdf->GetX() + 95, $pdf->GetY() - 3);
            } else {
                $pdf->Cell(95, 10, $recipient[1] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 1);
            } 

par

if (!empty($recipient[1])){
			if (strlen($recipient[1] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7]) > 60) {
                $pdf->Cell(95, 10, $recipient[1], 1);
                $pdf->SetXY($pdf->GetX() - 95, $pdf->GetY() + 3);
                $pdf->Cell(95, 10, $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 0);
                $pdf->SetXY($pdf->GetX() + 95, $pdf->GetY() - 3);
            } else {
                $pdf->Cell(95, 10, $recipient[1] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 1);
            }
			} else {
				if (strlen($recipient[2] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7]) > 60) {
					$pdf->Cell(95, 10, $recipient[2], 1);
					$pdf->SetXY($pdf->GetX() - 95, $pdf->GetY() + 3);
					$pdf->Cell(95, 10, $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 0);
					$pdf->SetXY($pdf->GetX() + 95, $pdf->GetY() - 3);
				} else {
					$pdf->Cell(95, 10, $recipient[2] . " " . $recipient[4] . " " . $recipient[6] . " " . $recipient[7], 1);
				}
			}

Related issues 1 (0 open1 closed)

Related to Backlog Courrier - Anomalie #18437: Bordereau recommandé : Impression du descriptif de pli impossibleR&D - TerminéGuillaume HEURTIER10/01/202111/16/2021Actions
Actions #2

Updated by Support Maarch about 3 years ago

  • Status changed from A traiter to R&D - A étudier

Bonjour,

Pouvez vous analyser la question de l'INPI s'il vous plait.

Il s'agit d'un client custom qui était géré par Laurent.

Merci d'avance

Actions #3

Updated by Support Maarch about 3 years ago

  • Target version set to 290
Actions #4

Updated by Support Maarch about 3 years ago

  • Subject changed from [INPI] Bordereau recommandé : Impression du descriptif de pli - informations manquantes to [INPI] demande d'anlyse du code Bordereau recommandé : Impression du descriptif de pli - informations manquantes
  • Status changed from R&D - A étudier to A traiter
  • Priority changed from 3-Mineur to 1-Majeur
Actions #5

Updated by Emmanuel DILLARD about 3 years ago

  • Tracker changed from Action to Anomalie
  • Status changed from A traiter to R&D - A planifier
  • Target version changed from 290 to 20.10
Actions #6

Updated by Emmanuel DILLARD about 3 years ago

  • Related to Anomalie #18437: Bordereau recommandé : Impression du descriptif de pli impossible added
Actions #7

Updated by Emmanuel DILLARD about 3 years ago

  • Subject changed from [INPI] demande d'anlyse du code Bordereau recommandé : Impression du descriptif de pli - informations manquantes to [INPI] [ANALYSE] Bordereau recommandé : Impression du descriptif de pli - informations manquantes
Actions #8

Updated by Emmanuel DILLARD about 3 years ago

  • Subject changed from [INPI] [ANALYSE] Bordereau recommandé : Impression du descriptif de pli - informations manquantes to [INPI] [REVIEW] Bordereau recommandé : Impression du descriptif de pli - informations manquantes
  • Due date set to 11/16/2021
  • Status changed from R&D - A planifier to R&D - En cours
  • Assignee deleted (Support Maarch)
  • Priority changed from 1-Majeur to 2-Sérieux
Actions #9

Updated by Quentin RIBAC about 3 years ago

  • Assignee set to Quentin RIBAC
Actions #10

Updated by GIT LAB about 3 years ago

Commit ajouté sur la branche fix/18589/20.10 de MaarchCourrier
FIX #18589 TIME 1:00 displaying recipientLabel correctly in deposit pdf
https://labs.maarch.org/maarch/MaarchCourrier/commit/f2b0c1fdc03bceeadcec6ac6eac009a286f1895a

Actions #11

Updated by GIT LAB about 3 years ago

Commit ajouté sur la branche fix/18589/20.10 de MaarchCourrier
FIX #18589 TIME 0:05 trimming recipientLabel
https://labs.maarch.org/maarch/MaarchCourrier/commit/51990a01aa09307c46ef641657bbcc7e6ec6938f

Actions #12

Updated by GIT LAB about 3 years ago

Commit ajouté sur la branche fix/18589/develop de MaarchCourrier
FIX #18589 TIME 0:10 display better recipient label in deposit list pdf
https://labs.maarch.org/maarch/MaarchCourrier/commit/eb6ad18f159cc9df9b637f2a24c8ff3d428cd643

Actions #13

Updated by GIT LAB about 3 years ago

Commit ajouté sur la branche fix/18589/21.03 de MaarchCourrier
FIX #18589 TIME 0:10 display better recipient label in deposit list pdf
https://labs.maarch.org/maarch/MaarchCourrier/commit/2c43d9020a5cf7c263a1a09a06d6ecf656aaf8f5

Actions #14

Updated by Quentin RIBAC about 3 years ago

  • Assignee deleted (Quentin RIBAC)
Actions #15

Updated by Quentin RIBAC about 3 years ago

  • Status changed from R&D - En cours to R&D - En test
Actions #16

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #17

Updated by Hamza HRAMCHI about 3 years ago

  • Status changed from R&D - En test to R&D - Terminé
Actions #18

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #19

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #20

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #21

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #22

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #23

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions #24

Updated by GIT LAB about 3 years ago

[MERGE REQUEST] Mergé sur develop ()

Actions

Also available in: Atom PDF