Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0031515 | Openbravo ERP | 09. Financial management | public | 2015-11-17 13:32 | 2015-11-23 21:17 |
|
Reporter | aferraz | |
Assigned To | aferraz | |
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Professional Appliance |
Product Version | | |
Target Version | 3.0PR16Q1 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | vmromanos |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Packaging and release |
Regression date | 2015-11-11 |
Regression introduced in release | pi |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/fe7e7c17712b [^] |
Triggers an Emergency Pack | No |
|
Summary | 0031515: Empty matched document when running Match Statement pocess |
Description | Matched Document keeps empty in Match Statement grid although record is matched. |
Steps To Reproduce | As FB Admin:
- Go to Financial Account windonw and select Cuenta de Banco
Move to Imported Bank Statements tab and create a record.
Move to Bank Statement Lines tab and create a record with payment in = 10.
Click on Process button.
- Click on Match Statement button.
Click Cancel in Confirm popup.
Select the record shown in the grid and click + button (Add new transaction).
Select any gl item in Add Transaction popup and click Done.
Clear filter is necessary to show matched bank statements.
Realize record appears as matched but Matched Document column is empty. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0031516 | 3.0PR15Q4 | closed | aferraz | Empty matched document when running Match Statement pocess | depends on | backport | 0031517 | 3.0PR15Q3.4 | closed | aferraz | Empty matched document when running Match Statement pocess | caused by | defect | 0031389 | 3.0PR16Q1 | closed | aferraz | Hover over Matched Document does not show document details information as before, in Match Statement pop-up |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-11-17 13:32 | aferraz | New Issue | |
2015-11-17 13:32 | aferraz | Assigned To | => Triage Finance |
2015-11-17 13:32 | aferraz | Modules | => Core |
2015-11-17 13:32 | aferraz | Triggers an Emergency Pack | => No |
2015-11-17 15:23 | aferraz | Relationship added | caused by 0031389 |
2015-11-17 15:24 | aferraz | Assigned To | Triage Finance => aferraz |
2015-11-17 15:25 | aferraz | Regression level | => Packaging and release |
2015-11-17 15:25 | aferraz | Regression date | => 2015-11-11 |
2015-11-17 15:25 | aferraz | Regression introduced in release | => pi |
2015-11-17 15:25 | aferraz | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/fe7e7c17712b [^] |
2015-11-17 15:29 | aferraz | Status | new => scheduled |
2015-11-17 16:40 | aferraz | Note Added: 0081931 | |
2015-11-17 18:50 | aferraz | Note Edited: 0081931 | bug_revision_view_page.php?bugnote_id=0081931#r10268 |
2015-11-18 14:01 | hgbot | Checkin | |
2015-11-18 14:01 | hgbot | Note Added: 0081951 | |
2015-11-18 14:01 | hgbot | Status | scheduled => resolved |
2015-11-18 14:01 | hgbot | Resolution | open => fixed |
2015-11-18 14:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/aaf78ab227d58ecf4e53622a1ec48b90e99d33e5 [^] |
2015-11-18 14:03 | vmromanos | Review Assigned To | => vmromanos |
2015-11-18 14:03 | vmromanos | Note Added: 0081953 | |
2015-11-18 14:03 | vmromanos | Status | resolved => closed |
2015-11-20 15:13 | aferraz | Note Added: 0082032 | |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082254 | |
Notes |
|
(0081931)
|
aferraz
|
2015-11-17 16:40
(edited on: 2015-11-17 18:50) |
|
Test plan:
As FB Admin:
- Go to Financial Account windonw and select Cuenta de Banco
Move to Imported Bank Statements tab and create a record.
Move to Bank Statement Lines tab and create a record with payment in = 10. Fill also reference no, business partner name, business partner, gl item and description fields with any value.
Click on Process button.
- Click on Match Statement button.
Click Cancel in Confirm popup.
Select the record shown in the grid and click + button (Add new transaction).
Click Done.
Clear filter is necessary to show matched bank statements.
Show all the available columns but audit ones in the grid.
Realize record appears as matched and all fields but affinity and transaction reference no. are filled.
Realize you can filter and order by any column.
|
|
|
(0081951)
|
hgbot
|
2015-11-18 14:01
|
|
Repository: erp/devel/pi
Changeset: aaf78ab227d58ecf4e53622a1ec48b90e99d33e5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Nov 17 18:03:25 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/aaf78ab227d58ecf4e53622a1ec48b90e99d33e5 [^]
Fixes issue 31515: Empty matched document in Match Statement
The problem was that two new columns were added in aprm_matchstatement hql query in the middle of the select clause, while they were added as two new columns at the end of ad_column. As the columns order was not the same between the hql query and the ad_column and some columns did not have an alias in hql query and some others did not have an entity alias in ad_column, some column values were lost.
To fix it, we added an alias to all columns in aprm_matchstatement hql query (matchedDocument had no alias) and an entity alias to all ad_columns in aprm_matchstatement table (Transaction, bslUpdated and matchedDocument columns had no entity alias and Affinity column had a wrong entity alias).
With this, all columns of aprm_matchstatement will be correctly filled with their values in Match Statement grid.
If new columns are added to the hql query, they can go in any order in the select clause and in the ad_column, but they will need to have both an alias in the hql query and an entity alias in the ad_column, following this documentation: http://wiki.openbravo.com/wiki/How_to_create_a_HQL_Based_Table#Column_Definition [^]
---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_COLUMN.xml
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_TABLE.xml
---
|
|
|
|
|
|
|
|
|
|
|