Hi Babu, check the Payment Method Code on the purchase order header. If that code has a Bal. Account No. filled in, BC closes the invoice at the moment you post and pushes the payment straight to that bank account. Nobody ran an extra step, it's the setup doing it. Look at the Payment Methods page for the code that comes from the vendor card.
You can't pull the bank entry out on its own. It only reverses together with what created it, and a document posting won't reverse from the register the way a journal one does. So the clean route is a corrective credit memo for the whole invoice, then post it again with the payment method blank, or with a code that has no bal. account. If the credit memo carries the same payment method, the bank side nets off too, which is usually what you want.
Glad to help - follow up if anything is unclear.
► If this solved it, marking it verified helps others too.
Regards,
Grigorios Mavrogeorgis
Business Central Consultant & AL Developer
Work: Gmsoft Limited
Blog: insidebusinesscentral
LinkedIn: linkedin.com/in/gregorymavrogeorgis