You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/09/17 10:42:06 UTC
svn commit: r696198 -
/ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy
Author: hansbak
Date: Wed Sep 17 01:42:05 2008
New Revision: 696198
URL: http://svn.apache.org/viewvc?rev=696198&view=rev
Log:
corrected wrong spelling of fieldname
Modified:
ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy
Modified: ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy?rev=696198&r1=696197&r2=696198&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy (original)
+++ ofbiz/trunk/specialpurpose/mypage/webapp/mypage/WEB-INF/actions/ConvertInvoiceCurrency.groovy Wed Sep 17 01:42:05 2008
@@ -36,10 +36,10 @@
if (invoiceType.parentTypeId.equals("SALES_INVOICE")) {
otherCurrency = delegator.findByPrimaryKey("Party", ["partyId" : partyId]).preferredCurrencyUomId;
} else {
- otherCurrency = delegator.findByPrimaryKey("Party", ["partyId" : fromPartyId]).preferredCurrencyUomId;
+ otherCurrency = delegator.findByPrimaryKey("Party", ["partyId" : partyIdFrom]).preferredCurrencyUomId;
}
// check if conversion required
- if (currencyUomId && otherCurrency != currencyUomId && !otherCurrency.equals(currencyUomId)) {
+ if (currencyUomId && otherCurrency && otherCurrency != currencyUomId && !otherCurrency.equals(currencyUomId)) {
result = dispatcher.runSync("convertUom", [uomId : currencyUomId,
uomIdTo : otherCurrency,
originalValue : new Double("1.00"),