|
@@ -96,7 +96,7 @@
|
|
|
inner JOIN UFDATA_103_2021.dbo.Inventory c on c.cInvCode=a.cInvCode
|
|
|
inner JOIN UFDATA_103_2021.dbo.Person pe ON b.cPersonCode = pe.cPersonCode
|
|
|
inner join UFDATA_102_2021.dbo.PO_Pomain f on f.cPOID=o.csoordercode
|
|
|
- inner join UFDATA_102_2021.dbo.po_podetails g on g.POID=f.POID
|
|
|
+ inner join UFDATA_102_2021.dbo.po_podetails g on g.POID=f.POID and g.ivouchrowno=a.iRowNo
|
|
|
inner join UFDATA_102_2021.dbo.SO_SODetails s on s.iSOsID=g.iorderdid
|
|
|
inner join UFDATA_102_2021.dbo.so_somain ss on ss.id=s.id
|
|
|
WHERE b.cCusCode in ('T020001','0001') and ss.cCusCode not in ('T020001','0001') and c.cInvCcode like '19%'
|
|
@@ -148,7 +148,7 @@
|
|
|
inner JOIN UFDATA_103_2021.dbo.Inventory c on c.cInvCode=a.cInvCode
|
|
|
inner JOIN UFDATA_103_2021.dbo.Person pe ON b.cPersonCode = pe.cPersonCode
|
|
|
inner join UFDATA_101_2021.dbo.PO_Pomain f on f.cPOID=o.csoordercode
|
|
|
- inner join UFDATA_101_2021.dbo.po_podetails g on g.POID=f.POID
|
|
|
+ inner join UFDATA_101_2021.dbo.po_podetails g on g.POID=f.POID and g.ivouchrowno=a.iRowNo
|
|
|
inner join UFDATA_101_2021.dbo.SO_SODetails s on s.iSOsID=g.iorderdid
|
|
|
inner join UFDATA_101_2021.dbo.so_somain ss on ss.id=s.id
|
|
|
WHERE b.cCusCode in ('T020001','0001') and ss.cCusCode not in ('T020001','0001') and c.cInvCcode like '19%'
|