md
This commit is contained in:
parent
a8415eef4f
commit
099d2e199d
@ -117,15 +117,15 @@
|
|||||||
|
|
||||||
|
|
||||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||||
and settle_bill_no in(
|
AND apply_seq_no IN (
|
||||||
select bill_no from emis_settle_sub_bill b where del_flag='0'
|
SELECT x1.apply_seq_no FROM
|
||||||
and (
|
emis_settle_invoice_record x1,
|
||||||
b.salesmen=#{params.privEmpName}
|
emis_settle_bill x2
|
||||||
or b.payee=#{params.privEmpName}
|
WHERE
|
||||||
or b.salesmen in(
|
x1.del_flag = '0'
|
||||||
select salesmen from emis_salesmen_rel where sales_ass=#{params.privEmpName}
|
AND x2.del_flag = '0'
|
||||||
)
|
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||||
)
|
AND ( x2.salesmen = #{params.privEmpName} OR x2.payee = #{params.privEmpName} OR x2.salesmen IN ( SELECT salesmen FROM emis_salesmen_rel WHERE sales_ass = #{params.privEmpName} ) )
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user