Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028482Openbravo ERPZ. Otherspublic2014-12-24 10:212015-03-24 17:41
maite 
vmromanos 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q2pi 
umartirena
Advanced Payables and Receivables Mngmt
Production - Confirmed Stable
2014-06-11
3.0PR14Q3
https://code.openbravo.com/erp/devel/pi/rev/990a2a2410e9 [^]
Yes
0028482: Payment's amount is still converted when changing fromdefault multicurrency financial account to same currency financial account
Payment's amount is still converted when changing fromdefault multicurrency financial account to same currency financial account
1. Create new Financial Account in MXN currency for España Norte organization. Add "Transferencia" payment method with "receive payments in multiple currencies" option checked
2. Define Conversion Rate between EUR and MXN
3. Set new MXN financial account as default financial account for Business Partner "Alimentos y Supermercados" in its Client tab
4. Register Sales Invoice for España Norte and Alimentos y Supermercados. Add any line and process
5. Run "Add payment" process. Realize that MXN financial account is set as default (which is correct) and that Conversion Rate and Converted Amount has been properly calculated
6. Modify default's financial account and set Cuenta de Banco. Process and deposit payment
7. Access to Cuenta de Banco financial account and verify that transaction has been created with converted amount when it should not
When financial account is changed in "add payment" pop-up, conversion rate and converted amount values needs to be recalculated
No tags attached.
caused by feature request 0029391 closed Sandrahuguet Add Payment refactor project 
Issue History
2014-12-24 10:21maiteNew Issue
2014-12-24 10:21maiteAssigned To => dmiguelez
2014-12-24 10:21maiteModules => Advanced Payables and Receivables Mngmt
2014-12-24 10:21maiteResolution time => 1421967600
2014-12-24 10:21maiteTriggers an Emergency Pack => No
2014-12-24 10:22maiteAssigned Todmiguelez => Sandrahuguet
2014-12-24 10:22maiteIssue Monitored: networkb
2014-12-24 10:38maitePriorityurgent => immediate
2014-12-24 12:57vmromanosRegression level => Production - Confirmed Stable
2014-12-24 12:57vmromanosRegression date => 2014-06-11
2014-12-24 12:57vmromanosRegression introduced in release => 3.0PR14Q3.4
2014-12-24 12:57vmromanosRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/990a2a2410e9 [^]
2014-12-24 12:58vmromanosStatusnew => scheduled
2014-12-24 12:58vmromanosAssigned ToSandrahuguet => vmromanos
2014-12-24 12:58vmromanosfix_in_branch => pi
2014-12-24 13:31hgbotCheckin
2014-12-24 13:31hgbotNote Added: 0072817
2014-12-24 13:31hgbotStatusscheduled => resolved
2014-12-24 13:31hgbotResolutionopen => fixed
2014-12-24 13:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/926cf5c76aaeef332d988368b2cabcafa5aabb9b [^]
2014-12-24 13:32vmromanosTriggers an Emergency PackNo => Yes
2014-12-24 13:32vmromanosNote Added: 0072818
2014-12-24 13:32vmromanosfix_in_branchpi =>
2014-12-24 14:00umartirenaReview Assigned To => umartirena
2014-12-24 14:00umartirenaNote Added: 0072819
2014-12-24 14:00umartirenaStatusresolved => closed
2014-12-24 14:00umartirenaFixed in Version => pi
2014-12-30 09:57shuehnerRegression introduced in release3.0PR14Q3.4 => 3.0PR14Q3
2014-12-30 23:28hudsonbotCheckin
2014-12-30 23:28hudsonbotNote Added: 0073268
2015-03-24 17:41aferrazRelationship addedcaused by 0029391

Notes
(0072817)
hgbot   
2014-12-24 13:31   
Repository: erp/devel/pi
Changeset: 926cf5c76aaeef332d988368b2cabcafa5aabb9b
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed Dec 24 13:29:10 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/926cf5c76aaeef332d988368b2cabcafa5aabb9b [^]

Fixed bug 28482: Exchange rate and Converted Amt in Add Payment

The Exchange rate and Converted amount fields were not properly updated when 2 financial accounts (the first one of them with different currency than the invoice and the second one with the same currency) are selected sequentially into the Add Payment process.

Casue: the conversion rate was wrongly sent back to the JS as a String ("1") instead of using a number. The OB.APRM.AddPayment.paymentMethodMulticurrency function checks the received conversion rate is a number before updating the converted amount. Since the converted amount wasn't a number but a string, the amounts were not updated.
After the fix, the conversion rate is sent back using a integer 1

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/PaymentMethodMulticurrencyActionHandler.java
---
(0072818)
vmromanos   
2014-12-24 13:32   
Test Plan: follow the steps to reproduce reported with the issue
(0072819)
umartirena   
2014-12-24 14:00   
Code Review + Testing OK
(0073268)
hudsonbot   
2014-12-30 23:28   
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/6525fe229e06 [^]
Maturity status: Test