web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Inventory Valuation Report, Unit Cost = 0, when Remaining Qty. <= .5

(0) ShareShare
ReportReport
Posted on by 834

NAV 2009 R2, Version US Dynamics NAV 6.0 SP1 (6.00.33046).

When printing the Inventory Valuation Report from RTC, I've found that Unit Cost will = 0 when Remaining Qty. <=.5.

When looking at the report layout, I see this Report Property Code;

Public Function CalcUnitCost(Inventory as decimal, Remaining as integer)

     if Remaining = 0 then

         return 0

     end if

     return Inventory/ Remaining

End Function

I could change Remainin from "as integer" to "as decimal".  Any reasons why this change might not be desirable?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at

    Hi,

    I think this is safe enough. You could get unreasonably high cost amouts when your Remaining is near zero, though. Which would be a quesion of choosing the right base unit of measure.

    with best regards

    Jens

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans