[ http://issues.apache.org/jira/browse/OFBIZ-459?page=comments#action_12449745 ] Si Chen commented on OFBIZ-459: -------------------------------
Currently, if you try to create a return for an order that was paid by check, cash, etc. and you want to refund the customer, you will get this big ugly message: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Problems with the transaction: The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [processRefundReturn]: Unable to refund order #WS10040; there are no available payment preferences.; See logs for more detail) This is in fact not too difficult to fix. Instead of returning this error, just create a new Payment of the type CUSTOMER_REFUND to the ReturnHeader.returnFromPartyId from the ReturnHeader.returnFacilityId.ownerPartyId for the amount of the refund in the state NOT_SENT. Then apply that Payment to the Return Invoice created from the Return. Later somebody can go in and manually set the payment method type, payment method type, etc. > Support refunds to non-credit card > ---------------------------------- > > Key: OFBIZ-459 > URL: http://issues.apache.org/jira/browse/OFBIZ-459 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Reporter: Si Chen > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
