@@ -3500,7 +3500,7 @@
select IFNULL(sum(a.noSettlementAmount),0) as "sySumAmount"
from (
SELECT
- (a.allAmount-(IFNULL(b.invoicComm,0) + IFNULL(c.otherInvoic,0))) as "noSettlementAmount"
+ a.allAmount -( IFNULL( c.settAmountOther, 0 ) + IFNULL( b.settCommAmount, 0 )) AS "noSettlementAmount"
FROM
(