Thursday, 9 April 2015

Determining Sales price based on Purchase/Cost price for a product in Ax 2012


In one of our implementations we came across a scenario where the user wanted to maintain standard sales prices for items, which will be based on the purchase price of the product and the price, will be inflated by certain percentage.
To handle this scenario, Ax provides an option of “Sales price model” & “Base price”.
In order to use this feature following are the pre-requisites:
  1. Released product should be configured with a Default Purchase Price @ Purchase fast tab.01











Setup:
Access the Released product form à Sell tab (Price update field group)
Sales price model: this field determines how the sales price will be calculated.
  1. None – No impact of the charges percentage/contribution ratio on the sales price
  2. Contribution Ratio – Determines calculation of sales price considering the purchase price/cost price as a contribution to the sales price
Charges Percentage – Determines the sales price  based on Purchase price/cost price + charges percentage
02














Base Price:  This field is used to determine the basis of calculating the sales price, be it Purchase price or Cost price
  1. Purchase price – calculates the sales price by using the Purchase price @ purchase fast tab as basis.
  2. Cost price – calculates the sales price by using the Price @ Manage cost fast tab as basis.
03


















Following are the scenarios that we will see in this configuration demo:
  1. Sales price model = Contribution Ratio; Base price = Purchase price
  2. Sales price model = Charges percentage; Base price = purchase price
  3. Sales price model = Contribution Ratio; Base price = Cost
  4. Sales price model = Charges percentage; Base price = Cost

  1. Sales price model = Contribution Ratio; Base price = Purchase price
Pre-requisite => Purchase price @ Purchase fast tab = 90
04





















In here the system calculates the Sales price as 100 based on the below formula.
Sales price – (Sales price * Contribution Ratio %) = Purchase price

2. Sales price model = Charges percentage; Base price = purchase price
Pre-requisite => Purchase price @ Purchase fast tab = 90
05


















In here the system calculates the Sales price as 100 based on the below formula.
Sales price = Purchase price + (Purchase price * Charges percentage %)
3. Sales price model = Contribution Ratio; Base price = Cost
Pre-requisite => Price @ Manage Cost fast tab = 90
06




















In here the system calculates the Sales price as 112.50 based on the below formula.
Sales price – (Sales price * Contribution Ratio %) = Cost price
4. Sales price model = Charges percentage; Base price = Cost
Pre-requisite => Price @ Manage Cost fast tab = 90
07

















In here the system calculates the Sales price as 103.50 based on the below formula.
Sales price = Cost price + (Cost price * Charges percentage %)

Setting up Auto charges in Ax 2012


Auto charges also referred to Automatic charges, is a functionality whereby we can apply specific set of charges automatically to any Sales Order/Purchase Order.
This kind of a functionality is required when the user has to add a specific charge on all the PO/SO created.
Let’s say Loading & Unloading charges is something which we usually charge to all the vendors/customers from a specific state.

Step 1: Create Charges groups
Note: Charges groups are required only when the charges are applied to some customers/vendors but not all.

Accounts receivable –> Setup –> Charges –> Customer charges groups
or
Accounts receivable –> Setup –> Charges –> Item charges groups.
or
Procurement and sourcing –> Setup –> Charges –> Vendor charges group.
or
Procurement and sourcing –> Setup –> Charges –> Item charges groups
autochargegroup 





The system automatically determines the type of charge code based on the navigation of the form selected by the user.
Step 2:
Attach the Charges groups created above to the customers/vendors/items as required.
Step 3:
Define the Auto charges setup:
Accounts receivable –> Setup –> Charges –> Auto charges. or Procurement and sourcing –> Setup –> Charges –> Automatic charges.
 Below is the specimen of the Auto charges form.
autochargelines


autochargesetup
1. Press New to define a new auto charge.
2. In the Level field, select the level to apply the auto charge to from the following options:
    • Main – Applies charges to the order header.
    • Line – Applies charges to the order lines.
3. Select an account in the Account code field from the following values:
    • Table – Applies charges to a specific customer or vendor.
    • Group – Applies charges to a charges group.
    • All – Applies charges to all customers or vendors.
4. Customer relation/Vendor relation:
  • Define a specific customer/vendor for account code = Table  or
  • Define a customer/vendor charges group for account code = Group.
5. Item code
  • Define an item. System allows selecting an item code only when level = lines at the current setup.
    • Table – Applies charges to a specific item.
    • Group – Applies charges to an item charges group.
    • All – Applies charges to all items.
6. Item relation
  • Define a specific item for Item Code = Table or
  • Define an item charges group for Item code = Group.
7. Access Lines FastTab & define the charges and the charges rates, when the current auto charge is applied.
8. Currency , Define the currency for the charge.
9. Charges code , Define the code for the charge.
10. Category, specify calculation basis for the charges in this field and enter a value in the Charges value.
    • Fixed – The charge is entered as a fixed amount on the line. 
    • Pcs. – The charge is based on the unit (eg. Rs. 2/- Per piece). These charges can be used only on order lines.
    • Percent – The charge is entered as a percentage value. 
    • Intercompany percent – The charge is entered as a percentage on the line for intercompany orders. This option can be used only on order lines.
    • External – The charge is calculated by a third-party service that is associated with one or more shipping carriers.
11. In the Charges currency code field, specify a currency for the charge to use a different currency than specified in the Currency field. This can be used if the Debit orCredit type is either Ledger account or Item for the selected charges code.
12. From amount & To amount can be used when the charges are to be applied on a slab basis.(Eg. Apply the charge only if the Order total is between Rs. 100 – 200). To define tiered charges, from amount and a to amount can be defined only if the auto charges are defined at the main level and if the category is Fixed or Percent.
13. Sales tax group, specify a sales tax group if the charge is taxable.
14. Keep check box allows to retain the charges transactions after invoicing.

How to run BOM calculation in Microsoft Dynamics AX 2012

the following today:

  • Costing Version
  • Cost Group
  • Calculation Group
Costing Versions can be setup  from Inventory and Warehouse Management-Setup-Costing-Costing Versions.
1
Costing versions in Microsoft Dynamics AX are primarily used for the following two purposes:
  • Standard cost: becomes the basis of the standard costing if the inventory valuation method is set to ‘Standard costing’.
  • Planned cost: planned cost is used preliminary for production cost planning. It is been used also at the time of production order estimation. Thus it becomes the basis of cost variance analysis for a given production order.
Here select the Costing type and enter a Version and Name. Select the costing type as ‘Planned’ if the purpose is to use this costing version only for planning purposes. Set the appropriate value in the Block activation field. If you don’t want the user to activate the price then set it to ‘Yes’.

Next step is to setup the costing groups from Inventory and Warehouse Management-Setup-Costing-Cost groups
1 - Copy

The most important thing to identify is the cost group type. It can have the following possible values:
Cost group typeTypical usage
Direct materialAssigned to the raw materials used in the production. It can be assigned on the item master.
Direct manufacturingAssigned to the production categories to track the direct manufacturing hours.
IndirectIndirect manufacturing cost calculated through appropriation in the costing sheet.

Then on the Profit tab select the setting for Profit. Profit setting can be specified in the % and is used to calculate the sales price of the finished good on basis of the cost price.
Now go to Product Information Management-Released Products
Open the Released products form for the raw material and assign the appropriate cost group to the item. You can only assign the cost group of type ‘Direct material’ to the item master.
1 - Copy (2)
Next step is to create a calculation group from Inventory and Warehouse Management-Setup-Costing-Calculation Groups
1 - Copy (3)
Calculation group once created can be assigned to the BOM item on the Released product form. The purpose of the calculation group is only to default the calculation settings on the BOM calculation form at the time of BOM calculation.

You can assign the calculation group to the BOM item from the Released products form as shown below:
1 - Copy (4)

Costing Sheet Setup

In my last blog I discussed the setup of,
  • Cost Groups
  • Costing Versions
  • Calculation Groups
In this blog I’m going to discuss setup of Costing Sheet
After the completion of the setup of above, the next step is to setup costing sheet
Costing sheets are used for calculation of indirect cost and it displays the information for the manufactured item or production order in accordance to the cost group break-up. As a matter of fact you can only setup one cost sheet per AX company.
For that Go to-Inventory Management-Setup-Costing-Costing Sheets
B1
On the Root node Right click-Create
Under Setup-Type
Select-Cost of Goods Manufactured.
Enter a Code and Description
B2


B3
Check Header to display line as header
Check Total to display line as total. The total indicates that this node is going to be used to total all the underlying costs. Finished goods cost may comprise of the following:
  • Direct material cost
  • Direct manufacturing cost
  • Indirect cost
I am going to discuss how to setup each type of cost as following:
  • Direct material cost
The source of direct material is the production BOM or formula. It is the cost of the raw material used in the BOM or formula.
Now, I am going to show you how to setup the total direct material cost in the costing sheet.
Select the COGM node created above and right click on it. Then select ‘Create’ from the options.
Create a total node as above and give this node an appropriate name like ‘Materials’ for example.
Now, select the ‘Materials’ node and right click. Create a new node of type cost group. Provide the appropriate name to the node like ‘COGM-M’ for example. Select the appropriate cost group under setup field group. Since you are currently accumulating the direct material cost that’s why it is recommended to add the cost group of type direct material only.
Repeat the above step for each and every direct material cost group you want to track on your costing sheet.
  • Direct manufacturing cost
The source of direct manufacturing cost is the configured production route for the BOM or formula items. The cost is calculated based on cost categories and times configured on production route or entered as part of the route card or job card journals.
The steps required to configure the manufacturing cost is same as explained above. The only difference is that the cost group of type direct manufacturing must be selected.
  • Indirect cost
Indirect production cost can only be setup and calculated through costing sheet only.
Create the total node like previous and assign it a meaningful name like ‘Overheads’ for example.
In Microsoft Dynamics AX overheads can be calculated as either surcharge or rate. Surcharge are specified in terms of % and can only be applied to the direct material cost nodes. Whereas rate is specified as amount and can only be applied to the direct manufacturing nodes.
B4
Here I have selected Surcharge
B5

On the Edit tab-Calculation
Select code and subtype
This forms calculation basis of surcharge
B6
On the bottom left on the surcharge tab select a costing version
On the Edit tab-Posting
Select the ledger accounts to be used for posting
B7
Now we’ll see how does a costing sheet appears
Go to-Inventory Management-Common-Bill of Materials
Select a BOM and click Calculation
B8

Then select a costing version and click ok
B9
Now on this page click Summary
B10
Summary Calculation Inquiry form appears
B11
You can also see graphical view of the costing sheet by switching to Graphics tab
B12

Trade Agreement in AX 2012

Trade Agreement in AX 2012

Today in this post we will discuss about the functionality of Trade Agreements in AX 2012. There are many organizations in the market who gives high priority to their certain vendors or customers. And as per the priority both of them deal with the agreements which we call it as Trade Agreements. Thus Trade Agreements are fixed price or discount agreements that are set up for customers or vendors for the sales or purchases of the products.
Trade Agreement in AX 2012 is of four types which are applicable for both purchases and sales types. They are:-
1)      Price
2)      Line discount
3)      Multiline discount
4)      Total discount
NOTE: Before studying it in details, we need some set ups. Firstly we have to activate the Trade agreements. To activate it go to
Procurement & Sourcing > Set up > Price/discount > Activate price/discount > and activate the combinations. (This is for Purchase orders)
Sales & Marketing > Set up > Price/discount > Activate price/discount > and activate the combinations. (This is for Sales orders)
Secondly we have to set up the Trade Agreements. We can create Trade Agreements from Price/discount groups for grouping customers, vendors or items for a price or discount. For this go to
Sales & Marketing > Set Up > Price/discount > Customer price/discount groups > and create the desired group. (This is for Customer price/discount groups)
TA2
Procurement & Sourcing > Set Up > Price/discount > Vendor price/discount groups> and create the desired group. (This is for Vendor Price/discount groups)
TA3
Inventory & Warehouse Management > Set up > Price/discount > Item discount groups > and create the desired group. (This is for Item discount groups)
TA4
Thirdly we have to set up Trade Agreement journal names. For this go to
Procurement & Sourcing > Set Up > Price/discount > Trade Agreement Journal names > and create a name. (This is for Purchase orders)
Sales & Marketing > Set Up > Price/discount > Trade Agreement Journal names > and create a name. (This is for Sales orders)
Now we will study all the types of Trade Agreements in details.
Price : We use price to enter any price that we want to apply to a group of (or all or single) customer(s), vendor(s) or item(s). For example suppose if a customer purchases 10 quantities of item x (say Sprite) then the organization will charge only Rs. 10 instead of Rs. 20 (assume this charge as transport and freezing). Now let’s see how it works in the system. For this go to
Sales & Marketing > Journals > Price/ discount agreement journals > and create a new journal > Click Lines.
Now a journal lines, price/discount agreement form will open. In the Relation field select the Price (Sales). Select account code as Table. In the Account selection select a customer. Select an item code as Table and select an item on which you want your agreement to be.
TA5
After you set up all the details click Post.
Now we will see the effect of this agreement that we have set up. For this we will raise a Sales order with the specific item and specific customer account.
For this go to Sales & Marketing > Common > Sales Order > All Sales order > and create a new one.
Now go to the header view of the sales order and assign Price group under the Price & discount fast tab.
When you create a new sales order for the specific item and specific customer as you posted in the journal for the Trade Agreement, the system automatically takes the unit price and the sales charges and calculates the net amount automatically.
NOTE: This automatically prices and calculation is valid only for the range of the items (i.e. from & to) that you have specified in the agreement. (As we have specified 1 under From & 10 under To in the Agreement)
TA6
Line Discount: It is the discount applied on the individual sales/purchase order lines. Here we specify discounts as percentage or as amount. For example > suppose I Sell Mirinda, Sprite & Mountain Dew. I want to give my customer a rebate of 2USD from the original price & then 10% discount & additional 2% discount. But it is applicable if they buy minimum 3 bottles of one product.
For this create a journal with the same procedure as we have made previously. But in the Relation field select the Lines Discount (Sales) option. We have set up as per the requirement of the example in the system. After the set up click the Post button to post the created journal.
TA7
Now we will see the effect of this agreement that we have set up. For this we will raise a Sales order with the specific item and specific customer account.
For this go to Sales & Marketing > Common > Sales Order > All Sales order > and create a new one.
Now go to the header view of the sales order and assign Line discount group under the Price & discount fast tab.
TA8
Now I am explaining the calculation by the system as per the above set ups. If suppose each bottle of say sprite or mirinda or mountain dew is 50 USD. Then the system will first deduct 2 USD (From Amount in currency) which is equal to 48 USD. Now it will take the 1st line of the Discount percentage 1. So 10% of 48 USD is 4.80 USD and hence the net amount will be 43.20 USD. Now the system will take the 2nd line of the Discount Percentage 2. So, 2% of 43.20 USD is 0.864 USD and hence the net amount is 42.336 USD. But this is applicable if the particular customer takes minimum of 3 quantities. So net amount will be 127.1 USD (42.336*3) for 3 quantities.
Multiline Discount:  It is similar to line discount but with a little difference. It can be applied when one or more Sales order/Purchase order lines that are added together to meet the discount requirement. Let me explain this concept with an example. For example > suppose I Sell Mirinda, Sprite & Mountain Dew. I want to give my customer a discount of 10% if they purchase 3 bottles of the product (It may be 1 bottle of Sprite & 2 bottles of Mirinda or 2 bottles of Mountain Dew & 1 bottle of Sprite or even 3 bottles of Sprite).
For this create a journal with the same procedure as we have made previously. But in the Relation field select the Multiline Discount (Sales) option.
TA9
NOTE: Here I gave Group in Item code which means I want to assign discount on multiple items (as per the example). We have set up as per the requirement of the example in the system.
Now once the journal has been posted, raise a sales order. Here we will raise a SO of 2 bottles of Sprite & 1 bottle of Mirinda.
Now once a SO is raised, go to the Header view & under the Price & Discount fast tab, under Discount or charges select the Multiline discount group.
Now, go to Product Information Management > Select that particular item (Mirinda & Sprite as per in our example) > Edit > in the Sell fast tab, under Discount field > Select theMulti line discount.
TA10
NOTE: Multiline discount works only if you click the Multiline discount button in the Sall fast tab of the Sales order form.
Total Discount:   It is used to specify one discount for the whole sales order. Total discount is being used when the organization want to give a discount depending on the amount of the sales order and not on the quantity of items ordered. For example > If any one purchase 500 USD of any product then I will give a discount on it. The discount will be 50USD and then 10% after that.
For this create a journal with the same procedure as we have made previously. But in the Relation field select the Total Discount (Sales) option.
TA11
NOTE: Here I gave All in Item code which means I want to assign discount on all the items but if total will be 500USD. We set up in the system as per the requirement in the example.
Now once the journal has been posted, raise a sales order irrespective of any item (since we gave all in the item code) having a sum total of 500 USD.
Now once a SO is raised, go to the Header view & under the Price & Discount fast tab, under Discount or charges select the Total discount group.
NOTE: Now make sure that in, Product Information Management under the sell fast tab, Total Discount checkbox is checked for the items you have raised the Sales Order.
TA12
NOTE: Total discount works only if you click the Total discount button in the Sall fast tab of the Sales order form.
Once you have clicked the Total discount button the discount has been applied. It can be seen in the Totals of the Sales order pane.
TA13
IMPORTANT NOTE: I have shown you the trade agreement for the customers. Same is applicable for the vendors also.  While creating the journal take the purch option & the  navigation will be done through Procurement & Sourcing

Changing Item Dimension group for already existing Item In Dynamics Ax


Here I am going to explain the process as how we can change Item dimension group for an Item which already has some transactions. (We can remove or add only these Storage dimension- Batch number, Serial number, Pallet ID and Location dimension )
  • Prepare a list of Items which needs a change for Dimension group (Say Dim1).
  • Create a new Item Dimensions groups (say Dim2) same as Dim1. But for Storage diemensions which are going to be removed needs to have Blank Receipts allowed and Blank Issues allowed check boxes selected.
  • Replace Dim1 with Dim2 for required Items in Item form, General tab.
  • Create a new Counting Journal
  • Click lines and enter the items.
  • If you are changing Dimension group for many Items at a time then click Create button in this form and select Items or On-hand option as per  your requirement.
  • Enter ‘0’ in Counted field for the Item lines in the counting journal  (you can also create Movement journal with Negative quantity for required Items and post the Journal)
  • post the journal. Now we have Zeroed or nullified inventory for these items. (We have removed Inventory for these items)
  • Now change Dimension group for these required Items to a new dimension group as per your requirement (Say Dim3).
  • Now post a Movement journal with Positive quantity with required dimensions selected in Dim3.
  • Now we have Items into inventory with changed storage dimensions.