|
@@ -190,7 +190,7 @@
|
|
|
p.dArriveDate,
|
|
|
sum(p.iQuantity) iQuantity,
|
|
|
sum(p.iReceivedQTY) iReceivedQTY,
|
|
|
- sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
|
|
|
+ sum(p.coefficient*p.iQuantity) coefficient
|
|
|
from Supplier_Capacity_Test p
|
|
|
${ew.customSqlSegment}
|
|
|
group by p.cDepCode,p.cVenCode,p.dArriveDate
|
|
@@ -241,7 +241,7 @@
|
|
|
p.dArriveDate,
|
|
|
sum(p.iQuantity) iQuantity,
|
|
|
sum(p.iReceivedQTY) iReceivedQTY,
|
|
|
- sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
|
|
|
+ sum(p.coefficient*p.iQuantity) coefficient
|
|
|
from Supplier_Capacity_Test p
|
|
|
${ew.customSqlSegment}
|
|
|
group by p.cDepCode,p.dArriveDate
|
|
@@ -292,7 +292,7 @@
|
|
|
p.dArriveDate,
|
|
|
sum(p.iQuantity) iQuantity,
|
|
|
sum(p.iReceivedQTY) iReceivedQTY,
|
|
|
- sum(cast(isnull(p.coefficient,'0') as decimal)) coefficient
|
|
|
+ sum(p.coefficient*p.iQuantity) coefficient
|
|
|
from Supplier_Capacity_Test p
|
|
|
${ew.customSqlSegment}
|
|
|
group by p.cVenCode,p.dArriveDate
|