Set up the cost bases used with cost calculation methods as codes. You can then define item cost values for each cost basis. When a cost basis is assigned to a cost calculation method, the method's calculation setup is applied to the corresponding cost values to establish a cost reference for sales price calculations.
Steps - Costs bases
In the search box, enter Cost Bases, and then choose the related link.
On the Home tab, in the New group, choose New.
Fill in a line with a code and description for each cost basis.
If a codeunit has been developed to calculate item cost values, assign it in the Calc. Codeunit ID field.
Three standard codeunits are available:
Based on Average Purchase Costs (37002044)
Based on Minimum Purchase Costs (37002045)
Based on Maximum Purchase Costs (37002046)
Set up cost basis adjustments
This functionality lets you add additional costs to the previously calculated base costs (for example, extra charges such as transport, handling, or fuel surcharge that you do not want to specify on a sales invoice but do want to pass on to the customer and therefore include in the cost price.
Steps - Cost basis adjustments
Follow the steps above to set up cost bases (steps 1 through 3).
Add codeunit Cost Basis-Cost Adjustment (37002054).
Add a Reference Cost Basis Code.
Navigate via Cost Basis to Cost Basis Adjustments.
Add a code.
Select an Adjustment Type: Amount or Percentage.
Add a value) positive or negative.
Add a Calculation Step.
The amount is in local currency and is recalculated towards the currency mentioned in the Cost Base Currency Code field.
Calculation steps indicate the basis on which the additional costs are added. When all cost adjustments are marked with Calculation Step 1, all costs are calculated based on the initial base cost and totalled. If there is a sequence in the steps, Step 1 is calculated first and added to the base costs; Step 2 is calculated or added to the totalled base price of Step 1 and added to this base; and so on.