To show the product margin while creating the purchase, please follow the below mentioned steps:
Step 1: Go to settings
Step 2: Go to Preferences under the General Settings >> Go to Document >> Go to Purchases >> Show Margin >> Enable >> Save Changes