Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029273Openbravo ERPZ. Otherspublic2015-03-13 14:142015-05-07 22:16
ngarcia 
umartirena 
immediateminoralways
closedfixed 
5
 
 
aferraz
OBPS
Core
35023
2014-07-01
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/b1843f200a9092eea99d431776d029a09868615a [^]
No
0029273: Payment Out cannot be reactivated if the business partner does not have a purchase price list defined
Payment Out cannot be reactivated if the business partner does not have a purchase price list defined and the payment currency is different from the Business partner currency
As group admin role:
   Create a Payment Out for a business partner
   Change the Business Partner currency to a currency different from the payment currency
   Leave the Purchase Price List empty in the Business Partner - Vendor tab
   Try to reactivate the Payment Out and check you get an empty error message
Check if in getConversionRateDocumentForInvoice function of FIN_PaymentProcess class, the business partner currency could be used in both flows instead of the purchase price list currency
No tags attached.
depends on backport 00295413.0PR15Q2 closed umartirena Payment Out cannot be reactivated if the business partner does not have a purchase price list defined 
depends on backport 00295423.0PR15Q1.3 closed umartirena Payment Out cannot be reactivated if the business partner does not have a purchase price list defined 
caused by defect 00253923.0PR14Q4 closed eduardo_Argal Wrong customer balance when working with multicurrency 
Issue History
2015-03-13 14:14ngarciaNew Issue
2015-03-13 14:14ngarciaAssigned To => Sandrahuguet
2015-03-13 14:14ngarciaOBNetwork customer => Yes
2015-03-13 14:14ngarciaModules => Core
2015-03-13 14:14ngarciaSupport ticket => 35023
2015-03-13 14:14ngarciaTriggers an Emergency Pack => No
2015-03-13 14:15ngarciaRelationship addedcaused by 0025392
2015-03-13 14:15ngarciaIssue Monitored: networkb
2015-03-13 14:16ngarciaResolution time => 1432677600
2015-03-18 15:51fsoto82Statusnew => scheduled
2015-03-18 15:51fsoto82Assigned ToSandrahuguet => fsoto82
2015-03-18 15:52fsoto82Note Added: 0075744
2015-04-08 12:14umartirenaRegression date => 2014-07-01
2015-04-08 12:14umartirenaRegression introduced in release => 3.0PR14Q4
2015-04-08 12:14umartirenaRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/b1843f200a9092eea99d431776d029a09868615a [^]
2015-04-09 10:06umartirenaAssigned Tofsoto82 => umartirena
2015-04-09 10:06umartirenaStatusscheduled => acknowledged
2015-04-09 10:06umartirenaStatusacknowledged => scheduled
2015-04-13 12:31hgbotCheckin
2015-04-13 12:31hgbotNote Added: 0076471
2015-04-13 12:31hgbotStatusscheduled => resolved
2015-04-13 12:31hgbotResolutionopen => fixed
2015-04-13 12:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a1caffd894bb0a227a43c9b524b077d0811caa9a [^]
2015-04-13 12:31hgbotCheckin
2015-04-13 12:31hgbotNote Added: 0076472
2015-04-13 12:32aferrazReview Assigned To => aferraz
2015-04-13 12:32aferrazNote Added: 0076473
2015-04-13 12:32aferrazStatusresolved => closed
2015-05-07 22:16hudsonbotCheckin
2015-05-07 22:16hudsonbotNote Added: 0077119
2015-05-07 22:16hudsonbotCheckin
2015-05-07 22:16hudsonbotNote Added: 0077120

Notes
(0075744)
fsoto82   
2015-03-18 15:52   
As group admin role:
   Create a Payment Out for a business partner
   Change the Business Partner currency to a currency different from the payment currency
   Leave the Purchase Price List empty in the Business Partner - Vendor tab
   Now you can reactivate the Payment Out
(0076471)
hgbot   
2015-04-13 12:31   
Repository: erp/devel/pi
Changeset: a1caffd894bb0a227a43c9b524b077d0811caa9a
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Apr 08 16:42:45 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a1caffd894bb0a227a43c9b524b077d0811caa9a [^]

Fixes bug 29273: Payment Out can be reactivated without bp purchase pricelist

The problem is that the method 'getConversionRateDocumentForInvoice' tries to get a conversion using the currency of Purchase PriceList of the business partner, and it could happen to be empty, so it fails.

Starting from 3.0PR14Q4 the Currency field in the business partner is mandatory, so it can be used for Sales/Purchase flow.

It could be that at this point while reactivating the Payment to be the Currency of the Business Partner null, because it was created long time ago and no currency set yet, so, if this is the case an error will be raised to the user in order to fix this.

A last change has been made in 'OBMessageUtils.messageBD' method, adding an extra parameter when it is wanted to avoid doing escape of '\n' and doublequotes characters. In this case it is needed because the message that needs to be displayed needs to maintain them because contains a link. This implementation is similar to the one found in BasicUtility.messageBD.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
M src/org/openbravo/erpCommon/utility/OBMessageUtils.java
---
(0076472)
hgbot   
2015-04-13 12:31   
Repository: erp/devel/pi
Changeset: a6642e0e5f0ce1857e1ba3760fd0a943e20a43cf
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Apr 13 12:29:01 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a6642e0e5f0ce1857e1ba3760fd0a943e20a43cf [^]

Related to issue 29273: Removed unused parameter

Removed unused parameter in getConversionRateDocumentForInvoice method

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
---
(0076473)
aferraz   
2015-04-13 12:32   
Code review + Testing OK
(0077119)
hudsonbot   
2015-05-07 22:16   
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/a1817f84bd8b [^]
Maturity status: Test
(0077120)
hudsonbot   
2015-05-07 22:16   
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/a1817f84bd8b [^]
Maturity status: Test