8.0.3 release
This commit is contained in:
@@ -2228,11 +2228,12 @@ namespace AyaNova.Biz
|
||||
if (proposedObj.ServiceStartDate > proposedObj.ServiceStopDate)
|
||||
AddError(ApiErrorCode.VALIDATION_STARTDATE_AFTER_ENDDATE, "ServiceStartDate");
|
||||
|
||||
if (proposedObj.ServiceRateQuantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "ServiceRateQuantity");
|
||||
|
||||
if (proposedObj.NoChargeQuantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "NoChargeQuantity");
|
||||
//case 4171 removed
|
||||
// if (proposedObj.ServiceRateQuantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "ServiceRateQuantity");
|
||||
//case 4171 removed
|
||||
// if (proposedObj.NoChargeQuantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "NoChargeQuantity");
|
||||
|
||||
//Any form customizations to validate?
|
||||
var FormCustomization = await ct.FormCustom.AsNoTracking().SingleOrDefaultAsync(z => z.FormKey == AyaType.PM.ToString());
|
||||
@@ -2626,8 +2627,9 @@ namespace AyaNova.Biz
|
||||
if (proposedObj.LoanUnitId < 1 || !await ct.LoanUnit.AnyAsync(x => x.Id == proposedObj.LoanUnitId))
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "LoanUnitId");
|
||||
|
||||
if (proposedObj.Quantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Quantity");
|
||||
//case 4171 removed
|
||||
// if (proposedObj.Quantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Quantity");
|
||||
|
||||
|
||||
//Any form customizations to validate?
|
||||
@@ -3653,9 +3655,9 @@ namespace AyaNova.Biz
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (proposedObj.EstimatedQuantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "EstimatedQuantity");
|
||||
//case 4171 removed
|
||||
// if (proposedObj.EstimatedQuantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "EstimatedQuantity");
|
||||
|
||||
|
||||
//Start date AND end date must both be null or both contain values
|
||||
@@ -4319,11 +4321,12 @@ namespace AyaNova.Biz
|
||||
return;
|
||||
}
|
||||
|
||||
if (proposedObj.TravelRateQuantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "TravelRateQuantity");
|
||||
//case 4171 removed
|
||||
// if (proposedObj.TravelRateQuantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "TravelRateQuantity");
|
||||
|
||||
if (proposedObj.NoChargeQuantity < 0)//negative quantities are not allowed
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "NoChargeQuantity");
|
||||
// if (proposedObj.NoChargeQuantity < 0)//negative quantities are not allowed
|
||||
// AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "NoChargeQuantity");
|
||||
|
||||
//Any form customizations to validate?
|
||||
var FormCustomization = await ct.FormCustom.AsNoTracking().SingleOrDefaultAsync(z => z.FormKey == AyaType.PM.ToString());
|
||||
|
||||
Reference in New Issue
Block a user