Author: sichen
Date: Fri Jul 21 16:53:37 2006
New Revision: 424499
URL:
http://svn.apache.org/viewvc?rev=424499&view=revLog:
Couple of warning messages when payment processing services use a default value of Company on Payments
Modified:
incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
Modified: incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?rev=424499&r1=424498&r2=424499&view=diff==============================================================================
--- incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ incubator/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Fri Jul 21 16:53:37 2006
@@ -464,6 +464,8 @@
}
if (productStore != null && productStore.get("payToPartyId") != null) {
payToPartyId = productStore.getString("payToPartyId");
+ } else {
+ Debug.logWarning("Using default value of [Company] for payToPartyId on order [" + orderHeader.getString("orderId") + "]", module);
}
return payToPartyId;
}
@@ -1514,10 +1516,11 @@
Double amount = (Double) context.get("captureAmount");
String serviceType = (String) context.get("serviceTypeEnum");
String currencyUomId = (String) context.get("currencyUomId");
- Debug.logInfo("Invoice ID: " + invoiceId, module);
-
+
if (UtilValidate.isEmpty(payTo)) {
payTo = "Company";
+ Debug.logWarning("Using default value of [Company] for payTo on invoice [" + invoiceId + "] and orderPaymentPreference [" +
+ paymentPreference.getString("orderPaymentPreferenceId") + "]", module);
}
if (UtilValidate.isEmpty(serviceType)) {