-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TRA-15158] Possibilité de réviser la quantité refusée d'un BSD + correctifs #3961
base: tra-15269
Are you sure you want to change the base?
Conversation
|
@@ -41,19 +41,21 @@ export function BsddRequestRevisionCancelationInput({ bsdd, onChange }: Props) { | |||
CANCELLABLE_BSDD_STATUSES.includes(bsdd.status) && !isAppendix1; | |||
|
|||
return ( | |||
<> | |||
<div className="fr-mb-4v"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -33,7 +34,7 @@ const LabelContent = ({ | |||
defaultValue?: string | number | React.ReactNode; | |||
suffix?: string; | |||
}) => | |||
!!value ? ( | |||
isDefined(value) ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention avec !!
, ça marche pas avec zéro. Donc ça n'affichait pas un champ révisé qui passe de zéro à une autre valeur.
Contexte
Implémentation front de la révision de la
quantityRefused
, avec en bonus un petit fix pour ne pas afficher la révision sur les quantités tant que le déchet n'a pas été reçu.Points de vigilance pour les intégrateurs
Il est possible d'utiliser la révision pour ajouter une
quantityRefused
à un bordereau qui n'en avait pas. Vous pouvez donc utiliser la révision pour corriger des bordereaux legacy.Démo
Screencast.from.2025-02-18.14-49-54.webm
Ticket Favro
Permettre de réviser la quantité refusée lors d'un refus partiel