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

Alert whenever a stocktake occurs

Hi

I need a query for an alert for whenever an inventory posting takes place

whenever someone has done a stock count and has done the reconciliation under the inventory posting window

Thanks for your help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2012 at 02:21 AM

    Hi,

    Try this:

    SELECT dbo.OIQR.DocDate, dbo.OIQR.CreateDate, dbo.OIQR.DocTime, dbo.OIQR.JdtNum, dbo.OUSR.U_NAME

    FROM dbo.OIQR INNER JOIN

    dbo.OUSR ON dbo.OIQR.UserSign = dbo.OUSR.INTERNAL_K

    WHERE datediff(d,dbo.OIQR.CreateDate,getdate())=0

    Hope this helps,

    TVSon

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Mistake 😀

      SELECT T0.DocDate, T0.CreateDate, T0.DocTime, T0.JdtNum, dbo.OUSR.U_NAME as Creator, dbo.IQR1.ItemCode, dbo.IQR1.ItemName, dbo.IQR1.OnHandBef as OnHand, dbo.IQR1.Quantity AS Difference

      FROM dbo.OIQR T0 INNER JOIN

      dbo.OUSR ON T0.UserSign = dbo.OUSR.INTERNAL_K INNER JOIN

      dbo.IQR1 ON T0.DocEntry = dbo.IQR1.DocEntry

      WHERE T0.CreateDate >= [%0] and T0.CreateDate <= [%1]

      Regards,

      TVSon

  • Posted on Nov 14, 2012 at 02:47 AM

    Hi Semaan..

    Try this query

    SELECT t1.DocEntry, t1.CreateDate,t1.DocTime, t1.JdtNum,

    t2.itemcode,t2.itemname,t2.Quantity

    FROM OIQR t1

    inner join iqr1 t2 on t1.DocEntry=t1.DocEntry

    WHERE datediff(d,t1.CreateDate,getdate())=0

    Regards

    Kennedy

    Add a comment
    10|10000 characters needed characters exceeded

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.