Hi Darhanak,
You typically add those costs as a BOM element/line of the type "supplier".
Additional details can be found here:
technet.microsoft.com/.../gg232409.aspx
dynamicsuser.net/.../66070.aspx
Please also have a look at the standard AX production & BOM training materials that describe the setup in detail.
Hope it helps.
Ludwig