Author: hansbak
Date: Tue Sep 8 03:57:17 2009
New Revision: 812335
URL:
http://svn.apache.org/viewvc?rev=812335&view=revLog:
small correction to totals, better but still not correct
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/PartyFinancialHistory.groovy
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/PartyFinancialHistory.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/PartyFinancialHistory.groovy?rev=812335&r1=812334&r2=812335&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/PartyFinancialHistory.groovy (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/PartyFinancialHistory.groovy Tue Sep 8 03:57:17 2009
@@ -123,9 +123,9 @@
context.finanSummary.totalInvoiceNotApplied = totalInvSaNotApplied.subtract(totalInvPuNotApplied);
context.finanSummary.totalPaymentNotApplied = totalPayInNotApplied.subtract(totalPayOutNotApplied);
transferAmount = totalInvSaApplied.add(totalInvSaNotApplied).subtract(totalInvPuApplied.add(totalInvPuNotApplied)).subtract(totalPayInApplied.add(totalPayInNotApplied).add(totalPayOutApplied.add(totalPayOutNotApplied)));
-if (transferAmount.signum() == -1) {
- context.finanSummary.totalToBePaid = transferAmount.negate();
+if (transferAmount.signum() == -1) { // negative?
+ context.finanSummary.totalToBeReceived = transferAmount.negate();
} else {
- context.finanSummary.totalToBeReceived = transferAmount;
+ context.finanSummary.totalToBePaid = transferAmount;
}