Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0016352 | Openbravo ERP | Z. Others | public | 2011-03-17 11:18 | 2011-03-17 12:54 | |||||||
Reporter | maite | |||||||||||
Assigned To | eduardo_Argal | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.50MP27 | |||||||||||
Target Version | 2.50MP28 | Fixed in Version | 2.50MP28 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Advanced Payables and Receivables Mngmt | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0016352: Problem in getBalance method of Financial Account Transactions | |||||||||||
Description | When one payment is divided into several invoices, method org.openbravo.erpCommon.ad_forms.DocFINFinAccTransaction.getBalance() for each DocLine attempts to subtract the PaymentAmount from the DepositAmount. Due to the fact that the DepositAmount comprised the whole PaymentAmount for each transaction the result is always unbalanced when we have more than only one invoice. | |||||||||||
Steps To Reproduce | Go to Financial Management || Accounting || Setup || Accounting Schema || Accounting Schema >> General Ledger set Suspense Balancing Use = false create a payment out paying 2 invoices create a transaction in financial account for the previous payment post it Not Balenced error is shown | |||||||||||
Proposed Solution | e.g. use: > BigDecimal lineBalance = new BigDecimal(((DocLine_FINFinAccTransaction) p_lines[i]).getAmount()); instead of > BigDecimal lineBalance = new BigDecimal(((DocLine_FINFinAccTransaction) p_lines[i]).DepositAmount); or when the filling the FieldProviderFactory in org.openbravo.erpCommon.ad_forms.DocFINFinAccTransaction.loadLinesPaymentDetailsFieldProvider(FIN_FinaccTransaction) you might write the Amount into the data-field "DepositAmount": e.g.: use > FieldProviderFactory.setField(data[i], "DepositAmount", paymentDetails.get(i).getAmount().toString()); instead of > FieldProviderFactory.setField(data[i], "DepositAmount", transaction.getDepositAmount().toString()); | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2011-03-17 11:19 | eduardo_Argal | Type | defect => backport | |||||||||
2011-03-17 11:19 | eduardo_Argal | fix_in_branch | => 2.50 | |||||||||
2011-03-17 11:25 | eduardo_Argal | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=1632#r1632 | |||||||||
2011-03-17 11:29 | hgbot | Checkin | ||||||||||
2011-03-17 11:29 | hgbot | Note Added: 0034987 | ||||||||||
2011-03-17 11:29 | hgbot | Status | scheduled => resolved | |||||||||
2011-03-17 11:29 | hgbot | Resolution | open => fixed | |||||||||
2011-03-17 11:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/a211843dff1ee701b6f0aebc7628f01584c69451 [^] | |||||||||
2011-03-17 12:06 | maite | Status | resolved => closed | |||||||||
2011-03-17 12:06 | maite | Fixed in Version | => 2.50MP28 | |||||||||
2011-03-17 12:54 | maite | Issue Monitored: networkb |
Notes | |||||
|
|||||
|
|