# Report: Inventory Valuation - WIP

**URL:** <https://www.dynamicsuser.net/t/report-inventory-valuation-wip/10032>\
**Category:** Developers Forum\
**Created:** [June 9, 2005, 6:51am UTC](https://www.dynamicsuser.net/t/report-inventory-valuation-wip/10032 "2005-06-09T06:51:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FormerMember](https://avatars.discourse-cdn.com/v4/letter/f/74df32/32.png) [@FormerMember](https://www.dynamicsuser.net/u/FormerMember)\
**Post date:** [June 9, 2005, 6:51am UTC](https://www.dynamicsuser.net/t/report-inventory-valuation-wip/10032/1 "2005-06-09T06:51:26Z")

</div>

We are using Navision 3.70 (SG version) without hotfixes. The _Inventory Valuation - WIP_ report seems to be giving strange figures under the second column from the right (_As of xx/xx/xx_). I checked the code and noticed the following for the DataItem _Value Entry_:

```auto

Value Entry - OnPostDataItem()
  IF ValueOfWIP + ValueOfMatConsump + ValueOfCap <> -ValueOfOutput THEN BEGIN
    ValueOfWIP := ValueOfWIP - ValueOfInvOutput1 + ValueOfExpOutput1;
    ValueOfOutput := ValueOfExpOutput2;
  END;

```

I also noticed that the variables _ValueOfInvOutput1_ and _ValueOfExpOutput1_ are only assigned with values for records with Posting Date \< Starting Date specified by the user. So if the user leaves the Starting Date blank, these values are all zero. As for _ValueOfExpOutput2_, the value assigned is always the expected cost even when the actual cost has already been posted. Any idea what is the rationale behind this code? Would it be correct to comment out this code entirely? Thank you!
