Author: lektran
Date: Tue Oct 30 04:07:59 2007
New Revision: 590034
URL:
http://svn.apache.org/viewvc?rev=590034&view=revLog:
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");