Commit e390bebe authored by 季圣华's avatar 季圣华
Browse files

解决付款单选择单据的时候遇到0待付款的bug

parent 2e2cc04f
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
</foreach> </foreach>
) )
</if> </if>
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')) 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'))
&lt; (dh.discount_last_money + dh.other_money) &lt; (dh.discount_last_money + dh.other_money)
and ifnull(dh.delete_flag,'0') !='1' and ifnull(dh.delete_flag,'0') !='1'
order by dh.id desc order by dh.id desc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment