Calculate inventory at an earlier date

MT78MT78 Member Posts: 3
Hello everybody,

i would like to calculate the inventory quantity at an earlier date (ex: knows the inventory for an item on 30 april 2008)

On the report with this code it's always the same quantity => inventory at this moment :
_________________________________________________________________________

RecItem is a variable record on Item table
VarDateStock is variable as date (user inform the date on report filter)

RecItem.INIT;
RecItem.SETRANGE(RecItem2."No.",Item."No.");
RecItem.SETRANGE(RecItem2."Date Filter",VarDateStock);
IF RecItem.FIND('-') THEN
BEGIN
RecItem.CALCFIELDS(RecItem.Inventory);
VarStockFinMois:=RecItem.Inventory;
END;

Thanks a lot for your help

The same code on customer or vendor is ok when i want to know the sales for a period.

Comments

Sign In or Register to comment.