Merge pull request 'demand: tms-统计报表-财务收款统计-逾期已收金额(60天)金额计算不准确问题解决' (#261) from develop into master

Reviewed-on: http://git.xdadan.loc/tanex/emis-service/pulls/261
This commit is contained in:
heyu 2025-12-10 14:59:32 +08:00
commit c5518a7195

View File

@ -209,7 +209,7 @@
if( tbb.totalPayMoney > 0,tbb.totalPayMoney-tbc.totalOtherMoney, 0 ) AS totalPayMoney,
if( tbb.recdMoneyIn > 0,tbb.recdMoneyIn-tbc.totalOtherMoney,0) AS recdMoneyIn,
if( tbb.recdPayMoney60D > 0,tbb.recdPayMoney60D-tbc.totalOtherMoney,0) recdPayMoney60D,
if( tbb.recdPayMoneyGreat60D >0,tbb.recdPayMoneyGreat60D-tbc.totalOtherMoney,0) recdPayMoneyGreat60D,
if( tbb.recdPayMoneyGreat60D >0,tbb.recdPayMoneyGreat60D,0) recdPayMoneyGreat60D,
( tba.rec_money - tba.reced_money - tbc.totalOtherMoney ) AS noRecMoney
FROM
(