This commit is contained in:
Programmist73 2023-04-04 23:30:30 +04:00
parent 33f440412d
commit 4b97cb0275
2 changed files with 7 additions and 5 deletions

View File

@ -47,7 +47,7 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
.Select(x => new ReportCashierViewModel
{
AccountId = x.Id,
DateOperation = x.DateOperation,
DateComplite = x.DateOperation,
ClientName = x.ClientName,
SumOperation = x.SumOperation,
TypeOperation = x.TypeOperation
@ -58,10 +58,10 @@ namespace BankYouBankruptBusinessLogic.BusinessLogics
public List<ReportCashierViewModel>? GetCashWithrawals(ReportBindingModel model)
{
return _cashWithdrawalStorage.GetFilteredList(new CashWithdrawalSearchModel { DateFrom = model.DateFrom, DateTo = model.DateTo })
.Select(x => new ReportOrdersViewModel
.Select(x => new ReportCashierViewModel
{
Id = x.Id,
DateCreate = x.DateCreate,
AccountId = x.Id,
DateComplite = x.DateOperation,
ManufactureName = x.ManufactureName,
Sum = x.Sum,
OrderStatus = x.Status.ToString()

View File

@ -14,6 +14,8 @@ namespace BankYouBankruptContracts.SearchModels
public int? Sum { get; set; }
public DateTime? DateOperation { get; set; }
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}