给欠款详情优化排序,改为按单据时间倒序
This commit is contained in:
@@ -897,7 +897,7 @@
|
|||||||
and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1'))
|
and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1'))
|
||||||
< (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0))
|
< (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0))
|
||||||
and ifnull(dh.delete_flag,'0') !='1'
|
and ifnull(dh.delete_flag,'0') !='1'
|
||||||
order by dh.id desc
|
order by dh.oper_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getFinishDepositByNumber" resultType="java.math.BigDecimal">
|
<select id="getFinishDepositByNumber" resultType="java.math.BigDecimal">
|
||||||
|
|||||||
Reference in New Issue
Block a user