//helper: finds out whether an order should be printed.
static inline bool candoUpdateOrders(int omode,const MOOrderInfo&ord)
{
+ //show all?
if(omode==ORDERALL)return true;
+ //do not show cancelled ones per default
+ if(ord.isCancelled())return false;
+ //select by mask
if((omode&ORDERPAY)!=0 && ord.needsPayment())return true;
if((omode&ORDERREFUND)!=0 && ord.needsRefund())return true;
if((omode&ORDERUNSENT)!=0 && !ord.isSent())return true;
if((omode&ORDERRESERVE)!=0 && ord.isReservation())return true;
+ //no match: ignore the entry
return false;
}