TavernerPOS - Source Code
Clone:
git clone http://www.librarysmith.co.uk/tavernerPOS
Index
» tavernerPOS : Blob 49e6a2 / .svn / pristine / 06 / 069474fb437be741bbc287071d061865b549a2c4.svn-base
package com.floreantpos.model;
import org.apache.commons.lang.StringUtils;
public enum PaymentStatusFilter {
OPEN, PAID, CLOSED;
public static PaymentStatusFilter fromString(String s) {
if (StringUtils.isEmpty(s)) {
return OPEN;
}
try {
PaymentStatusFilter filter = valueOf(s);
return filter;
} catch (Exception e) {
return OPEN;
}
}
public String toString() {
return name().replaceAll("_", " "); //$NON-NLS-1$ //$NON-NLS-2$
}
}
- Details
- Last Updated: Monday, 04 April 2016 02:04
- Hits: 39818136