Repair Report for Cashier.

This commit is contained in:
Programmist73 2023-05-19 02:39:36 +04:00
parent 79cc787ebf
commit 1a2939880d
2 changed files with 6 additions and 1 deletions

View File

@ -45,7 +45,12 @@ namespace BankYouBankruptDatabaseImplement.Implements
if (model.DateTo.HasValue) result = result.Where(x => x.DateOperation <= model.DateTo).ToList();
if (model.ClientId.HasValue) result = result.Where(x => (x.AccountPayeer.ClientId == model.ClientId || x.AccountSender.ClientId == model.ClientId)).ToList();
if (model.ClientId.HasValue)
{
result = result.Where(x => x.AccountSender != null)
.Where(x => (x.AccountPayeer.ClientId == model.ClientId || x.AccountSender.ClientId == model.ClientId))
.ToList();
}
return result.Select(x => x.GetViewModel).ToList();
}