Click here to Skip to main content
15,890,377 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to Crystal and am trying to understand the following Details Row Suppression. I understand the first line and the 3rd line but the second line starting with the if(FLAG_TRACK_BIN)=1 is throwing me for a loop. Here is the entire suppression clause. Is it possible to write this in the sql?

((loc_qty_onhd - loc_qty_alloc ) >=0 and (loc_qty_onhd)>(LEVEL_ROP) and if(FLAG_TRACK_BIN)=1 then (Bin_QTY_ONHD)>(LEVEL_ROP) else (FLAG_TRACK_BIN)=0 ) OR (Bin_KEY_BIN_1)="SHOP" or ((loc_qty_onhd - loc_qty_alloc )>=0 and (LEVEL_ROP)=0) or (FLAG_VND_PRIM)="S"


Can anyone explain to me what the second line is doing ? The "Then" is throwing me off

What I have tried:

the "Then" in this line has me confused.
if(FLAG_TRACK_BIN)=1 then (Bin_QTY_ONHD)>(LEVEL_ROP) else (FLAG_TRACK_BIN)=0 ) OR
Posted
Comments
[no name] 4-Mar-21 15:02pm    
Unless you know what it's "supposed" to do, you'll probably never figure it out. It could be wrong to start with; or perhaps doesn't even get used.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900