|
|
@@ -258,8 +258,8 @@ func (r *ErmcpModel) buildSql(nContractType, nQueryType int32) string {
|
|
|
" g2.goodsname," +
|
|
|
" e.enumdicname," +
|
|
|
" t.contracttype," +
|
|
|
- " t.pricedamount," +
|
|
|
- " case when t.pricedqty > 0 then t.pricedamount/t.pricedqty else 0 end pricedAvg," +
|
|
|
+ " t.pricedamount + t.pricedqty * t.pricemove as pricedamount," +
|
|
|
+ " case when t.pricedqty > 0 then (t.pricedamount + t.pricedqty * t.pricemove)/t.pricedqty else 0 end pricedAvg," +
|
|
|
" t.ReckonRealQty," +
|
|
|
" t.ReckonOtherAmount," +
|
|
|
" t.ReckonAdjustAmount," +
|