You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2007/10/30 12:08:00 UTC

svn commit: r590034 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java

Author: lektran
Date: Tue Oct 30 04:07:59 2007
New Revision: 590034

URL: http://svn.apache.org/viewvc?rev=590034&view=rev
Log:
Applied modified fix for OFBIZ-1113 from Nicolas Malin, GiftCertificateServices.createTransaction() was being passed a null finAccountId

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java?rev=590034&r1=590033&r2=590034&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/GiftCertificateServices.java Tue Oct 30 04:07:59 2007
@@ -111,7 +111,7 @@
             } else {
                 acctResult = dispatcher.runSync("createFinAccountForStore", UtilMisc.<String, Object>toMap("productStoreId", productStoreId, "finAccountTypeId", FinAccountHelper.giftCertFinAccountTypeId, "userLogin", userLogin));  
                 if (acctResult.get("finAccountId") != null) {
-                    cardNumber = (String) acctResult.get("finAccountId");
+                    finAccountId = cardNumber = (String) acctResult.get("finAccountId");
                 }
                 if (acctResult.get("finAccountCode") != null) {
                     cardNumber = (String) acctResult.get("finAccountCode");