1

For the payment methods I am using the Mollie extension. A customer has placed an order, and has paid for it correctly. But, the information that I can see in the order view is the following:

enter image description here

As you can see, Magento says that the client has paid everything except € 5.42 (but this is not true because I received the total money).

And also Magento does not include one of my products in the invoice. You can see in the following picture how Magento includes a product in the invoice but not the last one.

enter image description here

In addition, I can not change the status of the order. If I try to issue an invoice, I receive the following error:

enter image description here

Any idea why this happens and how to solve it? I have 5 orders like this, with products that do not appear on the invoice and Magento says they must be paid (but I received the full amount of the order)

2
  • Do you have access to the database? Its going to be a database fudge to fix. As to cause could be your payment gateway you are using. Sorry no obvious fix to resolve. Commented Jun 5, 2019 at 19:57
  • Yes I have access to the database. What do you thing? How can I fix this problem? Is it a problem with Magento or my installation?
    – Despotars
    Commented Jun 5, 2019 at 20:48

1 Answer 1

1
+50

If you've got access to db you should be able to work out the problem items using this query.

SELECT so.increment_id, so.entity_id, soi.order_id, soi.sku, soi.qty_ordered, soi.qty_invoiced 
FROM sales_order so, sales_order_item soi 
WHERE soi.qty_ordered != soi.qty_invoiced 
AND so.entity_id = soi.order_id 

Update qty_invoiced where necessary

As for cause in my experience these problems are caused by 3rd party payment extensions.

Unfortunately I can't be more specific than that.

Were the problem orders all paid for the same way or is it just the one order? If so might be worth reaching out the developer who produced the extension. Although this could be a tricky problem to track down.

With regards to totals you are going to have to check the following amounts

SELECT `base_subtotal`, `base_subtotal_invoiced`, `base_tax_amount`, `base_tax_invoiced`, `base_total_invoiced`, `base_total_invoiced_cost`, `base_total_paid`, `base_total_qty_ordered`, `grand_total`, `subtotal`, `subtotal_invoiced`, `tax_amount`, `tax_invoiced`, `total_paid`, `subtotal_incl_tax` 
FROM `sales_order` 
WHERE increment_id = 000000002 

where 000000002 is the increment_id of the affected order

You will have to manually update any values you find are incorrect.

11
  • Thanks for your answer. So the problem is with the payment platform and not with my Magento?
    – Despotars
    Commented Jun 6, 2019 at 5:25
  • If I fix this problem in the database as you told me, what happens with the stock of the products? Would you have to update it manually or update it automatically?
    – Despotars
    Commented Jun 6, 2019 at 6:40
  • Payment extension issue. Manual update. You can do via backend. No SQL. Commented Jun 6, 2019 at 8:27
  • I spoke with the Mollie company, and they tell me that the problem is not in their place because they have the correct data and they send the correct data to Magento. I can see the payments correctly in my Mollie dashboard and that a correct code is sent to Magento. Are you sure the problem is with the payment extension?
    – Despotars
    Commented Jun 6, 2019 at 8:34
  • 1
    Braintree. Comes with magento. Very well tested. That's about my only recommendation. In the past had problems with Sagepay, Ingenico, Adyen and Worldpay. Please mark as accepted and award points if you feel you have reached an answer. Commented Jun 6, 2019 at 16: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.