To create a custom field navigation is Customization -> List, Records and Fields -> Transaction Line Field -> New

Add label and ID, Applies to PURCHASE ITEM so that the custom field will appear in Line field of bill record.
If we need the created custom field in between class and department click on customize in bill record

Then in sub list fields drag and drop required fields according to given requirements
