Erreur à la cloture de caisse

Répondre
Circuit-Court
Messages : 5
Enregistré le : lun. juin 12, 2017 12:13 pm

mar. juil. 11, 2017 10:09 am

Bonjour,

J'ai une erreur qui apparait à la cloture de la caisse, la rendant impossible :

Une erreur est survenue pendant la clôture.

can't update SQLRowValues on /SAISIE_VENTE_FACTURE_ELEMENT/ : {QTE=1(class java.lang.Integer), PV_HT=8.80(class java.math.BigDecimal), T_PV_HT=8.80(class java.math.BigDecimal), T_PV_TTC=8.8000(class java.math.BigDecimal), ID_TAXE=6(class java.lang.Integer), CODE=chouguer(class java.lang.String), NOM=Chouchen Guermahia 75cl(class java.lang.String), ID_ARTICLE=125(class java.lang.Integer)} : the field ID_ARTICLE points to (ARTICLE[125])
org.openconcerto.utils.ExceptionHandler: Une erreur est survenue pendant la clôture.
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:121)
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:125)
at org.openconcerto.erp.core.sales.pos.POSConfiguration.commitAll(POSConfiguration.java:398)
at org.openconcerto.erp.core.sales.pos.ui.CaisseMenuPanel$2.actionPerformed(CaisseMenuPanel.java:84)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6533)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6298)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalStateException: can't update SQLRowValues on /SAISIE_VENTE_FACTURE_ELEMENT/ : {QTE=1(class java.lang.Integer), PV_HT=8.80(class java.math.BigDecimal), T_PV_HT=8.80(class java.math.BigDecimal), T_PV_TTC=8.8000(class java.math.BigDecimal), ID_TAXE=6(class java.lang.Integer), CODE=chouguer(class java.lang.String), NOM=Chouchen Guermahia 75cl(class java.lang.String), ID_ARTICLE=125(class java.lang.Integer)} : the field ID_ARTICLE points to (ARTICLE[125])
at org.openconcerto.sql.model.SQLRowValues.checkValidity(SQLRowValues.java:1771)
at org.openconcerto.sql.model.SQLRowValuesCluster.store(SQLRowValuesCluster.java:416)
at org.openconcerto.sql.model.SQLRowValuesCluster.store(SQLRowValuesCluster.java:372)
at org.openconcerto.sql.model.SQLRowValuesCluster.store(SQLRowValuesCluster.java:367)
at org.openconcerto.sql.model.SQLRowValues.store(SQLRowValues.java:1853)
at org.openconcerto.sql.model.SQLRowValues.insert(SQLRowValues.java:1833)
at org.openconcerto.erp.core.sales.pos.POSConfiguration$1.create(POSConfiguration.java:327)
at org.openconcerto.sql.utils.SQLUtils$1.handle(SQLUtils.java:82)
at org.openconcerto.sql.utils.SQLUtils$2.handle(SQLUtils.java:149)
at org.openconcerto.sql.model.ConnectionHandler.compute(ConnectionHandler.java:59)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:883)
at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:847)
at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:127)
at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:99)
at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:79)
at org.openconcerto.erp.core.sales.pos.POSConfiguration.commitAll(POSConfiguration.java:237)
... 37 more

J'ai vérifié le produit "Chouchen Guermahia 75cl" dont il est question mais le réglage me semble correct.

D'où ça peut venir ?

Merci d'avance
Gérald
Avatar du membre
Conceptify
Messages : 85
Enregistré le : dim. août 21, 2016 4:28 pm

mar. juil. 11, 2017 3:36 pm

On dirait bien que ça vient de l'article !
Qu'a t'il de différent par rapport aux autres si c'est le seul à déconner?
Circuit-Court
Messages : 5
Enregistré le : lun. juin 12, 2017 12:13 pm

mer. juil. 19, 2017 6:22 am

Nous avons finalement trouvé :
La vendeuse a scanné cet article puis s'est aperçu que le prix n'était pas correct sur le ticket.

Elle voit ensuite que cet article était en doublon (mais avec 2 code-barre différents)
Souhaitant bien faire, elle supprime celui qu'elle estime mauvais mais c'est ce produit même qui avait été scanné dans le ticket : d'où la clôture impossible de la caisse.

Un peu tordu... mais résolu

Merci
Répondre