|
@@ -2219,6 +2219,8 @@
|
|
ON OIR.SALE_MATERIAL_ID = ASM.SALE_MATERIAL_ID
|
|
ON OIR.SALE_MATERIAL_ID = ASM.SALE_MATERIAL_ID
|
|
WHERE
|
|
WHERE
|
|
ASM.SALE_MATERIAL_ID IS NOT NULL
|
|
ASM.SALE_MATERIAL_ID IS NOT NULL
|
|
|
|
+
|
|
|
|
+ and ASO.DELETED != 1
|
|
and asm.SALE_ORDER_ID != -1
|
|
and asm.SALE_ORDER_ID != -1
|
|
<if test="carrierSsoId != null">
|
|
<if test="carrierSsoId != null">
|
|
and R_CARRIER.CARRIER_SSO_ID = #{carrierSsoId}
|
|
and R_CARRIER.CARRIER_SSO_ID = #{carrierSsoId}
|