details:   https://code.openbravo.com/erp/devel/pi/rev/299f8fb74b3e
changeset: 18541:299f8fb74b3e
user:      Jon Alegría <jon.alegria <at> openbravo.com>
date:      Wed Nov 14 13:52:22 2012 +0100
summary:   Fixes issue 0022276: The costing migration process fails: ERROR 
index 0 size 0

diffstat:

 src/org/openbravo/costing/CostingMigrationProcess.java |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r a7d41be10b1b -r 299f8fb74b3e 
src/org/openbravo/costing/CostingMigrationProcess.java
--- a/src/org/openbravo/costing/CostingMigrationProcess.java    Tue Oct 16 
13:13:02 2012 +0200
+++ b/src/org/openbravo/costing/CostingMigrationProcess.java    Wed Nov 14 
13:52:22 2012 +0100
@@ -409,6 +409,7 @@
         cost = FinancialUtils.getConvertedAmount(cost, cur, legalEntityCur, 
new Date(),
             icl.getOrganization(), FinancialUtils.PRECISION_COSTING);
       }
+      OBDal.getInstance().refresh(icl.getPhysInventory());
       CostingRuleInit cri = 
icl.getPhysInventory().getCostingRuleInitCloseInventoryList().get(0);
       InventoryCountLine initICL = crp.getInitIcl(cri.getInitInventory(), icl);
       initICL.setCost(cost);

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to