fix pending/invoiced selection, RT#81713