Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016337Openbravo ERPB. User interfacepublic2011-03-16 18:042011-05-24 10:55
plujan 
marvintm 
highmajorhave not tried
closedfixed 
5
pi 
 
Core
No
0016337: Strange message "0.0 is not correct, consider using 0.00" when creating a Purchase Invoice line
When creating a line in Purchase Invoice, I receive a weird message:
"It's not correct the amount provided: 0.0. Please consider using 0.00"

Just for the record, I see no value "0.0" in the record.

See steps.
1. Log in as QAAdmin
2. Go to Purchase Invoice and create a header
3. Go to Lines and create a new one. Do nothing else. The above message is shown. See screenshot.
First, correct message's grammar. It should be:
"The amount provided nnn is not correct, consider using mmm instead"

Second, I did nothing yet on the form, so no reason for that message after all

Third, probably at String level "0.0" does not equals "0.00" but zero equals zero at human level, so message should not be shown neither.

Fourth, if I click Save (changing nothing in the record) I can save with no issues, so message means nothing.
closingMay2011
related to defect 00163383.0RC7 closed mtaal Usability issue when a message is shown in Lines 
png screenshot-25.png (40,981) 2011-03-16 18:04
https://issues.openbravo.com/file_download.php?file_id=3701&type=bug
png
Issue History
2011-03-16 18:04plujanNew Issue
2011-03-16 18:04plujanAssigned To => dbaz
2011-03-16 18:04plujanFile Added: screenshot-25.png
2011-03-16 18:04plujanModules => Core
2011-03-16 18:06dbazAssigned Todbaz => mtaal
2011-03-16 19:02plujanRelationship addedrelated to 0016338
2011-03-17 16:29mtaalAssigned Tomtaal => marvintm
2011-03-18 16:48hgbotCheckin
2011-03-18 16:48hgbotNote Added: 0035056
2011-03-18 16:48hgbotStatusnew => resolved
2011-03-18 16:48hgbotResolutionopen => fixed
2011-03-18 16:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/90437c16866be8b97236af2763a1cc4e714e19bb [^]
2011-05-24 10:12dalsasuaTag Attached: closingMay2011
2011-05-24 10:55dalsasuaStatusresolved => closed

Notes
(0035056)
hgbot   
2011-03-18 16:48   
Repository: erp/devel/pi
Changeset: 90437c16866be8b97236af2763a1cc4e714e19bb
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Mar 18 16:47:22 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/90437c16866be8b97236af2763a1cc4e714e19bb [^]

Fixed issue 16337. Round both sides of the comparison to get correct results.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
---