diff --git a/server/AyaNova/biz/ServiceBankBiz.cs b/server/AyaNova/biz/ServiceBankBiz.cs index 961687b9..2d7b4b22 100644 --- a/server/AyaNova/biz/ServiceBankBiz.cs +++ b/server/AyaNova/biz/ServiceBankBiz.cs @@ -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;