Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033742
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersmajoralways2016-08-18 14:462016-09-08 21:36
ReporterngarciaView Statuspublic 
Assigned Torqueralta 
PriorityurgentResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revision7cbdcc419167
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033742: UpdateCustomerBalance modulescript is not taking into account currency conversion

DescriptionUpdateCustomerBalance modulescript is not taking into account currency conversion
Steps To ReproduceIn a version previous to 3.0PR15Q2:
   Check IsCustomerBalanceRestoredV2 preference does not exist
   Create 4 business partners, two customers and two vendors
   Set a price list with the same currency to them (EUR)
   Create a sales invoice for one of the customers
   Generate credit for the other customer (Payment In)
   Create a purchase invoice for one of the vendors
   Generate credit for the other vendor (Payment Out)
   Check the current balance in Business Partner window has been modified accordingly
   Change their currency to USD and check the current balance has been converted
   Update to a version newer than 3.0PR15Q4 and check the balance is the first one (the same than when the currency was EUR)
TagsNo tags attached.
Attached Files? file icon 33742.sql [^] (948 bytes) 2016-09-08 16:44

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0089557)
rqueralta (developer)
2016-08-30 19:45
edited on: 2016-08-30 19:49

In a version previous to 3.0PR15Q2:

As F&B International Group Admin
  - Check IsCustomerBalanceRestoredV2 preference does not exist
  - Create 4 business partners, two customers and two vendors
  - Set a price list with the same currency to them (EUR)
  - Create a sales invoice for one of the customers
  - Generate credit for the other customer (Payment In)
  - Create a purchase invoice for one of the vendors
  - Generate credit for the other vendor (Payment Out)
  - Check the current balance in Business Partner window has been modified accordingly
  - Change their currency to USD
  - Check the current balance has been converted

Update to a version newer than 3.0PR15Q4

As F&B International Group Admin
  - Check the balance is the same than when the currency was converted to USD

(0089847)
hgbot (developer)
2016-09-08 16:43

Repository: erp/devel/pi
Changeset: 7cbdcc41916706c2efcb0232acc1ba06774d1ac0
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Wed Sep 07 12:06:09 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/7cbdcc41916706c2efcb0232acc1ba06774d1ac0 [^]

Fixes issue 33742: UpdateCustomerBalance modulescript BP currency conversion

UpdateCurtomerBalance modulescript did not take in account the business partner
currency.Now if business partner currency and document currency are different,
the document amount is converted to the business partner currency.

---
M modules/org.openbravo.advpaymentmngt/build/classes/org/openbravo/advpaymentmngt/modulescript/UpdateCustomerBalanceData.class
M modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/org/openbravo/advpaymentmngt/modulescript/UpdateCustomerBalance_data.xsql
M modules/org.openbravo.advpaymentmngt/src-util/modulescript/src/src/org/openbravo/advpaymentmngt/modulescript/UpdateCustomerBalanceData.java
---
(0089848)
aferraz (manager)
2016-09-08 16:44

Code review + Testing OK
(0089849)
aferraz (manager)
2016-09-08 16:45

Attached script to update Business Partner balance manually.
(0089858)
hudsonbot (developer)
2016-09-08 21:36

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/bdb3e747cf46 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-08-18 14:46 ngarcia New Issue
2016-08-18 14:46 ngarcia Assigned To => Triage Finance
2016-08-18 14:46 ngarcia Modules => Core
2016-08-18 14:46 ngarcia Resolution time => 1473285600
2016-08-18 14:46 ngarcia Triggers an Emergency Pack => No
2016-08-19 09:19 aferraz Assigned To Triage Finance => rqueralta
2016-08-19 19:27 rqueralta Status new => scheduled
2016-08-23 10:44 aferraz Steps to Reproduce Updated View Revisions
2016-08-30 19:45 rqueralta Note Added: 0089557
2016-08-30 19:49 rqueralta Note Edited: 0089557 View Revisions
2016-09-06 18:47 aferraz File Added: 33742.sql
2016-09-07 17:15 aferraz File Deleted: 33742.sql
2016-09-08 16:43 hgbot Checkin
2016-09-08 16:43 hgbot Note Added: 0089847
2016-09-08 16:43 hgbot Status scheduled => resolved
2016-09-08 16:43 hgbot Resolution open => fixed
2016-09-08 16:43 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7cbdcc41916706c2efcb0232acc1ba06774d1ac0 [^]
2016-09-08 16:44 aferraz Review Assigned To => aferraz
2016-09-08 16:44 aferraz Note Added: 0089848
2016-09-08 16:44 aferraz Status resolved => closed
2016-09-08 16:44 aferraz Fixed in Version => 3.0PR16Q4
2016-09-08 16:44 aferraz File Added: 33742.sql
2016-09-08 16:45 aferraz Note Added: 0089849
2016-09-08 21:36 hudsonbot Checkin
2016-09-08 21:36 hudsonbot Note Added: 0089858


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker