This article provides a patch for the issue where the invoice doesn't capture money to order when you do it from order grid mass action.
This known issue is mentioned in the Order Grid extension in the 2.4.1 version and less.
We have two possible ways to fix this issue:
1. Manually
You will need to edit the file.
IWD/OrderGrid/Controller/Adminhtml/Invoice/Massactions/Create.php
- add the following code:
const CAPTURE = true;
- replace the code
$this->invoiceOrder->execute($order->getId());
with
- $this->invoiceOrder->execute($order->getId(),self::CAPTURE);
It should look like this:
git apply 0001-fix-issue-with-capture-via-mass-action-logic.patch