Corrected logic in selection of invoice types.