Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029383 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] Z. Others | major | always | 2015-03-06 10:06 | 2015-04-01 08:31 | |||
Reporter | maite | View Status | public | |||||
Assigned To | reinaldoguerra | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | ba76e14d93b1 | ||||
Projection | none | ETA | none | Target Version | 3.0PR15Q1.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | aferraz | |||||||
Web browser | ||||||||
Modules | Advanced Payables and Receivables Mngmt | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029383: Add Transaction process inside Match statement process, does not consider amount of 0.00 equals to 0 | |||||||
Description | Add Transaction process inside Match statement process, does not consider amount of 0.00 equals to 0 | |||||||
Steps To Reproduce | 1. Access Financial Account "Cuenta de banco" and create new register in Bank Statement window. Add new bank statement line setting IN amount=50. Process bank statement 2. Via database, verify that "dramount" is 0 3. Run "Match statement" process, cancelling automatic matching 4. Press "+" button to add transaction and realize that transaction type has been correctly set to BPDeposit 5. Via database, update "dramount" field to 0.00 6. Run "Match statement" process, cancelling automatic matching 7. Press "+" button to add transaction and realize that transaction type has been incorrectly set to BP Withdrawal NOTE: user is not able to manually create bank statement lines with 0.00 values but bank statement import process create bank statement lines with 0.00 values. In my opinion, we need to correct the problem in Add Transactions process (or we should correct different import formats in order to not insert decimals when amount is zero) | |||||||
Tags | Approved | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0075899) hgbot (developer) 2015-03-23 18:33 |
Repository: erp/backports/3.0PR15Q1.2 Changeset: ba76e14d93b1deb2083c19f1910975d003ae6658 Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com> Date: Wed Mar 18 16:47:06 2015 -0500 URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/ba76e14d93b1deb2083c19f1910975d003ae6658 [^] Fixed bug 29383: Add Transaction process does not consider well amounts of 0.00 The "compareTo" method was taken into account instead of "equals", to compare BigDecimal.ZERO value with 0.00 (a BigDecimal value with a scale), inside AddTransactionFilterExpression class. This change was made because BigDecimal "equals", compares the value and the scale, returning false when comparing 0 with 0.00, while "compareTo" only compares values, so considers amounts 0.00 and 0 as the same values. Now transaction type is correctly set to BP Deposit, when "dramount" field is set to 0.00. --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0075900) hgbot (developer) 2015-03-23 18:34 |
Repository: erp/backports/3.0PR15Q1.2 Changeset: 7fc5daf5af4b9b4f011e7fbcd3d856dabda57db3 Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Mon Mar 23 17:05:15 2015 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/7fc5daf5af4b9b4f011e7fbcd3d856dabda57db3 [^] Related to issue 29383: Update copyright --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0075901) hgbot (developer) 2015-03-23 18:34 |
Repository: erp/backports/3.0PR15Q1.2 Changeset: c6213e1abf882e921c4e9c4c454f50e9be5df20d Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Mon Mar 23 17:27:10 2015 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/c6213e1abf882e921c4e9c4c454f50e9be5df20d [^] Related to issue 29383: Make code more clear --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0075902) aferraz (manager) 2015-03-23 18:34 |
Code review + Testing OK |
(0076233) hgbot (developer) 2015-04-01 08:09 |
Repository: erp/backports/3.0PR15Q2 Changeset: ba76e14d93b1deb2083c19f1910975d003ae6658 Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com> Date: Wed Mar 18 16:47:06 2015 -0500 URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/ba76e14d93b1deb2083c19f1910975d003ae6658 [^] Fixed bug 29383: Add Transaction process does not consider well amounts of 0.00 The "compareTo" method was taken into account instead of "equals", to compare BigDecimal.ZERO value with 0.00 (a BigDecimal value with a scale), inside AddTransactionFilterExpression class. This change was made because BigDecimal "equals", compares the value and the scale, returning false when comparing 0 with 0.00, while "compareTo" only compares values, so considers amounts 0.00 and 0 as the same values. Now transaction type is correctly set to BP Deposit, when "dramount" field is set to 0.00. --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0076234) hgbot (developer) 2015-04-01 08:09 |
Repository: erp/backports/3.0PR15Q2 Changeset: 7fc5daf5af4b9b4f011e7fbcd3d856dabda57db3 Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Mon Mar 23 17:05:15 2015 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/7fc5daf5af4b9b4f011e7fbcd3d856dabda57db3 [^] Related to issue 29383: Update copyright --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0076235) hgbot (developer) 2015-04-01 08:09 |
Repository: erp/backports/3.0PR15Q2 Changeset: c6213e1abf882e921c4e9c4c454f50e9be5df20d Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com> Date: Mon Mar 23 17:27:10 2015 +0100 URL: http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/c6213e1abf882e921c4e9c4c454f50e9be5df20d [^] Related to issue 29383: Make code more clear --- M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddTransactionFilterExpression.java --- |
(0076254) priyam (administrator) 2015-04-01 08:31 |
closed again, as the status changed due the merge tag of 3.0PR15Q1.2 to backports/3.0PR15Q2 |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-23 17:56 | aferraz | Type | defect => backport |
2015-03-23 17:56 | aferraz | Target Version | 3.0PR15Q3 => 3.0PR15Q1.2 |
2015-03-23 18:33 | hgbot | Checkin | |
2015-03-23 18:33 | hgbot | Note Added: 0075899 | |
2015-03-23 18:33 | hgbot | Status | scheduled => resolved |
2015-03-23 18:33 | hgbot | Resolution | open => fixed |
2015-03-23 18:33 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/c2fb827a4f009088a8850f2a2939fbbb83764c18 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/ba76e14d93b1deb2083c19f1910975d003ae6658 [^] |
2015-03-23 18:34 | hgbot | Checkin | |
2015-03-23 18:34 | hgbot | Note Added: 0075900 | |
2015-03-23 18:34 | hgbot | Checkin | |
2015-03-23 18:34 | hgbot | Note Added: 0075901 | |
2015-03-23 18:34 | aferraz | Review Assigned To | => aferraz |
2015-03-23 18:34 | aferraz | Note Added: 0075902 | |
2015-03-23 18:34 | aferraz | Status | resolved => closed |
2015-03-23 19:02 | dmitry_mezentsev | Tag Attached: Approved | |
2015-04-01 08:09 | hgbot | Checkin | |
2015-04-01 08:09 | hgbot | Note Added: 0076233 | |
2015-04-01 08:09 | hgbot | Status | closed => resolved |
2015-04-01 08:09 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/ba76e14d93b1deb2083c19f1910975d003ae6658 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/ba76e14d93b1deb2083c19f1910975d003ae6658 [^] |
2015-04-01 08:09 | hgbot | Checkin | |
2015-04-01 08:09 | hgbot | Note Added: 0076234 | |
2015-04-01 08:09 | hgbot | Checkin | |
2015-04-01 08:09 | hgbot | Note Added: 0076235 | |
2015-04-01 08:31 | priyam | Status | resolved => closed |
2015-04-01 08:31 | priyam | Note Added: 0076254 |
Copyright © 2000 - 2009 MantisBT Group |