on 11-04-2011 5:02 PM
Hi All,
I am looking for an alert that will find duplicate ItemCodes on a single invoice.
Once the invoice is posted it must alert a user that the specific invoice contains duplicate ItemCodes.
Any help will be appreciated.
Regards,
Quinn
Hi Quinn,
Try:
SELECT T0.DocNum, T0.CardCode,T1.ItemCode
FROM OINV T0 INNER JOIN INV1 T1 ON T1.DocEntry=T0.DocEntry
WHERE DateDiff(dd,T0.DocDate,GetDate()) = 0
GROUP BY T0.DocNum, T0.CardCode,T1.ItemCode
Having Count(T1.ItemCode) > 1
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.......
Alert will generally fire after you add invoice which is not of use.
But if you want to restrict it completely then you may use SP Transaction Notification........
Regards,
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.