Following is the selection criteria, please help which condition I have to modify...
Regards....
if {?SWDELMETHOD} = "1" then //Selection partly done in UI - sortto and sortfrom is the same
(
{POPORL.COMPLETION}=1 and
{POPORH1.PONUMBER} = {?PORFROM} and
(({POPORL.STPRINT}=0) OR (ToNumber({?DPRINTED})=1))
)
else // No selection in UI
(
{POPORL.COMPLETION}=1
AND ( (({POPORH1.PORTYPE} = 1) AND (ToNumber({?ACTIVE})=1))
OR (({POPORH1.PORTYPE} = 2) AND (ToNumber({?STANDING})=1))
OR (({POPORH1.PORTYPE} = 3) AND (ToNumber({?FUTURE})=1))
OR (({POPORH1.PORTYPE} = 4) AND (ToNumber({?BLANKET})=1)) )
AND ({POPORH1.ISPRINTED}=0 OR ToNumber({?PRINTED})=1)
AND ({POPORH1.PONUMBER} >= {?PORFROM})
AND ({POPORH1.PONUMBER} <= {?PORTO})
AND (({POPORL.STPRINT}=0) OR (ToNumber({?DPRINTED})=1))
AND ({POPORH1.ONHOLD} = 0) and
// if delivery method is 3, always select vendor
// else select vendors that have delivery method of mail
(
{?SWDELMETHOD} = "3" or
(
{?SWDELMETHOD} = "2"
and
{APVEN.DELMETHOD} = 0
)
)
)