refunds do not work with multiple captures
------------------------------------------

                 Key: OFBIZ-1454
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1454
             Project: OFBiz
          Issue Type: Bug
          Components: order
            Reporter: Si Chen


This is a major problem with refunds: if an order were shipped in several 
shipments, then refunds will not work probably because PaymentGatewayServices 
cannot properly match the OrderPaymentPreferences to the amount which needs to 
be refunded.  Sometimes it will turn out one of the captures has already been 
refunded, and sometimes it will need to piece together several capture payments 
for refund.  

It might be better to have a ReturnPayment/Preference entity to manage which 
capture to refund, so there is some way to control this, and then to replace 
ReturnItemResponse with a ReturnResponse so that the refund payments don't have 
to be explicitly 1 to 1 with each return item, in case a return item needs to 
be split on two captures that have to be refunded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to