Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0024912 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] 09. Financial management | major | always | 2013-10-08 18:37 | 2013-10-16 19:46 | |||
| Reporter | ioritzCia | View Status | public | |||||
| Assigned To | dmiguelez | |||||||
| Priority | immediate | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | d6cb6fc0a752 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_22 | |||
| OS Version | Ubuntu 10.04 | Database version | 8.4 | Ant version | 1.7.1 | |||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | ||||||||
| OBNetwork customer | OBPS | |||||||
| Web browser | ||||||||
| Modules | Core | |||||||
| Support ticket | ||||||||
| Regression level | Production - Confirmed Stable | |||||||
| Regression date | 2013-04-25 | |||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/2674db04cea807ccca1b64725f007cd0bf75af26 [^] | |||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0024912: When posting a transaction of a payment with more than one line you get a not balanced error. | |||||||
| Description | When posting a transaction of a payment with more than one line, the getBalanced method of DocFINFinAcctTransaction.java launches a not balanced error. | |||||||
| Steps To Reproduce | - Go to General Ledger Configuration window, General Accounts tab and check that Suspense Balancing Use check is not checked. - Create a Payment with more than one line and process it. - Add the Payment to a Transaction and try to post it. - You get a not balanced error. | |||||||
| Proposed Solution | BigDecimal lineBalance = BigDecimal.ZERO; for (FIN_PaymentDetail pd : payment.getFINPaymentDetailList()) { lineBalance = lineBalance.add(payment.isReceipt() ? pd.getAmount().add( pd.getWriteoffAmount()) : pd.getAmount().add(pd.getWriteoffAmount()).negate()); } retValue = retValue.subtract(lineBalance); code should be replaced with: BigDecimal lineBalance = payment.isReceipt() ? new BigDecimal( ((DocLine_FINFinAccTransaction) p_lines[i]).getAmount()) : new BigDecimal( ((DocLine_FINFinAccTransaction) p_lines[i]).getAmount()).negate(); BigDecimal lineWriteoff = payment.isReceipt() ? new BigDecimal( ((DocLine_FINFinAccTransaction) p_lines[i]).getWriteOffAmt()) : new BigDecimal( ((DocLine_FINFinAccTransaction) p_lines[i]).getWriteOffAmt()).negate(); | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0061636) hgbot (developer) 2013-10-09 17:04 |
Repository: erp/devel/pi Changeset: d6cb6fc0a7521cc0938d6c3753fae495d8732c4d Author: David Miguelez <david.miguelez <at> openbravo.com> Date: Wed Oct 09 17:04:19 2013 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/d6cb6fc0a7521cc0938d6c3753fae495d8732c4d [^] Fixes Issue 24912. Prevents from not Balanced error. --- M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java --- |
|
(0061638) hgbot (developer) 2013-10-09 17:39 |
Repository: erp/devel/pi Changeset: 81de998abbec582d7cb06fab64989ec37b8098b2 Author: David Miguelez <david.miguelez <at> openbravo.com> Date: Wed Oct 09 17:39:29 2013 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/81de998abbec582d7cb06fab64989ec37b8098b2 [^] Related to Issue 24912. --- M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java --- |
|
(0061640) ioritzCia (viewer) 2013-10-09 18:23 |
Verified |
|
(0061739) hudsonbot (viewer) 2013-10-16 19:46 |
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/51315988909a [^] Maturity status: Test |
|
(0061740) hudsonbot (viewer) 2013-10-16 19:46 |
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/51315988909a [^] Maturity status: Test |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2013-10-08 18:37 | ioritzCia | New Issue | |
| 2013-10-08 18:37 | ioritzCia | Assigned To | => dmiguelez |
| 2013-10-08 18:37 | ioritzCia | Modules | => Core |
| 2013-10-08 18:37 | ioritzCia | OBNetwork customer | => Yes |
| 2013-10-08 18:37 | ioritzCia | Triggers an Emergency Pack | => No |
| 2013-10-08 18:39 | ioritzCia | Regression level | => Production - Confirmed Stable |
| 2013-10-08 18:39 | ioritzCia | Regression date | => 2013-04-25 |
| 2013-10-08 18:39 | ioritzCia | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/2674db04cea807ccca1b64725f007cd0bf75af26 [^] |
| 2013-10-09 17:04 | hgbot | Checkin | |
| 2013-10-09 17:04 | hgbot | Note Added: 0061636 | |
| 2013-10-09 17:04 | hgbot | Status | new => resolved |
| 2013-10-09 17:04 | hgbot | Resolution | open => fixed |
| 2013-10-09 17:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/d6cb6fc0a7521cc0938d6c3753fae495d8732c4d [^] |
| 2013-10-09 17:39 | hgbot | Checkin | |
| 2013-10-09 17:39 | hgbot | Note Added: 0061638 | |
| 2013-10-09 18:23 | ioritzCia | Note Added: 0061640 | |
| 2013-10-09 18:23 | ioritzCia | Status | resolved => closed |
| 2013-10-16 19:46 | hudsonbot | Checkin | |
| 2013-10-16 19:46 | hudsonbot | Note Added: 0061739 | |
| 2013-10-16 19:46 | hudsonbot | Checkin | |
| 2013-10-16 19:46 | hudsonbot | Note Added: 0061740 | |
| Copyright © 2000 - 2009 MantisBT Group |