How is customer selected when a new Serial No is generated from Delivery Note

In delivery note form the selected Customer field’s data gets forwarded to the created serial number form’s Customer field. How is this achieved ? I want to do the same with my custom field.

Hello,

When you say serial number is it the Item Serial number?
Can you please elaborate the requirement for us to help you better. May be a screenshot will help to understand it better.