use of org.mifos.framework.util.helpers.ConversionError in project head by mifos.
the class SingleGeneralLedgerActionForm method validateAmount.
protected DoubleConversionResult validateAmount(String amountString, MifosCurrency currency, String fieldPropertyKey, ActionErrors errors, String installmentNo) {
String fieldName = fieldPropertyKey;
DoubleConversionResult conversionResult = parseDoubleDecimalForMoney(amountString, currency);
for (ConversionError error : conversionResult.getErrors()) {
String errorText = error.toLocalizedMessage(currency);
addError(errors, fieldName, "errors.generic", fieldName, errorText);
}
return conversionResult;
}
use of org.mifos.framework.util.helpers.ConversionError in project head by mifos.
the class InterOfficeTransferActionForm method validateAmount.
protected DoubleConversionResult validateAmount(String amountString, MifosCurrency currency, String fieldPropertyKey, ActionErrors errors, String installmentNo) {
String fieldName = fieldPropertyKey;
DoubleConversionResult conversionResult = parseDoubleDecimalForMoney(amountString, currency);
for (ConversionError error : conversionResult.getErrors()) {
String errorText = error.toLocalizedMessage(currency);
addError(errors, fieldName, "errors.generic", fieldName, errorText);
}
return conversionResult;
}
use of org.mifos.framework.util.helpers.ConversionError in project head by mifos.
the class JournalVoucherActionForm method validateAmount.
protected DoubleConversionResult validateAmount(String amountString, MifosCurrency currency, String fieldPropertyKey, ActionErrors errors, String installmentNo) {
String fieldName = fieldPropertyKey;
DoubleConversionResult conversionResult = parseDoubleDecimalForMoney(amountString, currency);
for (ConversionError error : conversionResult.getErrors()) {
String errorText = error.toLocalizedMessage(currency);
addError(errors, fieldName, "errors.generic", fieldName, errorText);
}
return conversionResult;
}
use of org.mifos.framework.util.helpers.ConversionError in project head by mifos.
the class MultipleGeneralLedgerActionForm method validateAmount.
protected DoubleConversionResult validateAmount(String amountString, MifosCurrency currency, String fieldPropertyKey, ActionErrors errors, String installmentNo) {
String fieldName = fieldPropertyKey;
DoubleConversionResult conversionResult = parseDoubleDecimalForMoney(amountString, currency);
for (ConversionError error : conversionResult.getErrors()) {
String errorText = error.toLocalizedMessage(currency);
addError(errors, fieldName, "errors.generic", fieldName, errorText);
}
return conversionResult;
}
use of org.mifos.framework.util.helpers.ConversionError in project head by mifos.
the class OpenBalanceActionForm method validateAmount.
protected DoubleConversionResult validateAmount(String amountString, MifosCurrency currency, String fieldPropertyKey, ActionErrors errors, String installmentNo) {
String fieldName = fieldPropertyKey;
DoubleConversionResult conversionResult = parseDoubleDecimalForMoney(amountString, currency);
for (ConversionError error : conversionResult.getErrors()) {
String errorText = error.toLocalizedMessage(currency);
addError(errors, fieldName, "errors.generic", fieldName, errorText);
}
return conversionResult;
}
Aggregations