In PurchLine, Zero qty rcvd shoud be display

Hi all,

I am creating report from PurchLine, as the the condition is Purchstatus = openorder, Received qty should be 0 and ordered qty should be == DeliveryRemainder(RemainPurchPhysical)…

How to bring this logic in my report…Plz help

Create ranges inside datasourse, if you got complex conditions override the report fetch() method and use SysQuery::findOrCrateRange()