Repair Report for Cashier.
This commit is contained in:
parent
79cc787ebf
commit
1a2939880d
BankYouBankrupt
BankYouBankruptDatabaseImplement/Implements
BankYouBankruptRestAPI
@ -45,7 +45,12 @@ namespace BankYouBankruptDatabaseImplement.Implements
|
|||||||
|
|
||||||
if (model.DateTo.HasValue) result = result.Where(x => x.DateOperation <= model.DateTo).ToList();
|
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();
|
return result.Select(x => x.GetViewModel).ToList();
|
||||||
}
|
}
|
||||||
|
BIN
BankYouBankrupt/BankYouBankruptRestAPI/Отчёт_по_счетам.pdf
Normal file
BIN
BankYouBankrupt/BankYouBankruptRestAPI/Отчёт_по_счетам.pdf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user