فهرست منبع

成本分配表 计划数量 出运数量

liuchaohui 1 سال پیش
والد
کامیت
797e144493

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/mapper/xml/SyCostAllocationMapper.xml

@@ -73,7 +73,7 @@
         inner JOIN UFDATA_103_2021.dbo.Department de ON b.cDepCode = de.cDepCode
         inner JOIN UFDATA_103_2021.dbo.Customer cc ON b.cCusCode = cc.cCusCode 
         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
         inner JOIN UFDATA_102_2021.dbo.rdrecords32 rds on rds.isodid =s.isosid
@@ -110,7 +110,7 @@
         inner JOIN UFDATA_103_2021.dbo.Department de ON b.cDepCode = de.cDepCode
         inner JOIN UFDATA_103_2021.dbo.Customer cc ON b.cCusCode = cc.cCusCode 
         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
         inner JOIN UFDATA_101_2021.dbo.rdrecords32 rds on rds.isodid =s.isosid

+ 2 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/cost/mapper/xml/SyCostAllocationShipdetailMapper.xml

@@ -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%'