Skip to main content

Notifications

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

  • Suggested answer
    Jens Glathe Profile Picture
    6,092 on at
    RE: Inventory Valuation Report, Unit Cost = 0, when Remaining Qty. <= .5

    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans