|
@@ -6,7 +6,7 @@
|
|
|
<if test="sy.account =='101'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
- c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,101 as account
|
|
|
+ c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,sd.iQuantity as quantity,101 as account
|
|
|
from UFDATA_101_2021.dbo.SO_SOMain sm
|
|
|
join UFDATA_101_2021.dbo.SO_SODetails sd on sm.id=sd.id
|
|
|
join UFDATA_101_2021.dbo.Inventory c on c.cInvCode=sd.cInvCode
|
|
@@ -16,7 +16,7 @@
|
|
|
<if test="sy.account =='102'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
- c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,102 as account
|
|
|
+ c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,sd.iQuantity as quantity,102 as account
|
|
|
from UFDATA_102_2021.dbo.SO_SOMain sm
|
|
|
join UFDATA_102_2021.dbo.SO_SODetails sd on sm.id=sd.id
|
|
|
join UFDATA_102_2021.dbo.Inventory c on c.cInvCode=sd.cInvCode
|
|
@@ -26,7 +26,7 @@
|
|
|
<if test="sy.account =='103'">
|
|
|
select
|
|
|
sm.cSOCode as orderNumber,sd.iRowNo,sd.cInvCode AS inventoryCode,c.cInvCcode AS inventoryCcode,
|
|
|
- c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,103 as account
|
|
|
+ c.cInvName AS inventoryName,sd.cFree1 AS colour,c.cInvStd as specificationAndModel,sd.iQuantity as quantity,103 as account
|
|
|
from UFDATA_103_2021.dbo.SO_SOMain sm
|
|
|
join UFDATA_103_2021.dbo.SO_SODetails sd on sm.id=sd.id
|
|
|
join UFDATA_103_2021.dbo.Inventory c on c.cInvCode=sd.cInvCode
|
|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
<select id="queryOMList" resultType="org.jeecg.modules.documents.orderData.entity.SySOAndOM" >
|
|
|
select om.cCode,od.iVouchRowNo,od.cInvCode AS inventoryCode,
|
|
|
- c.cInvName AS inventoryName,od.cFree1 AS colour,c.cInvStd as specificationAndModel
|
|
|
+ c.cInvName AS inventoryName,od.cFree1 AS colour,c.cInvStd as specificationAndModel,od.iQuantity as quantity
|
|
|
from OM_MOMain om
|
|
|
join OM_MODetails od on om.MOID =od.MOID
|
|
|
join Inventory c on c.cInvCode=od.cInvCode
|