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

View File

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