Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032654Openbravo ERPZ. Otherspublic2016-04-12 13:492016-06-17 19:37
maite 
markmm82 
urgentmajoralways
closedfixed 
5
 
3.0PR16Q33.0PR16Q3 
aferraz
Advanced Payables and Receivables Mngmt
No
0032654: Unhomogeneus behavior in Transaction's organization accounting dimension depending of process used to add transaction
Value for Organization in Transaction's dimension section is different depending on process used to add transaction
1. Access "Cuenta de Banco" financial account, create new Bank Statement and add line with amount in=5. Process bank statement
2. Run "match statement" process, click + to add new transaction. Set "España Norte" in organization field in dimensions section and press + to add new payment. Set "alimentos y supermercados" business partner and select invoice. Press Done
3. Realize that payment document has been created and organization has "ESpaña norte" value before finish process. Press Done and OK
4. In transactions tab, realize that Organization value is "España" instead of "España norte"
5. Access sales invoice "1000175" (which is the same paid in previous step) and run "Add Payment process". Set any amount and "Process Received Payment(s) and Deposit"
6. Access "Cuenta de banco" financial account to review this new transaction and realize that organization value is "españa norte"
No tags attached.
related to defect 00327593.0PR16Q3 closed alostale Wrong on change function called in process definition 
Issue History
2016-04-12 13:49maiteNew Issue
2016-04-12 13:49maiteAssigned To => Triage Finance
2016-04-12 13:49maiteModules => Advanced Payables and Receivables Mngmt
2016-04-12 13:49maiteTriggers an Emergency Pack => No
2016-04-12 13:50maiteResolution time => 1463349600
2016-04-12 13:50maiteTarget Version => 3.0PR16Q3
2016-04-12 13:50maiteIssue Monitored: networkb
2016-04-12 19:22aferrazAssigned ToTriage Finance => markmm82
2016-04-13 17:17aferrazNote Added: 0085626
2016-04-13 17:21aferrazNote Edited: 0085626bug_revision_view_page.php?bugnote_id=0085626#r11773
2016-04-14 15:21markmm82Statusnew => scheduled
2016-04-14 15:21markmm82Note Added: 0085635
2016-04-15 09:58jfrancesIssue Monitored: jfrances
2016-04-21 18:02aferrazRelationship addedrelated to 0032759
2016-04-21 19:28hgbotCheckin
2016-04-21 19:28hgbotNote Added: 0085849
2016-04-21 19:28hgbotStatusscheduled => resolved
2016-04-21 19:28hgbotResolutionopen => fixed
2016-04-21 19:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c33cf2dc04adb78711dcafcc0dc4efed95000e05 [^]
2016-04-21 19:28hgbotCheckin
2016-04-21 19:28hgbotNote Added: 0085850
2016-04-21 19:29aferrazReview Assigned To => aferraz
2016-04-21 19:29aferrazNote Added: 0085853
2016-04-21 19:29aferrazStatusresolved => closed
2016-04-21 19:29aferrazFixed in Version => 3.0PR16Q3
2016-04-22 10:01hgbotCheckin
2016-04-22 10:01hgbotNote Added: 0085876
2016-06-17 19:37hudsonbotCheckin
2016-06-17 19:37hudsonbotNote Added: 0087478
2016-06-17 19:37hudsonbotCheckin
2016-06-17 19:37hudsonbotNote Added: 0087479
2016-06-17 19:37hudsonbotCheckin
2016-06-17 19:37hudsonbotNote Added: 0087484

Notes
(0085626)
aferraz   
2016-04-13 17:17   
(edited on: 2016-04-13 17:21)
Seems that Organization field is not working properly in Add new transaction process definition. It should be used to:

- Filter payments in Payment selector (drop down or magnifying glass) in Add new transaction process definition.
- Filter in Add Payment grids when opening from Payment selector in Add new transaction process definition.
- Creating new payments in Add Payment when opening from Payment selector in Add new transaction process definition.
- Creating new financial account transactions in Add new transaction process definition.

All this flows work fine in Financial Account Transaction tab but not in Add new transaction process definition and it should.

(0085635)
markmm82   
2016-04-14 15:21   
Test plan:
1. Access "Cuenta de Banco" financial account, create new Bank Statement and add line with amount in=5. Save and Process bank statement
2. Run "match statement" process, click + to add new transaction.
    Set "España Norte" in organization field in dimensions section.
    Press + to add new payment.
       -Set "alimentos y supermercados" business partner and select invoice.
       -Press Done
3. Realize that payment document has been created and organization has "España norte" value before finish process. Press Done and OK
4. In transactions tab, realize that Organization value is "España norte"
5. Access sales invoice "1000175" (which is the same paid in previous step) and run "Add Payment process". Set any amount and "Process Received Payment(s) and Deposit"
6. Access "Cuenta de banco" financial account to review this new transaction and realize that organization value is "España norte".
(0085849)
hgbot   
2016-04-21 19:28   
Repository: erp/devel/pi
Changeset: c33cf2dc04adb78711dcafcc0dc4efed95000e05
Author: Mark <m.molina <at> nectus.com>
Date: Thu Apr 14 14:27:30 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/c33cf2dc04adb78711dcafcc0dc4efed95000e05 [^]

Fixes issue 32654: Unhomogeneus behavior in Transaction organization dimension.

To avoid that the value for Organization in Transaction's dimension section be different depending on process used to add transaction, if the Add payment action is excecuted from it, always will be used as organization the ad_org_id field selected in the caller window (Add transaction window).

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
(0085850)
hgbot   
2016-04-21 19:28   
Repository: erp/devel/pi
Changeset: 6ae46b081f60b8f73047b73c7076155f459c7a1e
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Thu Apr 21 15:03:45 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6ae46b081f60b8f73047b73c7076155f459c7a1e [^]

Related to issue 32654: Code review improvements

Some changes have been done in Add Transaction process definition related to organization field in order to have the same behaviour as in Financial Account Transaction tab.

- Filter payments in Payment selector (drop down or magnifying glass) in Add new transaction process definition:
Add new parameter called ad_org_id_process to save process definition's current organization value, and filter by it in the hql where clause of the payment selector.
- Filter in Add Payment grids when opening from Payment selector in Add new transaction process definition.
Check for ad_org_id parameter before checking for inpadOrgId parameter in TransactionAddPaymentDefaultValues.
- Creating new payments in Add Payment when opening from Payment selector in Add new transaction process definition:
Check for ad_org_id parameter before checking for inpadOrgId parameter in AddPaymentActionHandler.
- Creating new financial account transactions in Add new transaction process definition:
Process definition's current organization value will be taken instead of selected payment organization.
- Avoid changing organization once you have selected a payment:
Update read only logic of accounting dimensions to disable them when we have already selected a payment.

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUISEL_SELECTOR.xml
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddTransactionActionHandler.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/TransactionAddPaymentDefaultValues.java
M modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addTransaction.js
---
(0085853)
aferraz   
2016-04-21 19:29   
Code review + Testing OK
(0085876)
hgbot   
2016-04-22 10:01   
Repository: erp/devel/pi
Changeset: 8e9276563a5de5f9979b9108edd7de82cbf685b6
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Apr 22 09:58:56 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8e9276563a5de5f9979b9108edd7de82cbf685b6 [^]

Related to issue 32654: Create new ad_element for ad_org_id_process parameter

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_ELEMENT.xml
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/OBUIAPP_PARAMETER.xml
---
(0087478)
hudsonbot   
2016-06-17 19:37   
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/0dc7be081b1c [^]
Maturity status: Test
(0087479)
hudsonbot   
2016-06-17 19:37   
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/0dc7be081b1c [^]
Maturity status: Test
(0087484)
hudsonbot   
2016-06-17 19:37   
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/0dc7be081b1c [^]
Maturity status: Test