data conversion work per locale.

This commit is contained in:
Keith Woodlock
2012-05-28 00:17:44 +01:00
parent 986cf32fc8
commit 3318e76150
9 changed files with 58 additions and 263 deletions
@@ -12,6 +12,7 @@ public class LoanProductCommand {
private String description;
private String externalId;
private String locale;
private String currencyCode;
private Integer digitsAfterDecimal;
private BigDecimal principal;
@@ -188,4 +189,12 @@ public class LoanProductCommand {
String inArrearsToleranceAmountFormatted) {
this.inArrearsToleranceAmountFormatted = inArrearsToleranceAmountFormatted;
}
public String getLocale() {
return locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
}
@@ -1,61 +0,0 @@
package org.mifosng.data.command;
import javax.xml.bind.annotation.XmlRootElement;
import org.joda.time.LocalDate;
@XmlRootElement
public class SignupCommand {
private String organisationName;
private String contactEmail;
private String contactName;
// @DateTimeFormat(pattern = "yyyy-MM-dd")
private LocalDate openingDate = new LocalDate();
protected SignupCommand() {
//
}
public SignupCommand(final String organisationName,
final String contactEmail, final String contactName,
final LocalDate openingDate) {
this.organisationName = organisationName;
this.contactEmail = contactEmail;
this.contactName = contactName;
this.openingDate = openingDate;
}
public String getContactEmail() {
return this.contactEmail;
}
public void setContactEmail(final String contactEmail) {
this.contactEmail = contactEmail;
}
public String getContactName() {
return this.contactName;
}
public void setContactName(final String contactName) {
this.contactName = contactName;
}
public String getOrganisationName() {
return this.organisationName;
}
public void setOrganisationName(final String organisationName) {
this.organisationName = organisationName;
}
public LocalDate getOpeningDate() {
return this.openingDate;
}
public void setOpeningDate(final LocalDate openingDate) {
this.openingDate = openingDate;
}
}