将已经收付款完成的单据不显示

This commit is contained in:
季圣华
2021-09-08 22:57:30 +08:00
parent 092fee68f0
commit b12d4496c3

View File

@@ -582,7 +582,8 @@
</foreach>
)
</if>
and abs(dh.change_amount) &lt; dh.discount_last_money
and (abs(dh.change_amount)+(select ifnull(sum(ai.each_amount),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1'))
&lt; (dh.discount_last_money + dh.other_money)
and ifnull(dh.delete_flag,'0') !='1'
order by dh.id desc
</select>