Skip to Content
author's profile photo Former Member
Former Member

Warehouse Stock Query

Hai,

I need the warehouse stock query using Item cost

I have the report for Finished goods In that report warehouse Item cost is not displayed please send me the different warehouse stock query using Item cost.

and i need outgoing excise invoice query with tax detail, document total , tax total,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2011 at 01:27 PM

    Hi,

    One question for one thread please. This is the forum rule.

    As for the first query, could you post it here so that others only need to add the field you need?

    Your question belongs report forum so that I moved it.

    Thanks,

    Gordon

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 01, 2011 at 02:31 PM

    Hi Pushpa......

    For your warehouse wise stock query with item cost....

    try this.....

    SELECT T0.ItemCode, T0.ItemName, T1.WhsCode, T2.WhsName, T1.OnHand, T1.IsCommited as 'Commited', T1.OnOrder, (T1.OnHand- T1.IsCommited+ T1.OnOrder) as 'Available QTY',T1.AvgPrice as 'ItemCost', T1.OnHand*T1.AvgPrice as 'TOTAL' FROM dbo.OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode Inner Join OWHS T2 On T1.WhsCode=T2.WhsCode

    For your Outgoing Excise Query......

    try this......

    SELECT SUBSTRING((CONVERT(VARCHAR(11),T0.DOCDATE,106)),4,11), T0.[DocNum], T0.[DocDate], Sum(T1.[Quantity]) 'Quantity', Sum(T1.[LineTotal]) 'Amount',(Sum(T1.[LineTotal])/Sum(T1.[Quantity])) 'Rate', (isnull((SELECT SUM((case when upper(t4.STAType)=-90 then T4.TaxSum else 0 end))
    	 FROM OEI4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) 'Cenvat 10%', 
    (isnull((SELECT SUM((case when upper(t4.STAType)=-60 then T4.TaxSum else 0 end))
    	 FROM OEI4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) 'Edu. Cess 2%',
    	(isnull((SELECT SUM((case when upper(t4.STAType) =-55 then T4.TaxSum else 0 end))
    	 FROM OEI4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) 'S&H Cess 1%', 
    (isnull((SELECT SUM((case when upper(t4.STAType) =1 then T4.TaxSum else 0 end))
    	 FROM OEI4 T4 WHERE T4.DocEntry=T0.DocEntry ),0)) 'VAT%'
     FROM OOEI T0  INNER JOIN OEI1 T1 ON T0.DocEntry = T1.DocEntry
    Group By T0.[DocNum], T0.[DocDate], T0.[TotalExpns], t0.doctotal, t0.vatsum, T0.DocEntry
    Order By T0.[DocDate]

    Regards,

    Rahul

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I also have an stock report problem. For out accounting we need the stock balance with value ex post, but B1 knows only the current stock report.

      My idea is to make a query such like Inventory Posting List Report and put into a Warning, set it to every day and I will have an ex-port stock balance.

      Could somebody help me with the query of Inventory Posting List Report. Wich is important for me is to have the item prices from the last incoming bills.

      Thanks,

      Thomas

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.