Hi Ernst,
I've taken the liberty of taking your plugin and adapting it to 07.01.xx with some changes.
Firstly, rather than importing many batches - my modified version requires the user to only import into the current cash book receipt - and they must have selected a bank account first. This makes sense to me, as if you've exported a CSV file from your bank you know which account it is.
Next, I only import transactions within the same month as the batch date. If the user hasn't changed the batch date from the login date, then I set the batch date to be the date of the oldest transaction in the CSV, then just import transactions in the same month.
I try to match the debtor on the Other Party Name by looking at previous batches - if that fails then I try to match on debtor name against Other Party Name - and if that fails I fall back to a debtor configured as the cash debtor in a new system setting.
Then I try to see if the transaction is already on the current batch (to protect against importing the same file into the same batch), and also if the transaction is on a previous batch for the same bank account (matching on date, amount, remit no, et cetera).
What this should mean is importing a CSV file which has transactions across months should be no issue - I just skip the ones outside the month of the batch. Then the user can create a second batch for another month, import the same file and only the transactions not imported previously will be imported.
No doubt some flaws exist in my version - but I've taken on board your idea of this being a community developed plugin, and any issues will be fixed and submitted back
Mike