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
)
)
)
Commented out the COLPLETETION=1 but still printint blank... I modified selection criteria on popor04.rpt.
----------------- Modified the follwoing in popor04.rpt
if {?SWDELMETHOD} = "1" then //Selection partly done in UI - sortto and sortfrom is the same
( //{POPORL.COMPLETION}=1 and ---jjj
{POPORH1.PONUMBER} = {?PORFROM} and
(({POPORL.STPRINT}=0) OR (ToNumber({?DPRINTED})=1))
)
else // No selection in UI
( // {POPORL.COMPLETION}=1 and ---jjj
( (({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
)
)
)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.