Normally It should see the all lines isnt it?but when I debug ,iin first line is ordered so it sees ordered and then break the loop but after ordered I have 3 lines also and there status Purchased registered and Received It must to calcute three of them.Then I changed my if statement I made like
if(InvenTtrans.statusreceipt ==statusreceipt::registered || InvenTtrans.statusreceipt ==statusreceipt::Purchased || InvenTtrans.statusreceipt ==statusreceipt::regcieved) but It didnot work also.
How should I calculate only this tree statusrecipt?
oh so I can use if(itr.statusreceipt !=statusreceipt::ordered) under the while or I can give a range range.value(SysQuery::valueNot(statusreceipt::ordered)); isn’t it?