So we have a case and raising a ticket to Microsoft CSP also did not help. I am here if fellow community members can help me with this.
So we have a posted purchase invoice, which once we go to find entries and check its GL Entries, it has reversal posted as well. The date shows reversal was posted same time as posting.
Below is screenshot;
This is abnormal behavior and we can't figure out why this happened.
Note1: We have posted many such invoices with this Vendor and never had this issue. This specific one behaved like this.
Note2: There is no customization done which reverses a posted invoice right after its posted.
Note3: The Correct and Cancel button on our Posted Purchase Invoice asks us to pass a credit memo manually so there is no chance the user clicked on any of those 2 buttons right after they posted it.