on 05-25-2016 8:39 AM
This is an german forum.
Anyway: join the inv4 with LEFT JOIN, because not every invoice has rows in it.
hth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Logesan,
you have more than 1 row in the table inv4 in conjunction with the row in the table oinv.
i think you musst change your sql-query to this:
select sum(t1.LineTotal) 'Net Value'
from oinv t0
inner join inv1 t1 on t0.DocEntry = t1.docentry
inner join inv12 t2 on t0.DocEntry = t2.DocEntry
inner join inv4 t3 on t0.DocEntry = t3.DocEntry
where t0.DocDate between '2016-04-01' and '2016-04-30'
group by t0.docentry, t1.DocEntry, t2.DocEntry, t3.DocEntry, t0.DocDate
Best Regards
Ronny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
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.