Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0024912 | Openbravo ERP | 09. Financial management | public | 2013-10-08 18:37 | 2013-10-16 19:46 |
Reporter | ioritzCia | ||||
Assigned To | dmiguelez | ||||
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 20 | OS Version | Ubuntu 10.04 | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
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(); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 | 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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|