|
@@ -32,8 +32,8 @@
|
|
|
WHERE cp.contract_id = t1.id)
|
|
|
, 0) AS settledAmount,
|
|
|
po.delivery_period as prodDeliveryPeriod,
|
|
|
- t4.deliverQuantity,
|
|
|
- t4.notDeliverQuantity
|
|
|
+ IFNULL(t4.deliverQuantity, 0),
|
|
|
+ IFNULL(t4.notDeliverQuantity, 0)
|
|
|
FROM contract t1
|
|
|
left join customer c on t1.buy_corporation_id = c.id
|
|
|
left join sys_user us on c.user_id = us.user_id
|