Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing Stock Value
Message
 
 
To
06/07/2010 15:07:54
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Miscellaneous
Thread ID:
01471551
Message ID:
01471588
Views:
33
>
>openingamount + nvl(purchaseamount,0) - nvl(soldamount,0) as [ClosingAmount] ;
>
>
>Nomi, thanks for helping but I want to draw you attention to above line of codes
>
>the closing qty will multiply by purchase rate
>
>The last purchase rate of 1401 is 14.775
>so closing amount of 1401=?
>
>closing amount=closing qty*last purchase rate
>14.775*6=88.65
>
>so closing amount of 1401=88.65
>
>But your query displays 59.70

In your sample data the last purchase rate for 1401 is 6.13
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform