Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002433Openbravo ERP09. Financial managementpublic2007-12-28 12:242008-07-08 12:05
jaimetorre 
cromero 
normalminoralways
closedfixed 
5
 
2.40beta 
No
Core
No
0002433: Remittance>CreateFile: Decimals in PostgreSQL
When creating a plain file from a remittance to send to the bank, the amounts are not properly parsed if using PostgreSQL.

The bank does not accept decimals and therefore all the amounts are multiplied by 100. The problem is that in Oracle:
2.25*100 = 225
while in PostgreSQL:
2.25*100 = 225.00

To avoid this problem, the amounts in the CreateFile_data.xsql file could be calculated with the round function:
round(amount*100,0)
No tags attached.
depends on backport 0003614 closed cromero Remittance>CreateFile: Decimals in PostgreSQL 
Issue History
2008-07-08 12:05psarobeStatusresolved => closed
2008-07-08 12:05psarobeFixed in Version2.40alpha-r2 => 2.40beta

Notes
(0006022)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1859647 [^]
(0002893)
cromero   
2008-01-29 13:20   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1500614
Originator: NO

Fixed bug since revision 2170

I have used the round function as you indicated. Thank you.

Carlos Romero
Openbravo Team