Project

General

Profile

Anomalie #18589

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

Added by Support Maarch 7 months ago. Updated 5 months ago.

Status:
Développé / Analysé (S)
Priority:
2-Sérieux
Assignee:
-
Target version:
Start date:
10/07/2021
Due date:
11/16/2021
Tags Courrier:
20.10.16

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

Related to Backlog Courrier - Anomalie #18437: Bordereau recommandé : Impression du descriptif de pli impossibleDéveloppé / Analysé (S)2021-10-012021-11-16

History

#2 Updated by Support Maarch 7 months ago

  • Status changed from A traiter to 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

#3 Updated by Support Maarch 7 months ago

  • Target version set to 290

#4 Updated by Support Maarch 7 months 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 A étudier to A traiter
  • Priority changed from 3-Mineur to 1-Majeur

#5 Updated by Emmanuel DILLARD 7 months ago

  • Tracker changed from Action to Anomalie
  • Status changed from A traiter to Prêt à développer
  • Target version changed from 290 to 20.10 (Actif)

#6 Updated by Emmanuel DILLARD 7 months ago

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

#7 Updated by Emmanuel DILLARD 7 months 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

#8 Updated by Emmanuel DILLARD 7 months 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 Prêt à développer to En cours de dev (S)
  • Assignee deleted (Support Maarch)
  • Priority changed from 1-Majeur to 2-Sérieux

#9 Updated by Quentin RIBAC 7 months ago

  • Assignee set to Quentin RIBAC

#10 Updated by GIT LAB 7 months 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

#11 Updated by GIT LAB 7 months 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

#12 Updated by GIT LAB 7 months 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

#13 Updated by GIT LAB 7 months 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

#14 Updated by Quentin RIBAC 7 months ago

  • Assignee deleted (Quentin RIBAC)

#15 Updated by Quentin RIBAC 7 months ago

  • Status changed from En cours de dev (S) to A tester (S)

#16 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#17 Updated by Hamza HRAMCHI 6 months ago

  • Status changed from A tester (S) to Développé / Analysé (S)

#18 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#19 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#20 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#21 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#22 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#23 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#24 Updated by GIT LAB 6 months ago

[MERGE REQUEST] Mergé sur develop ()

#25 Updated by Quentin RIBAC 5 months ago

  • Tags Courrier 20.10.16 added

Also available in: Atom PDF