Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005579Openbravo ERP01. General setuppublic2008-10-20 10:492008-12-10 07:58
rafaroda 
Hennadzi 
highmajoralways
closedfixed 
20Ubuntu 7.10
pi 
 
Core
No
0005579: Error on consecutive days conversion rates.
One can not setup two conversion rates in consecutive days with error message: ERROR: There are different conversion rates with same dates

This bug also reproduces in 2.3x and 2.40 branches.
1) Go to 'General Setup || Application || Conversion Rates'
2) Create a conversion rate from EUR to USD with starting and ending date equals to '14-10-2008'.
3) Create a new conversion rate from EUR to USD with starting and ending date equals to '15-10-2008'.

You get the following error:
12:08:09 [http-8384-Processor20] ERROR org.openbravo.erpWindows.ConversionRates.ConversionRateData - SQL error in query: INSERT INTO C_Conversion_Rate (C_Conversion_Rate_ID, AD_Client_ID, AD_Org_ID, C_Currency_ID, C_Currency_ID_To, IsActive, ConversionRateType, ValidFrom, ValidTo, MultiplyRate, DivideRate, created, createdby, updated, updatedBy) VALUES ((?), (?), (?), (?), (?), (?), (?), TO_DATE(?), TO_DATE(?), TO_NUMBER(?), TO_NUMBER(?), now(), ?, now(), ?)Exception:org.postgresql.util.PSQLException: ERROR: There are different conversion rates with same dates
Review C_CONVERSION_RATE_TRG2: https://dev.openbravo.com/websvn/openbravo/trunk/src-db/database/model/triggers/C_CONVERSION_RATE_TRG2.xml [^]
No tags attached.
blocks defect 0005511 closed Hennadzi Error on consecutive days conversion rates. 
Issue History
2008-10-20 10:49psarobeNew Issue
2008-10-20 10:49psarobeAssigned To => Hennadzi
2008-10-20 10:49psarobeStatusnew => scheduled
2008-10-20 15:57svnbotCheckin
2008-10-20 15:57svnbotNote Added: 0009652
2008-10-20 15:57svnbotStatusscheduled => resolved
2008-10-20 15:57svnbotResolutionopen => fixed
2008-10-20 15:57svnbotsvn_revision => 8949
2008-10-22 14:06svnbotCheckin
2008-10-22 14:06svnbotNote Added: 0009685
2008-10-22 14:06svnbotsvn_revision8949 => 9018
2008-12-10 07:58krishnaRegression testing => No
2008-12-10 07:58krishnaStatusresolved => closed
2009-02-02 16:07rafarodaNote Deleted: 0009685

Notes
(0009652)
svnbot   
2008-10-20 15:57   
Repository: openbravo
Revision: 8949
Author: hennadzi
Date: 2008-10-20 15:57:12 +0200 (Mon, 20 Oct 2008)

Fixed bug 0005579: Error on consecutive days conversion rates.

---
U branches/r2.40/src-db/database/model/triggers/C_CONVERSION_RATE_TRG2.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=8949&sc=1 [^]