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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016351
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersmajoralways2011-03-17 11:182011-05-19 18:07
ReportermaiteView Statuspublic 
Assigned Toeduardo_Argal 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision8b9a7f487985
ProjectionnoneETAnoneTarget Version2.50MP28
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.50MP27SCM revision 
Review Assigned To
Web browser
ModulesAdvanced Payables and Receivables Mngmt
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016351: Problem in getBalance method of Financial Account Transactions

DescriptionWhen 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 ReproduceGo 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 Solutione.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());
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 00163522.50MP28 closededuardo_Argal Problem in getBalance method of Financial Account Transactions 

-  Notes
(0034986)
hgbot (developer)
2011-03-17 11:27

Repository: erp/devel/pi
Changeset: 8b9a7f487985c4ad8499e4fc26243d4d9e5c8ebd
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Thu Mar 17 11:29:33 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8b9a7f487985c4ad8499e4fc26243d4d9e5c8ebd [^]

Fixes bug 0016351: Problem in getBalance method of Financial Account Transactions

---
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
---

- Issue History
Date Modified Username Field Change
2011-03-17 11:18 maite New Issue
2011-03-17 11:18 maite Assigned To => eduardo_Argal
2011-03-17 11:18 maite Modules => Advanced Payables and Receivables Mngmt
2011-03-17 11:19 eduardo_Argal Status new => scheduled
2011-03-17 11:19 eduardo_Argal fix_in_branch => pi
2011-03-17 11:25 eduardo_Argal fix_in_branch pi =>
2011-03-17 11:25 eduardo_Argal Steps to Reproduce Updated View Revisions
2011-03-17 11:27 hgbot Checkin
2011-03-17 11:27 hgbot Note Added: 0034986
2011-03-17 11:27 hgbot Status scheduled => resolved
2011-03-17 11:27 hgbot Resolution open => fixed
2011-03-17 11:27 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8b9a7f487985c4ad8499e4fc26243d4d9e5c8ebd [^]
2011-05-19 18:07 mirurita Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker