mollie / magento2

Mollie Payments for Magento 2
https://www.mollie.com
Other
98 stars 50 forks source link

Order Item qty_invoiced does not update when use Apple pay method. #666

Closed htcmage closed 11 months ago

htcmage commented 11 months ago

I'm making a feature to create invoice order automatically in Magento but facing this issue with Mollie/Apple pay. That is the qty_invoiced of order item was not updated correctly. It leads the issue function \Magento\Sales\Model\Order::canInvoice cannot return correct value and I can create multiple invoices for one order even all items have been invoiced.

Used versions

To Reproduce Steps to reproduce the behavior:

  1. Add one simple product to cart
  2. Go to checkout
  3. Checkout with Apple Pay
  4. Order success

Expected behavior The order is created successfully. The invoice is created successfully. The column sales_order_item.qty_invoiced is updated is 1 (It means the item has been invoiced fully)

Actual behavior The column sales_order_item.qty_invoiced is updated is 0 (It means the item has not been invoiced fully)

Frank-Magmodules commented 11 months ago

Hello @htcmage, we appreciate you raising this issue, and it appears to be valid. Our team is currently conducting a thorough investigation into the root cause of the problem and, of course, working on finding a suitable solution. Thank you for bringing this to our attention.

nileshrvs commented 11 months ago

Hi team

we had same issue with Magento v2.4.5-p1 with Mollie Apple pay v2.29.1. Invoice were created for the order but it still show Due Amount in order.

Frank-Magmodules commented 11 months ago

Hello @nileshrvs , we appreciate your input. Indeed, we have verified this as resolved in the upcoming release! I'll make sure to inform you as soon as it becomes accessible.

Frank-Magmodules commented 11 months ago

Hello @nileshrvs and @htcmage, I'm happy to inform you that we have successfully resolved this issue in our most recent release. Your detailed issue report greatly aided us in reproducing and addressing the problem. While we are closing this matter at present, please know that you are welcome to reopen it should the need arise. Thank you once again for bringing this to our attention.