Subversion Repositories SmartDukaan

Rev

Rev 31177 | Rev 31703 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 31177 Rev 31460
Line 70... Line 70...
70
	public static String formatDigit(double number) {
70
	public static String formatDigit(double number) {
71
		return digitFormatter.format(number);
71
		return digitFormatter.format(number);
72
	}
72
	}
73
 
73
 
74
	public static String format(LocalDateTime localDateTime) {
74
	public static String format(LocalDateTime localDateTime) {
75
		return localDateTime.format(dateTimeFormatter);
75
		return (localDateTime == null) ? "" : localDateTime.format(dateTimeFormatter);
76
	}
76
	}
77
 
77
 
78
	public static String formatPrice(double amount) {
78
	public static String formatPrice(double amount) {
79
		return currencyFormatter.format(amount).replace(".00", "");
79
		return currencyFormatter.format(amount).replace(".00", "");
80
	}
80
	}