Read the Guides, which should always be your first resource:
https://www.manager.io/guides/7178
https://www.manager.io/guides/9610
You have described two distinct situations:
- Charging customers for freight expenses
- Recording charges for freight from suppliers
Both are covered in the Guides linked above.