ERREUR Nombre de décimales

Répondre
xantof
Messages : 504
Enregistré le : dim. juil. 10, 2011 2:33 pm

sam. nov. 26, 2011 10:23 pm

Bonjour,

Je constate qu'à plusieurs endroits on obtient une erreur lorsqu'on essaye d'insérer plus de 2 décimales dans un champs.

Par exemple :
  • Prix dans la fiche article
    Frais de port et Remise dans les Factures
Si on retire la 3ème décimale, la modification est acceptée.

1.2b sous Ubuntu 11.10

Code : Tout sélectionner

Erreur pendant la modification

wrong number of decimal places.
org.openconcerto.utils.ExceptionHandler: Erreur pendant la modification
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:75)
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:79)
	at org.openconcerto.sql.view.EditPanel.actionPerformed(EditPanel.java:400)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(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$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(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.NumberFormatException: wrong number of decimal places.
	at org.openconcerto.utils.GestionDevise.parseLongCurrency(GestionDevise.java:99)
	at org.openconcerto.erp.core.common.ui.DeviseField.getUncheckedValue(DeviseField.java:241)
	at org.openconcerto.erp.core.common.ui.DeviseField.update(DeviseField.java:407)
	at org.openconcerto.sql.request.SQLRowView.update(SQLRowView.java:219)
	at org.openconcerto.sql.request.SQLRowView.update(SQLRowView.java:198)
	at org.openconcerto.sql.element.BaseSQLComponent.update(BaseSQLComponent.java:607)
	at org.openconcerto.erp.core.sales.product.component.ReferenceArticleSQLComponent.update(ReferenceArticleSQLComponent.java:967)
	at org.openconcerto.sql.view.EditPanel.modifier(EditPanel.java:425)
	at org.openconcerto.sql.view.EditPanel.actionPerformed(EditPanel.java:398)
	... 36 more
Stephan
Lubuntu 16.04 LTS au travail. Ubuntu 15.04 à la maison. 13 ans sous logiciel propriétaire. OC depuis 2012. Petit Commerce
Comment poser une question sur un forum : http://www.linux-france.org/article/the ... ns-fr.html
Répondre