|
Are you sure? Where would amount come from?
Vinay Agarwal wrote:
_______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
|
Si, Well, the amount should be replaced with null since it is null for all payment types as far as I can tell. No payment type, except for billing account, has amount string, therefore, amount is null for them. For billing account, it’s looking at amount_EXT_BILLACT field which is also null. Vinay
-----Original
Message-----
Are you sure? Where would
amount come from? Si,On second thought, we should simply delete the stuff to get amount andchange this---------------- String amountStr = request.getParameter("amount_" +paymentMethods[i]); } Double amount = null; if (amountStr != null && amountStr.length() > 0 &&!"REMAINING".equals(amountStr)) { try { amount = newDouble(formatter.parse(amountStr).doubleValue()); } catch (ParseException e) { Debug.logError(e, module); errMsg = UtilProperties.getMessage(resource,"checkevents.invalid_amount_set_for_payment_method", (cart != null ?cart.getLocale() : Locale.getDefault())); request.setAttribute("_ERROR_MESSAGE_", errMsg); return null; } } if (amount != null)selectedPaymentMethods.put(paymentMethods[i], amount);------------------ to ------------------selectedPaymentMethods.put(paymentMethods[i], amount);------------------- Vinay -----Original Message-----From: [hidden email] [[hidden email]]On Behalf Of Vinay AgarwalSent: Wednesday, April 12, 2006 12:43 PMTo: 'OFBiz Users / Usage Discussion'Subject: Re: [OFBiz] Users - Ecommerce: Using BillingAccountforcheckoutreturns "Please select a method of payment" Si,If you have reverted the change, then there is no point in making thischange either since the amount is null in all cases but the payment is stilladded to payment methods. I will double check that it works.Vinay -----Original Message-----From: [hidden email] [[hidden email]]On Behalf Of Si ChenSent: Wednesday, April 12, 2006 12:40 PMTo: OFBiz Users / Usage DiscussionSubject: Re: [OFBiz] Users - Ecommerce: Using BillingAccount forcheckoutreturns "Please select a method of payment" Vinay, I reverted the change yesterday. Sorry about that. Should I make the change you suggested to the SVN? Si Vinay Agarwal wrote:
breaks
_______________________________________________Users mailing list[hidden email]http://lists.ofbizorg/mailman/listinfo/users _______________________________________________Users mailing list[hidden email]http://lists.ofbizorg/mailman/listinfo/users _______________________________________________Users mailing list[hidden email]http://lists.ofbizorg/mailman/listinfo/users _______________________________________________ Users mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/users |
| Free forum by Nabble | Edit this page |
