One of our customers is experiencing an odd behavior: sometimes, when they post a Purchase Invoice, the system immediately and automatically creates a Credit Memo to offset/cancel that Purchase Invoice.
As you can see, the Credit Memo document number directly references the same Purchase Invoice.

As you can see the credit memo was posted right after the Purchase Invoice was posted:


We’ve encountered this issue a couple of times before. On a recent occasion, we identified that the Credit Memo was automatically generated because a prepayment invoice exceeded the amount of the posted Purchase Invoice. However, this does not appear to be the case in this scenario.
Do you have any insights into why the system might be auto-creating these Credit Memos after posting a Purchase Invoice?