cancel
Showing results for 
Search instead for 
Did you mean: 

Warehouse Stock Query

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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