wuhp 1 год назад
Родитель
Сommit
51b06e9eec
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main/resources/mapper/modules/fnc/InsPlyIncomeMapper.xml

+ 1 - 1
src/main/resources/mapper/modules/fnc/InsPlyIncomeMapper.xml

@@ -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
         (
         SELECT