{
//show all?
if(omode==ORDERALL)return true;
- //do not show cancelled ones per default
- if(ord.isCancelled())return false;
- //select by mask
+ //select by mask: outstanding payments and refunds
if((omode&ORDERPAY)!=0 && ord.needsPayment())return true;
if((omode&ORDERREFUND)!=0 && ord.needsRefund())return true;
+ //do not show cancelled ones per default
+ if(ord.isCancelled())return false;
+ //select by mask: not yet sent and reserved...
if((omode&ORDERUNSENT)!=0 && !ord.isSent())return true;
if((omode&ORDERRESERVE)!=0 && ord.isReservation())return true;
//no match: ignore the entry