Page 1 sur 1

Changement numéro Facture ==> Bugg

Posté : dim. juin 12, 2022 4:57 pm
par Afulay
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

Re: Changement numéro Facture ==> Bugg

Posté : mer. juin 15, 2022 11:52 am
par SRI
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.

Re: Changement numéro Facture ==> Bugg

Posté : mer. juin 15, 2022 3:01 pm
par JacquesF
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