I get your point and it is valid. But see, practically, it happens over and over again that you miss to enter one document, then you enter back dated transaction, specially if its the same month or reporting period or tax year, then every time the solution cannot be to delete all prior transactions and enter in date order from scratch for that customer. If anything goes wrong, numbers can get messed up pretty quickly as you can imagine.
What I am trying to say is in this post, [17.9.28] Improvements to automatic credit allocations there is the concept to leave over-payments as it is with that invoice only and not seek and auto-allocate to next outstanding invoice. System job is recording of transaction not auto guess right? So @lubos corrected it and its perfect.
Similarly, in case of credit note, if I don’t put an invoice number while making the credit note, it should not auto guess and apply itself to the next generated invoice (in date order). Further, in my case, as you rightly pointed out, I created the credit note later after invoicing and after receipt even and back dated it, at that point, 3 Oct invoice was already paid in full through normal Receive Money option on 19 Oct. Now once an invoice is marked as paid in full, then whether I enter a credit note or make any other adjustment and don’t refer to that invoice, Manager should not disturb the status of that invoice, right? I am just asking to prevent auto allocation of credit note to invoice irrespective of date.