Просмотр исходного кода

1.控制台财务应收未开票金额调整

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

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

@@ -2521,8 +2521,8 @@
             a.allAmount as "commissionFeevalue",
             IFNULL(c.settAmountOther,0) +IFNULL(b.settCommAmount ,0) as "noInvoicCommissionFeevalue",
             IFNULL(a.allInvoicCommissionFeevalue,0) - IFNULL( b.settCommAmount,0) + ifnull(c.invoicNotOther,0) as "settlementAmount",
-        a.allAmount -(
-        IFNULL( c.settAmountOther, 0 ) + IFNULL( b.settCommAmount, 0 )) - (IFNULL( a.allInvoicCommissionFeevalue, 0 ) - IFNULL( b.settCommAmount, 0 ))  AS "readyCommissionFeevalue",
+            (a.allAmount -(
+            IFNULL( c.settAmountOther, 0 ) + IFNULL( b.settCommAmount, 0 ))) -  (IFNULL( a.allInvoicCommissionFeevalue, 0 ) - IFNULL( b.settCommAmount, 0 ) + ifnull( c.invoicNotOther, 0 )) AS "readyCommissionFeevalue",
             a.allAmount-(IFNULL(c.settAmountOther,0) +IFNULL(b.settCommAmount ,0)) as "noSettlementAmount"
         FROM
             (
@@ -2838,9 +2838,9 @@
             a.allAmount as "commissionFeevalue",
             IFNULL(c.settAmountOther,0) +IFNULL(b.settCommAmount ,0) as "noInvoicCommissionFeevalue",
             IFNULL(a.allInvoicCommissionFeevalue,0) - IFNULL( b.settCommAmount,0) + ifnull(c.invoicNotOther,0) as "settlementAmount",
-            a.allAmount -(
-            IFNULL( c.settAmountOther, 0 ) + IFNULL( b.settCommAmount, 0 )) - (IFNULL( a.allInvoicCommissionFeevalue, 0 ) - IFNULL( b.settCommAmount, 0 ))  AS "readyCommissionFeevalue",
-            a.allAmount-(IFNULL(c.settAmountOther,0) +IFNULL(b.settCommAmount ,0)) as "noSettlementAmount"
+            (a.allAmount -(
+            IFNULL( c.settAmountOther, 0 ) + IFNULL( b.settCommAmount, 0 ))) -  (IFNULL( a.allInvoicCommissionFeevalue, 0 ) - IFNULL( b.settCommAmount, 0 ) + ifnull( c.invoicNotOther, 0 ))  AS "noSettlementAmount",
+            a.allAmount-(IFNULL(c.settAmountOther,0) +IFNULL(b.settCommAmount ,0)) as "readyCommissionFeevalue"
             FROM
             (
             SELECT