Add a Date Filter in the "Item Ledger Entry" table and add the Quantity field for all records.
Or create a FlowField on the Item table to get you the value.
can you just explain me what does that "Net change" filed mean?
"Inventory" and "Net change" are both flowfields in the item table which have similar calcformulas, the only difference is that "Net change" take take a date filter into account. So "Inventory" can only be used to show the stock qty as of today, whereras "Net change" can show you same for any day in the past. Just set a date filter (this is a flowfilter field) like "..31.12.08" ( if your date format is DDMMYY, otherwise of course use your local date format ) to see the inventory at the end of 2008.
You will find a "Net change" field in other master tables too (G/L account etc.)
can you just explain me what does that "Net change" filed mean?
"Inventory" and "Net change" are both flowfields in the item table which have similar calcformulas, the only difference is that "Net change" take take a date filter into account. So "Inventory" can only be used to show the stock qty as of today, whereras "Net change" can show you same for any day in the past. Just set a date filter (this is a flowfilter field) like "..31.12.08" ( if your date format is DDMMYY, otherwise of course use your local date format ) to see the inventory at the end of 2008.
You will find a "Net change" field in other master tables too (G/L account etc.)
My heartful thanks for your time,but my real concern is this :
I am making a report where i need to print today's inventory as well as 1 week's past inventory.i can fetch todays date from the request field and i am storing week before date by substracting 7days from the today's date.But,While using some filter i am not able to use that variable which i used to store 7days before date.
Create an second item record variable (Item2), apply the date filter for the last week to that, use GET with the item no. to fetch the same item and do CALCFIELDS for the "Net change" field with this record and use Item2."Net change" as the source expression in the control for last weeks inventory.
Hi
Why are you not using the standard report Inventory valuation and set the proper filters?
If you need both values side by side in one report you need to do some coding. Of course you can use the report and regard last weeks inventory as the starting date, but if you want to create own reports and learn some C/AL techniques that won't help you.
Create an second item record variable (Item2), apply the date filter for the last week to that, use GET with the item no. to fetch the same item and do CALCFIELDS for the "Net change" field with this record and use Item2."Net change" as the source expression in the control for last weeks inventory.
Hi
Why are you not using the standard report Inventory valuation and set the proper filters?
If you need both values side by side in one report you need to do some coding. Of course you can use the report and regard last weeks inventory as the starting date, but if you want to create own reports and learn some C/AL techniques that won't help you.
Boris
*
Please, do not frighten the ostrich,
the floor is concrete.
Comments
Or create a FlowField on the Item table to get you the value.
Salut!
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.
Salut!
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.
http://ssdynamics.co.in
Sorry for the misunderstanding, my english knowledge makes me write this :-p
Thanks anyway,
Salut!
Author of the book Implementing Dynamics NAV 2013
Cursos Dynamics NAV (spanish) : http://clipdynamics.com/ - A new lesson released every day.
Thank you...but a request from my side :
can you just explain me what does that "Net change" filed mean?
and also can you explain me the logic behind the solution you gave and how it works?
You will find a "Net change" field in other master tables too (G/L account etc.)
My heartful thanks for your time,but my real concern is this :
I am making a report where i need to print today's inventory as well as 1 week's past inventory.i can fetch todays date from the request field and i am storing week before date by substracting 7days from the today's date.But,While using some filter i am not able to use that variable which i used to store 7days before date.
Any solution for me?
Why are you not using the standard report Inventory valuation and set the proper filters?
*
Please, do not frighten the ostrich,
the floor is concrete.
Hi Kowa,
This code is still printing the inventory on the date filter which i have set and not week's before inventory.What could be the reason?
*
Please, do not frighten the ostrich,
the floor is concrete.