How does the credit note adjust against the customer code of Invoice ?

Suggestions:
In the system, on Sales return, the system checks the Adjust Dr/Cr Note parameter if debit / credit notes have to be adjusted against the invoice generated automatically. If it is yes then system will open adjust the Dr/Cr.

In the system, on Sales return, the system checks the Adjust Dr/Cr Note of Sales invoice which was generated, Check if debit / credit notes have to be adjusted against the invoice generated automatically.
Credit note generated considers the Customer code (to bill) for Sales / Adjusting credit note of this customer. Useful when the customer code and bill to codes are not the same. This can be used when the billing address of the customer is different from the Sales and delivery address