1

So I got banned from #magento on freenode for asking details about this to understand the underlying process flow. :D

I get the problem that:

  1. a product is ordered
  2. an invoice is send
  3. a payment is triggered by a payment provider via wire transfer
  4. a notice comes that the product can't be delivered
  5. I check if the invoice was paid
  6. if it wasn't I cancel the order
  7. now money from the customer arrives

Now I'm stuck as I can click to refund the order but the total amount is zero as I cancelled the order already. This can happen all the time, and seems to be the case if you google for it, because i.e. the wire transfer just takes some time, the customer mixes up the payments and tells you he hasn't paid yet or something alike. You can't wait to cancel for weeks just to be sure the customer doesn't pay, can you?

What workflow does magento have here? You can't cancel the cancellation, you can't refund the order, you can't tell it that it was "overpaid" so to speak. It seems you can't do anything here. The only thing I came up with was to mingle through the database and revert the cancellation so I could refund again. I found a lot of code snippets online to do so, which in my opinion hints at something.

I really like to understand the thinking / process here.

1 Answer 1

2

Magento cancel order of invoiced items are as follow Any invoiced orders in Magento cannot be "canceled", but they can be "closed". It sounds like you need to issue a "credit memo", which is refund in Magento.

enter image description here

Brief Regarding Credit Memo

After an order has been paid and invoiced, all of the order, or a portion of it, can be refunded by issuing a credit memo. A credit memo differs from a refund because the amount of the credit is restored to the customer's account where it can be applied to future purchases, rather than returned to the customer as cash. In some cases, a refund can be given at the same time that the credit memo is issued, just as a payment can be made at the time of invoicing.

6
  • I'm using the german magento so I sometimes have to translate and am a bit off with the names. "credit memo" is exactly what I did, literally translated it is named "refund" in german. But I couldn't do this as the total amount was zero and you couldn't refund anything.
    – steros
    Commented Jul 14, 2016 at 8:01
  • ok got it , you dont have anything to refund. Commented Jul 14, 2016 at 8:06
  • Right but actually there is something as the money arrived :)
    – steros
    Commented Jul 14, 2016 at 8:07
  • thats tricky, need some modification in core files for that .. or hope some other developer will help you in simpler way. Commented Jul 14, 2016 at 8:09
  • yes it seems this case isn't handled.
    – steros
    Commented Jul 14, 2016 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.