This commit is contained in:
@@ -166,7 +166,9 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
//valid previous columns?
|
//valid previous columns?
|
||||||
//either they're all null or none of them are null
|
//either they're all null or none of them are null
|
||||||
if ((proposedObj.LastEntryDate == null
|
|
||||||
|
//fix and re-test
|
||||||
|
if (!((proposedObj.LastEntryDate == null
|
||||||
&& proposedObj.LastCurrencyBalance == null
|
&& proposedObj.LastCurrencyBalance == null
|
||||||
&& proposedObj.LastHoursBalance == null
|
&& proposedObj.LastHoursBalance == null
|
||||||
&& proposedObj.LastIncidentsBalance == null) ||
|
&& proposedObj.LastIncidentsBalance == null) ||
|
||||||
@@ -174,7 +176,7 @@ namespace AyaNova.Biz
|
|||||||
&& proposedObj.LastCurrencyBalance != null
|
&& proposedObj.LastCurrencyBalance != null
|
||||||
&& proposedObj.LastHoursBalance != null
|
&& proposedObj.LastHoursBalance != null
|
||||||
&& proposedObj.LastIncidentsBalance != 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)");
|
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "generalerror", "Last* entries must be all empty (opening entry) or none of them empty (any later entry)");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user