Changement numéro Facture ==> Bugg

Répondre
Afulay
Messages : 9
Enregistré le : dim. janv. 24, 2016 10:44 pm

dim. juin 12, 2022 4:57 pm

Bonjour,

J'étais sur une facture numérotée 22045, j'ai essayé de changer le numéro pour 22046 pour libérer le numéro 22045 pour une facture que j'allais saisir ultérieurement.
A la suite de ça, le logiciel bloque ! Il n'arrive même pas à afficher la liste des ventes ( factures ).

Voici le code erreur:

UncaughtException on thread Thread[AWT-EventQueue-0,6,main]

The row -MODE_REGLEMENT[1922]-does not exist.
org.openconcerto.utils.ExceptionHandler: UncaughtException on thread Thread[AWT-EventQueue-0,6,main]
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:121)
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:125)
at org.openconcerto.erp.config.Gestion$2.uncaughtException(Gestion.java:195)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.awt.EventDispatchThread.processException(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: The row -MODE_REGLEMENT[1922]-does not exist.
at org.openconcerto.sql.model.SQLRow.getObject(SQLRow.java:349)
at org.openconcerto.erp.core.sales.invoice.ui.ListeFactureRenderer.getTableCellRendererComponent(ListeFactureRenderer.java:103)
at org.openconcerto.ui.table.AlternateTableCellRenderer.getTableCellRendererComponent(AlternateTableCellRenderer.java:193)
at javax.swing.JTable.prepareRenderer(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1200(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
... 6 more
SRI
Messages : 256
Enregistré le : mer. mars 15, 2017 8:50 pm

mer. juin 15, 2022 11:52 am

Je pense que ce n'est pas le bon moyen pour "sauter" un numéro de facture.
Tu devrais plutôt aller dans Fichier -> Préférences -> Globales -> Numérotation. Et à la ligne "Factures Format", tu changes le numéro contenu dans " Prochain numéro". Tu mets 46 au lieu de 45 (car ton format est je suppose de la forme YY000).
Tu valides, et tu saisies ta nouvelle facture. Normalement, elle a alors le numéro 22046 et tu as sauté le 22045.
Utilisateur Cloud avec un contrat de maintenance.
JacquesF
Messages : 121
Enregistré le : jeu. mars 14, 2019 10:44 am

mer. juin 15, 2022 3:01 pm

Je suis loin d'être expert en compta, mais il me semble que les numéros de factures ne doivent pas être modifiés (du point de vue légal).
La solution la plus simple serait de préparer une facture incomplète, non réglée pour le client concerné et ensuite revenir dessus en modification.

Jacques
OpenConcerto v1.7.0
Configuration multiposte - Serveur Postgresql v11.11 sous Linux (Debian 10.9)
Clients Linux (Mageia & Kubuntu) & Windows (7 Pro et 10 Pro)
Répondre