Payment in ERPnext

Hi everyone,

I’m trying to understand the complete payment flow in ERPNext from start to end. Specifically, how the process works starting from item purchase (like Purchase Order / Purchase Receipt / Purchase Invoice) to Payment Request and finally Payment Entry.

I want to know:

  • What is the exact flow of documents?
  • How Payment Request and Payment Entry are connected?
  • Where and how custom fields or child tables can be added in this flow?

Any clear explanation or best practices would really help. Thanks in advance!