Le champ TVA devient un select (0 %, 2,1 %, 5,5 %, 10 %, 20 %) plutôt qu'une saisie libre, avec une option "Autre (préciser)" qui révèle le champ décimal existant -- indispensable pour les lignes migrées, dont le taux rétro-calculé (figli_compta_ledger_update_8005()) est souvent un taux effectif non standard qu'il ne faut surtout pas forcer à s'aligner sur l'une des 5 valeurs officielles. Montant TTC passe de readonly à #disabled : non focusable, non éditable même via les flèches d'un input number, et Form API rejette toute valeur soumise malgré tout au profit de #default_value. Le select est un élément de formulaire à part (pas un widget de champ) pour éviter que WidgetBase::extractFormValues() ne s'étouffe sur une clé étrangère mêlée aux valeurs de field_tva -- un #validate callback recopie la valeur choisie dans field_tva au moment opportun (après tous les #validate, avant la reconstruction de l'entité au submit). L'affichage/masquage du champ "Autre" repose sur du JS simple plutôt que sur #states : #states pose bien l'attribut data-drupal-states mais ne bascule jamais la visibilité dans cette modale AJAX précise, pour une raison non identifiée (un #states pourtant fonctionnel existe juste au-dessus, sur field_entree_liee, qui surveille un vrai champ Field API plutôt qu'un select ajouté à la main).
Drupal is an open source content management platform supporting a variety of websites ranging from personal weblogs to large community-driven websites. For more information, visit the Drupal website, Drupal.org, and join the Drupal community.
Contributing
Drupal is developed on Drupal.org, the home of the international Drupal community since 2001!
Drupal.org hosts Drupal's GitLab repository, its issue queue, and its documentation. Before you start working on code, be sure to search the issue queue and create an issue if your aren't able to find an existing issue.
Every issue on Drupal.org automatically creates a new community-accessible fork that you can contribute to. Learn more about the code contribution process on the Issue forks & merge requests page.
Usage
For a brief introduction, see USAGE.txt. You can also find guides, API references, and more by visiting Drupal's documentation page.
You can quickly extend Drupal's core feature set by installing any of its thousands of free and open source modules. With Drupal and its module ecosystem, you can often build most or all of what your project needs before writing a single line of code.
Changelog
Drupal keeps detailed change records. You can search Drupal's changes for a record of every notable breaking change and new feature since 2011.
Security
For a list of security announcements, see the Security advisories page (available as an RSS feed). This page also describes how to subscribe to these announcements via email.
For information about the Drupal security process, or to find out how to report a potential security issue to the Drupal security team, see the Security team page.
Need a helping hand?
Visit the Support page or browse over a thousand Drupal providers offering design, strategy, development, and hosting services.
Legal matters
Know your rights when using Drupal by reading Drupal core's license.
Learn about the Drupal trademark and logo policy here.