Carry custom field values to the next document
When you create a document from another one, for example a Sales Invoice from a Sales Order, ERPNext copies the values of fields that have the same field name in both documents. A custom field moves to the next document only if both custom fields have the same field name.
For example, to carry a custom Site Contact field from the Sales Order to the Sales Invoice:
- Open Customize Form for Sales Order, and note the field name of the field, for example
custom_site_contact. - Open Customize Form for Sales Invoice.
- Add a field with the same field type and the same field name,
custom_site_contact. The label can differ. - Select Update.
New Sales Invoices that you create from a Sales Order now get the value. The same rule applies to the fields of child tables, such as Sales Order Item and Sales Invoice Item.
TIP
Field names are made from the label. If you use the same label in both DocTypes, you usually get the same field name. Check the Name column to be sure.