Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031697Openbravo ERPZ. Otherspublic2015-12-11 12:532016-02-02 09:43
maite 
vmromanos 
immediateminoralways
closedfixed 
5
 
3.0PR16Q13.0PR16Q1 
aferraz
Core
No
0031697: Bank Statement Line description overwritten with GL Item's description when adding gl item transaction form Match Statement
Bank Statement Line description overwritten with GL Item's description when adding gl item transaction form Match Statement
1. Access Cuenta de Banco financial account, create new Bank Statement record
2. Add Bank Statement line setting any amount and Description as "bsl description". Process bank statement
3. Run "Match Statement" process and press Add Transaction button (+) from your line. Realize that Description field "bsl description"
4. Select any GL Item in the combo. Realize that Description field has been overwritten with GL Item's description

If you follow similar process in version prior to refctor (for example MP30.3) you can verify that description field is maintained
No tags attached.
depends on backport 00317743.0PR15Q4.2 closed vmromanos Bank Statement Line description overwritten with GL Item's description when adding gl item transaction form Match Statement 
depends on backport 00317753.0PR15Q3.5 closed vmromanos Bank Statement Line description overwritten with GL Item's description when adding gl item transaction form Match Statement 
caused by feature request 00293903.0PR14Q4 closed Sandrahuguet Reconciliation refactor project 
related to defect 0032148 scheduled markmm82 Descriptions of previously selected payments remain in Description field of Financial Account - Transactions tab 
Issue History
2015-12-11 12:53maiteNew Issue
2015-12-11 12:53maiteAssigned To => Triage Finance
2015-12-11 12:53maiteModules => Core
2015-12-11 12:53maiteTriggers an Emergency Pack => No
2015-12-11 12:54maiteIssue Monitored: networkb
2015-12-11 12:55maiteRelationship addedcaused by 0029390
2015-12-11 13:53maiteResolution time => 1450220400
2015-12-17 10:00AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2015-12-17 10:39AtulOpenbravoStatusnew => scheduled
2015-12-18 11:06AtulOpenbravoNote Added: 0082869
2015-12-22 20:25AtulOpenbravoNote Added: 0082950
2015-12-22 20:29AtulOpenbravoNote Added: 0082951
2015-12-24 11:27hgbotCheckin
2015-12-24 11:27hgbotNote Added: 0082980
2015-12-24 11:27hgbotStatusscheduled => resolved
2015-12-24 11:27hgbotResolutionopen => fixed
2015-12-24 11:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2dfae5bc1ff6557dcd68880d03c8ae8571cd827b [^]
2015-12-24 11:27hgbotCheckin
2015-12-24 11:27hgbotNote Added: 0082981
2015-12-24 11:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/2dfae5bc1ff6557dcd68880d03c8ae8571cd827b [^] => http://code.openbravo.com/erp/devel/pi/rev/ad230fc1c0f1641dec56661e756d54812ede9917 [^]
2015-12-24 11:27hgbotCheckin
2015-12-24 11:27hgbotNote Added: 0082982
2015-12-24 11:34aferrazAssigned ToAtulOpenbravo => vmromanos
2015-12-24 11:34aferrazStatusresolved => new
2015-12-24 11:34aferrazResolutionfixed => open
2015-12-24 11:34aferrazStatusnew => scheduled
2015-12-24 11:35aferrazStatusscheduled => resolved
2015-12-24 11:35aferrazFixed in Version => 3.0PR16Q1
2015-12-24 11:35aferrazResolutionopen => fixed
2015-12-24 11:35aferrazReview Assigned To => aferraz
2015-12-24 11:35aferrazNote Added: 0082984
2015-12-24 11:35aferrazStatusresolved => closed
2015-12-24 11:36aferrazNote Added: 0082985
2015-12-24 18:39hudsonbotCheckin
2015-12-24 18:39hudsonbotNote Added: 0083001
2015-12-24 18:39hudsonbotCheckin
2015-12-24 18:39hudsonbotNote Added: 0083002
2015-12-24 18:39hudsonbotCheckin
2015-12-24 18:39hudsonbotNote Added: 0083003
2016-02-02 09:43hgbotCheckin
2016-02-02 09:43hgbotNote Added: 0083832
2019-01-31 03:37markmm82Relationship addedrelated to 0032148

Notes
(0082869)
AtulOpenbravo   
2015-12-18 11:06   
Test Plan A
- Access Cuenta de Banco financial account, create new Bank Statement record
- Add Bank Statement line setting any amount and Description as "bsl description". Process bank statement
- Run "Match Statement" process and press Add Transaction button (+) from your line. Check that Description field "bsl description"
- Select any GL Item in the combo. Check that Description field value has been appended with GL Item's description.
- Select other GL item in the combo than the previous one.
- Check that Description field value exists and appended with new GL Item Description by removing old GL Item Description.

Test Plan B
- Access Financial Account window, in "Cuenta de Banco" account nagivate to Transaction Tab.
- Create new record. set some description as test description.
- Select GL Item.
- Check that earlier description is appended with GL Item description.
- Select other GL Item than the previous one.
- Check that earlier description is appended with new GL Item description by removing earlier GL Item description.
(0082950)
AtulOpenbravo   
2015-12-22 20:25   
Test Plan C
- Access Cuenta de Banco financial account, create new Bank Statement record
- Add Bank Statement line setting any amount and Description as "bsl description". Process bank statement
- Run "Match Statement" process and press Add Transaction button (+) from your line. Check that Description field "bsl description"
- In payment selector, check whether there is payment select it else using (+) create a new payment.
- Check that Description field value exists and appended with new Payment Description.
- In payment either select other payment record or using (+) create a another payment.
- Check that Description "bsl description" still exists and new payment description is appended to it.
- Make the payment field blank and check that "bsl description" exists and payment description added in previous step is removed.
(0082951)
AtulOpenbravo   
2015-12-22 20:29   
Test Plan D
- Access Financial Account window, in "Cuenta de Banco" account nagivate to Transaction Tab.
- Create new record. set some description as "test description".
- Select GL Item.
- Check that earlier description is appended with GL Item description.
- Select other GL Item than the previous one.
- Check that earlier description is appended with new GL Item description by removing earlier GL Item description.
- Remove the GL Item from selector and make it blank check that manually entered description still exists.
- Now instead of GL Item add payment in payment selector or create new using (+).
- Check that "test description" is appended with payment description.
- Make payment field blank and check that payment description is removed and manually entered "test description" still exists.
(0082980)
hgbot   
2015-12-24 11:27   
Repository: erp/devel/pi
Changeset: 2dfae5bc1ff6557dcd68880d03c8ae8571cd827b
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Dec 23 01:08:07 2015 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/2dfae5bc1ff6557dcd68880d03c8ae8571cd827b [^]

Fixes Issue 31697:Bank Statement Line description overwritten with GL Item's
or payment's description when adding gl item or payment in add transaction
of Match Statement Process.

This issue is fixed in two area's
1. Add Transaction Process Definition window in Match Statement.
2. Transaction Tab of Financial Account window.

Whenever there exists a description prior adding gl item or payment in above
both cases description is appended with either gl item description or
payment description.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddTransactionOnChangePaymentActionHandler.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/GLItemTransactionActionHandler.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addTransaction.js
M src/org/openbravo/erpCommon/ad_callouts/SE_GLItem_Transaction.java
M src/org/openbravo/erpCommon/ad_callouts/SE_Payment_Transaction.java
---
(0082981)
hgbot   
2015-12-24 11:27   
Repository: erp/devel/pi
Changeset: ad230fc1c0f1641dec56661e756d54812ede9917
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed Dec 23 18:48:11 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ad230fc1c0f1641dec56661e756d54812ede9917 [^]

Fixed bug 31697: code review improvements

In case of removing a gl item from a transaction, the part of the transaction's description related to the GL Item (and everything else afterwards) will be deleted. The part of the transaction's description before the GL Item description
 will be always kept.
The same behavior is applied when adding a new transaction from the Financial Account window and from the Match Statement --> Add transaction process

In case of removing a payment, the behavior is similar to the GL Item described above. However, since the payment description doesn't follow a constant structure (like in the case of GL Item's description), it's very hard to detect the description on the fly. That means that the flow will only work just after saving the transaction or in the first change after loading the transaction, which are the common flows. If the user selects different payments without saving the record, the system will append the different payment's description to the transaction.

The getFinAccTransactionDescription() method:
1. won't append multiple times the same description.
2. will add an extra empty line only when it's something to be appended
3. will work fine when the transaction already has a description with multiple lines
4. control any possible exception and returns the text to be append (if not blank), or the original description

Applied jsbeautifier to ob-aprm-addTransaction.js

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/GLItemTransactionActionHandler.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addTransaction.js
M src/org/openbravo/erpCommon/ad_callouts/SE_GLItem_Transaction.java
M src/org/openbravo/erpCommon/ad_callouts/SE_Payment_Transaction.java
---
(0082982)
hgbot   
2015-12-24 11:27   
Repository: erp/devel/pi
Changeset: 09cb07130e5b017dfa14da6056ce35ce182e522d
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Dec 24 11:03:13 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/09cb07130e5b017dfa14da6056ce35ce182e522d [^]

Related to issue 31697: Avoid append a null description

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
---
(0082984)
aferraz   
2015-12-24 11:35   
Code review + Testing OK
(0082985)
aferraz   
2015-12-24 11:36   
APRRegression30898In31385In31387In31389In & APRRegression30898Out31385Out31387Out31389Out automated tests adapted
(0083001)
hudsonbot   
2015-12-24 18:39   
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/13c94f3d6e25 [^]
Maturity status: Test
(0083002)
hudsonbot   
2015-12-24 18:39   
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/13c94f3d6e25 [^]
Maturity status: Test
(0083003)
hudsonbot   
2015-12-24 18:39   
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/13c94f3d6e25 [^]
Maturity status: Test
(0083832)
hgbot   
2016-02-02 09:43   
Repository: tools/automation/int
Changeset: f88a9e8e4e2f532263be98608707086c01e32efb
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Dec 24 11:29:00 2015 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/f88a9e8e4e2f532263be98608707086c01e32efb [^]

Related to issue 31697: Fix APRRegression30898In31385In31387In31389In & APRRegression30898Out31385Out31387Out31389Out tests

---
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_Regressions/APRIn_Regressions/APRRegression30898In31385In31387In31389In.java
M src-test/com/openbravo/test/integration/erp/modules/functionalteam/addpayment/testsuites/APR_Regressions/APROut_Regressions/APRRegression30898Out31385Out31387Out31389Out.java
---