Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024796
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2013-09-19 14:002014-06-20 17:54
ReportermaiteView Statuspublic 
Assigned Tocaristu 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision88ddb52efe04
ProjectionnoneETAnoneTarget Version3.0MP28
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesAdvanced Payables and Receivables Mngmt
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024796: New recalculated Exchange Rate should be rounded when inserted in fin_payment table, when working with multicurrency

DescriptionNew recalculated Exchange Rate should be rounded when inserted in fin_payment table, when working with multicurrency
Steps To Reproduce1. Configure "Transferencia" Payment Method as "Receive Payment in multiple currencies" in Financial Account "Cuenta de Banco"
2. Define conversion rate between USD and EUR as 1.12345678
3. Create new Payment In header for any BP using Transferencia and Cuenta de Banco and set currency=USD . set Amount=15 . Conversion rate information will be automatically loaded
4. "Add details" and set amount =15 and any gl item. Process. Realize that conversion rate has been recalculated to 1.12333333
5. Try to edit payment's description and error "Payment processed/posted" will be raised when it should not (problem is that value of finacc_txn_convert_rate field in database is not rounded)
Proposed SolutionProblem is in "setFinancialTransactionAmountAndRate" method in FIN_AddPayment file. Conversion rate is recalculated using following formula: finTxnConvertRate = finTxnAmount.divide(paymentAmount, MathContext.DECIMAL64);
Variable "finTxnConvertRate" needs to be rounded to number of decimals defined in Format.xml for "generalQty" type reference
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0061299)
hgbot (developer)
2013-09-19 19:09

Repository: erp/devel/pi
Changeset: 88ddb52efe0448e758620b656096584d7fc2a2c2
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Sep 19 19:08:41 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/88ddb52efe0448e758620b656096584d7fc2a2c2 [^]

fixes issue 24796: New recalculated Exchange Rate should be rounded
 when inserted in fin_payment table, when working with multicurrency

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
---
(0061318)
maite (developer)
2013-09-20 14:15

verified
(0061323)
hudsonbot (developer)
2013-09-20 16:14

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9adf8dd6aa1b [^]

Maturity status: Test
(0068174)
hgbot (developer)
2014-06-19 17:04

Repository: erp/devel/pi
Changeset: 1fe0e783e8513738f1993962798bee3f6253e8e9
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Jun 11 18:32:43 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1fe0e783e8513738f1993962798bee3f6253e8e9 [^]

[aprm-windows] Prevent Issue 0024796

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
(0068233)
hudsonbot (developer)
2014-06-20 17:54

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/089e5cbefd60 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2013-09-19 14:00 maite New Issue
2013-09-19 14:00 maite Assigned To => dmiguelez
2013-09-19 14:00 maite Modules => Advanced Payables and Receivables Mngmt
2013-09-19 14:00 maite Triggers an Emergency Pack => No
2013-09-19 14:00 maite Target Version => 3.0MP28
2013-09-19 14:00 maite Issue Monitored: networkb
2013-09-19 14:11 jonalegriaesarte Assigned To dmiguelez => caristu
2013-09-19 19:09 hgbot Checkin
2013-09-19 19:09 hgbot Note Added: 0061299
2013-09-19 19:09 hgbot Status new => resolved
2013-09-19 19:09 hgbot Resolution open => fixed
2013-09-19 19:09 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/88ddb52efe0448e758620b656096584d7fc2a2c2 [^]
2013-09-20 14:15 maite Note Added: 0061318
2013-09-20 14:15 maite Status resolved => closed
2013-09-20 16:14 hudsonbot Checkin
2013-09-20 16:14 hudsonbot Note Added: 0061323
2014-06-19 17:04 hgbot Checkin
2014-06-19 17:04 hgbot Note Added: 0068174
2014-06-20 17:54 hudsonbot Checkin
2014-06-20 17:54 hudsonbot Note Added: 0068233


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker