Thursday, 8 October 2015

AX 2012 | moving average costing method - Part 2



In part 1 we discussed how to set up moving average costing method, then we discussed  how moving average is handling of price differences between a product receipt and the vendor invoice.

Today we are going to learn how to revaluate cost for moving average. To proceed with the next example you must read part 1 of this series or at least do the setup which described there.

If your moving average value is inaccurate because of, for example, a posting mistake, you can adjust the unit price of the on-hand inventory at any time.

The moving average cost can only be adjusted as of the current date, so when you adjust the unit price of an item by using the following procedure, the adjustment date is always set to the current date. You cannot change the date when you post the adjustment.



When you adjust the moving average cost, the adjustment is posted to the Cost revaluation for moving average account. 

To adjust on-hand inventory value with moving average follow the steps below:

1- Go to Inventory and warehouse management > Periodic > Closing and adjustment.


2- Click Adjustment, and then click Revaluation for moving average.



3- Click Select to select the item D0007 (we used this item in part 1) to adjust,select the site check box and then click OK. The query only applies to the Product and Site financial inventory dimensions.



4- Enter 15 in the Unit cost field, the new unit price of the inventory item, and then click Post.

5- To see the accounting entries, close the Revaluation for moving average form, go back to Closing and adjustment form, select the adjustment transaction click ledger then select voucher.


6- as you can see the item moving average cost was updated by debiting the inventory and crediting the revaluation for moving average account with the difference between the the old cost (12) and the new cost (15).



7. please note that the revaluation for moving average account will be debited and the inventory account will be credited. for example repeat the steps from 1 to 4 to reduce the cost to 10. then check the voucher.

AX 2012 | moving average costing method - Part 1

In this series we are going to discuss the moving average costing method, by covering the following topics:

Part 1: Handling of price differences between a product receipt and the invoice.
Part 2: Revaluation for moving average.
Part 3: Backdating and moving average.
part 4: Production costing and moving average.
part 5: View how moving average was calculated.

first let's introduce the moving average costing method. Moving average is an inventory evaluation method that reevaluates inventory value in the chronological order of posting transactions, and it can be used to compute the average cost of the current ending inventory.

When a receipt transactions are included chronologically in the moving average calculation, according to the order in which the transactions are recorded in the system.

When Issue transactions are assigned the current active moving average cost at the time of recording, and the costs on inventory issues do not change even if the purchase costs (price in vendor Invoice ) change.


In the following example we are going to illustrate how we can setup the moving average prerequisites and then how we can Handling of price differences between a product receipt and the Vendor invoice.

Set up prerequisites for moving average as follow:

1- Set up an item model group

1.1- Go to Inventory and warehouse management > Setup > Inventory > Item model groups.

1.2-  Click New to create a new item model group for moving average.

1.3-  On the Setup FastTab, these check boxes are selected by default:

  • Stocked product
  • Post physical inventory
  • Post financial inventory



1.4- On the Inventory model FastTab, in the Inventory model field, selectMoving average. The Include physical value check box is not available. However, when you apply moving average, physical transactions are always included in a cost calculation.

2- Posting types

Proportionally expensed amounts and adjustments must be posted to General ledger. To distinguish the proportionally expensed amounts from other transactions in General ledger, two unique posting types have been introduced:

  • Price difference for moving average
  • Cost revaluation for moving average


2.1- Go to Inventory and warehouse management > Setup > Posting > Posting.

2.2- On the Inventory tab, click Price difference for moving average, and then click Add. In the Main account field, select the main account to use.

2.3- Click Cost revaluation for moving average, and then repeat step 2.2 for this account type.

3- Set up Production control parameters

3.1 Go to Production control > Setup > Production control parameters.

3.2 On the General tab, under Report as finished, select the Use estimated cost price check box. When this check box is selected, the estimated cost price is used rather than the cost that is registered on the product master.

3.3 Under Posting, select Post picking list in ledger and Post report as finished in ledger.

3.4. Under Estimation, select Price calculation.

4- Set up Product item model group

Since I am using AX 2012 R3 Demo data, USMF legal entity and item No. D0007 i need to do the following:

4.1- Product information management > Common > Released products > edit item D0007 and make sure to assign the moving average item model group to the item.


Scenario : Handling of price differences between a product receipt and the invoice

If some of the items on a purchase order have been received then sold, and there is a difference between the estimated cost of the purchase (Cost when the product receipt was posted)  and the vendor invoice, the full difference between the invoiced amount and the receipt cannot be recognized as inventory cost. In this case, you need to expense the difference proportionally.

Example: Proportionally expense a difference in price

In this example, you post an invoice to a receipt, and there is a difference in price between the estimated price and the price that is actually charged for the product.

After some of the units of the purchase are sold and thus taken out of inventory again, the value of the inventory cannot be based on the full quantity of the purchase.

In this case, the difference between the estimated price and the actual price of the items that were taken out of inventory must be expended.


To perform the example follow the steps: 

1- Go to Account payables > Common > Purchase orders > all purchase orders. then create new order to purchase five pieces of an item No D0007and enter an estimated price of 10.00 per unit. then confirm the Purchase order.

2. To receive the items go to receive tab then process the product receipt 

3  to sell two of the item Go to Account receivables > Common > sales order > all sales order Now create a sales order for two of the item D0007. So two items are taken out of inventory again at the cost of 10.00 each. confirm the sales order then process the packing slip then post the invoice.

4. when you receive the invoice for the purchase order and discover that you are actually charged 12.00 per unit for the item D0007 , not 10.00 as was originally estimated.

5. to create the invoice go back to the purchase order> invoice tab > invoice, change the cost per unit from 10.00 to 12.00, and then post the invoice.

6. The additional cost of 2.00 per unit cannot be related to the sales order, because the sales order is already costed when you receive the invoice for the purchased items. Therefore, the system performs a proportional calculation, and the expense of 4.00 ([12.00 – 10.00] × 2 units) is expensed on the Price difference for moving average account.

7- To view amounts that are posted on the Price difference for moving average account based on a proportional calculation go to the Invoice tab in the purchase order, click Invoice

8-  In the Invoice journal form, click Voucher.

9. In the Voucher transactions form, in the Amount field, view the amount that is posted to the Price difference for moving average account.

10- please note the following:

  • The remaining stock quantity ( 3 pcs ) cost will be updated to 12 when the product receipt voucher reversed and the vendor balance voucher registered.

  • The Price difference for moving average account could be debited or credited depending on the difference between the receipt cost and the invoice cost.

Importing purchase orders using DIXF



In this post we will illustrate how to import purchase orders through data import export framework. we will use one excel file which contain purchase order header in first sheet and purchase order details in another sheet.


to import the purchase order please do the following steps:




1- Go to Data import export framework --> Setup --> Data import / export framework Parameters.



2- Click browse to select shared working directory then click Validate button then close the form.



3- Go to Data import export framework --> Setup --> Source Data format, Create new source name and make sure to chose File in the Type field then select the file format in my example i will use excel. 



4- Go to Data import export framework --> Common --> Processing Group, Create New Group then Click the Entities Button.



5- in the entities form select the Purchase Order Header Entity,select Excel in the Source data format, then Click the generate source file button.



6- In the wizard click next then Make sure to select the following fields:
CurrencyCode
InvoiceAccount
LanguageId
OrderAccount
PurchId
VendGroup
PurchName
PurchaseType
PurchStatus
DocumentState
DeliveryDate

Then click Generate sample file.



7- when the excel file is opened, change the sheet name to POH.



8- Select the second sheet in the Excel, Change the sheet name to POL then add the following field names:

CurrencyCode
VendAccount
VendGroup
PurchId
ShippingDateConfirmed
LineNumber
ItemId
Name
PurchQty
PurchUnit
PurchPrice
InventSiteId
InventLocationId
PurchaseType



09- Go back to POH sheet, enter the purchase order header details.



10- select the POL sheet, Enter the purchase order lines details. in this example i will add two lines



10- when you finish make sure to save the file in the shared folder that we specified in step 2.



11- Go back to the processing group --> entities---> Select the "Purchase order header" entity, specify  the Excel file path then from the sheet lookup select POH$, click generate source mapping button.



12- Click New, Select Purchase order line entity, select Excel from source,specify the Excel file path then from the sheet lookup select POL$, click generate source mapping button then close. 



13- To preview the Purchase header details select purchase order header entity then Click the Preview source file button.



14- To preview the Purchase lines details select purchase order line entity then Click the Preview source file button. 



15- Close the form

16- In the processing group select the group name then click the Get staging data button to copy the file data to staging table.



17- Click OK to create job.



18- Click Run in the staging data execution form.



19- Click OK. (sorry, i forget to capture the screenshoot. its looks exactly like the following screenshot but with different name   )

20- The records will be inserted in the staging.



21- In the processing group select the group name then click Copy Data to target button.

22- Select the Job ID that we created in step 17 then click OK.



23- Click Run to import data.



24- Click OK.



25- The data will be written to target.




26- To view the imported purchase order go to the all purchase order list form, you will found that the purchase order was imported successfully.