This commit is contained in:
2020-12-30 14:23:24 +00:00
parent 8a7452c6c3
commit 9456779599

View File

@@ -166,7 +166,9 @@ namespace AyaNova.Biz
//valid previous columns?
//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.LastHoursBalance == null
&& proposedObj.LastIncidentsBalance == null) ||
@@ -174,7 +176,7 @@ namespace AyaNova.Biz
&& 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;