Add total amount to workshop list: include Price property in InstitutionContractListWorkshop

This commit is contained in:
2025-11-17 17:11:49 +03:30
parent 07b2596a6a
commit 07851ff7c8
2 changed files with 5 additions and 1 deletions

View File

@@ -97,6 +97,7 @@ public class InstitutionContractListWorkshop
{
public string WorkshopName { get; set; }
public int EmployeeCount { get; set; }
public string Price { get; set; }
public WorkshopServicesViewModel WorkshopServices { get; set; }
}

View File

@@ -1291,7 +1291,9 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
return new InstitutionContractListWorkshop()
{
EmployeeCount = w.PersonnelCount,
Price = w.Price.ToMoney(),
WorkshopName = workshopSelected?.WorkshopName ?? w.WorkshopName,
WorkshopServices = new WorkshopServicesViewModel()
{
Contract = w.Services.Contract,
@@ -1300,7 +1302,8 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
Insurance = w.Services.Insurance,
InsuranceInPerson = w.Services.InsuranceInPerson,
RollCall = w.Services.RollCall,
RollCallInPerson = w.Services.RollCallInPerson
RollCallInPerson = w.Services.RollCallInPerson,
}
};
}).ToList() ?? [];