This commit is contained in:
@@ -154,6 +154,22 @@ namespace AyaNova.Biz
|
||||
return;
|
||||
}
|
||||
|
||||
//valid previous columns?
|
||||
//either they're all null or none of them are null
|
||||
if ((proposedObj.LastEntryDate == null
|
||||
&& proposedObj.LastCurrencyBalance == null
|
||||
&& proposedObj.LastHoursBalance == null
|
||||
&& proposedObj.LastIncidentsBalance == null) ||
|
||||
(proposedObj.LastEntryDate != null
|
||||
&& proposedObj.LastCurrencyBalance != null
|
||||
&& proposedObj.LastHoursBalance != null
|
||||
&& proposedObj.LastIncidentsBalance != null)
|
||||
)
|
||||
{
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "generalerror", "Last* entries must be all empty (opening entry) or none of them empty (any later entry)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Any form customizations to validate?
|
||||
|
||||
Reference in New Issue
Block a user