details:   https://code.openbravo.com/erp/devel/pi/rev/6b42245e27d4
changeset: 15155:6b42245e27d4
user:      Javier Etxarri <javier.echarri <at> openbravo.com>
date:      Mon Jan 16 17:42:42 2012 +0100
summary:   issue 19394: Fiscal Year regularization process,
do not take into account all the accounting dimensions.
The index of the for revenue was wrong. I have changed "i" for "j"

diffstat:

 src/org/openbravo/erpCommon/ad_actionButton/CreateRegFactAcct.java |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (16 lines):

diff -r 9595db5e51d2 -r 6b42245e27d4 
src/org/openbravo/erpCommon/ad_actionButton/CreateRegFactAcct.java
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreateRegFactAcct.java        
Mon Jan 16 08:53:40 2012 +0100
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreateRegFactAcct.java        
Mon Jan 16 17:42:42 2012 +0100
@@ -202,9 +202,9 @@
             revenue[j].totalamtcr, revenue[j].totalamtdr, 
revenue[j].totalamtcr,
             Fact_Acct_Group_ID, Integer.toString((i + j + 3) * 10), 
revenue[j].acctdescription,
             revenue[j].acctvalue, revenue[j].cBpartnerId, revenue[j].recordId2,
-            revenue[j].mProductId, revenue[j].aAssetId, strRegEntry, 
revenue[i].cTaxId,
-            revenue[i].cProjectId, revenue[i].cActivityId, revenue[i].user1Id, 
revenue[i].user2Id,
-            revenue[i].cCampaignId, revenue[i].cSalesregionId);
+            revenue[j].mProductId, revenue[j].aAssetId, strRegEntry, 
revenue[j].cTaxId,
+            revenue[j].cProjectId, revenue[j].cActivityId, revenue[j].user1Id, 
revenue[j].user2Id,
+            revenue[j].cCampaignId, revenue[j].cSalesregionId);
     }
     CreateRegFactAcctData[] account = 
CreateRegFactAcctData.incomesummary(this, strAcctSchema);
     if 
(ExpenseAmtDr.add(RevenueAmtDr).subtract(RevenueAmtCr).subtract(ExpenseAmtCr).signum()
 > 0) {

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to