on 10-16-2015 7:40 AM
Hi,
I need to generate a list of AR invoices which created manually in the system and those invoices normally don't have a sales order attach to them (not converted from sales order).
Any help would be much appreciated. Thanks!
Regards
Hi,
Try the below query
select v.docnum,v.docdate,v.cardcode,v.CardName from oinv v where v.docentry in (select v1.DocEntry from inv1 v1 where v1.BaseType ='-1')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this query which excludes AR reserve invoice:-
SELECT t0.docentry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName] FROM OINV T0 INNER JOIN INV1 T1 ON T0.[DocEntry] = T1.[DocEntry] WHERE T1.[BaseType] = '-1' and T0.[isIns] = 'N' group by t0.docentry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName]
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.