Delayed Reference Name retrieval bound to Reference Type in Journal Entry Row (v16)

While posting payments against Sales Invoice or Purchase Invoice, after the Party Type and Party is selected for one Journal Entry row and pasting the payment

the previously paid invoice is still being retrieved in the Reference Name list for Sales Invoice or Purchase Invoice for the same Party Type and Party.

The previously paid or processed document would not be retreieved in this list previously. Is this some kind of unnecessary caching issue or is the issue related to delayed reconciliation posting?

That may create serious delays for some customers while posting their Journal Entries.

Hi, this could be due to invoice outstanding not being in sync with payment schedule table(if payment terms template is used with allocate based on payment terms).

I have raised a GitHub issue:

Is yours similar?

Yes, exactly. Thanks.