Item "Average Cost" with Discount

Mohammed
Member Posts: 42
Problem: Discounts should be considered for Average Cost calculation of an Item
Details:
In Item Card, there is one field "Average Cost LCY" (Invoicing Tab)... The calculation for this field is
(("Cost Amount (Actual)" + "Cost Amount (Expected)") / "Item Ledger Entry Quantity")...
where all the three fields are from matching records of "Value Entry" table....
My requirement is to consider all the Discounts for the item, for the Average Cost calculation... So what I have done is modified the code like this:
(("Cost Amount (Actual)" + "Cost Amount (Expected)" + "Discount Amount") / "Item Ledger Entry Quantity")
where "Discount Amount" is also a field of "Value Entry" table...
But I find that the "Discount Amount" field is always calculated as zero, irrespective of whatever Discount we are entering for the item in a Sales Order...
So which is the actual field that is required for Average cost calculation with discount (if it is not "Discount Amount" field)?
Details:
In Item Card, there is one field "Average Cost LCY" (Invoicing Tab)... The calculation for this field is
(("Cost Amount (Actual)" + "Cost Amount (Expected)") / "Item Ledger Entry Quantity")...
where all the three fields are from matching records of "Value Entry" table....
My requirement is to consider all the Discounts for the item, for the Average Cost calculation... So what I have done is modified the code like this:
(("Cost Amount (Actual)" + "Cost Amount (Expected)" + "Discount Amount") / "Item Ledger Entry Quantity")
where "Discount Amount" is also a field of "Value Entry" table...
But I find that the "Discount Amount" field is always calculated as zero, irrespective of whatever Discount we are entering for the item in a Sales Order...
So which is the actual field that is required for Average cost calculation with discount (if it is not "Discount Amount" field)?
0
Answers
-
The average cost has nothing to do with your sales price or discounts on the sales order...Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Average Cost has nothing to do with the Sales Discount.... But my problem is Discount has to do something with the Average Cost Calculation of an Item... The discount applied for an item in a posted Sales Order should be considered for Average Cost calculation of that item...
Average Cost of the Item is calculated each time the Item Card is opened...0 -
Mohammed wrote:But my problem is Discount has to do something with the Average Cost Calculation of an Item... The discount applied for an item in a posted Sales Order should be considered for Average Cost calculation of that item...
Perhaps its the wording. A discount on a sales order will effect or Average "SALE" Price but it has nothing to do with "YOUR" cost of an item.
If an item cost you $1 and you give the customer a 100% discount on that item what do you think your avg cost should be? Yes 1$.
Perhaps you mean a discount on a PO?0 -
Yes, it is discount on PO... Solved O:)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions