Why Document No. for different rows in a bank payment receipt is sometimes same and in some cases they are different?

Why Document No. for different rows in a bank payment receipt is sometimes same and in some cases they are different?

It is because if same document no entry contain multiple transactions and it is possible that one document contains multiple debit and single credit and vice versa.