details:   https://code.openbravo.com/erp/devel/pi/rev/f46ef9cc4504
changeset: 21428:f46ef9cc4504
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Fri Nov 08 12:46:39 2013 +0100
summary:   fixes issue 25116: Error when creating expense sheet lines
if the organization does not have a currency assigned

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7efbd3faa111 -r f46ef9cc4504 
src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java    Fri Nov 
08 15:43:00 2013 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java    Fri Nov 
08 12:46:39 2013 +0100
@@ -78,7 +78,7 @@
     if (c_Currency_To_ID == null) {
       c_Currency_To_ID = OBDal.getInstance()
           .get(org.openbravo.model.timeandexpense.Sheet.class, 
strTimeExpenseId).getClient()
-          .getCurrency().toString();
+          .getCurrency().getId();
     }
 
     // Checks if there is a conversion rate for each of the transactions of

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to