feat: update registration status handling in InstitutionContract and Workshop models
This commit is contained in:
@@ -133,7 +133,6 @@ public class Workshop : EntityBase
|
||||
CutContractEndOfYear = cutContractEndOfYear;
|
||||
RotatingShiftCompute = rotatingShiftCompute;
|
||||
IsStaticCheckout = isStaticCheckout;
|
||||
RegistrationStatus = WorkshopRegistrationStatus.NotRegistered;
|
||||
ContractingPartyId = contractingPartyId;
|
||||
}
|
||||
|
||||
@@ -235,8 +234,6 @@ public class Workshop : EntityBase
|
||||
public bool IsStaticCheckout { get; private set; }
|
||||
|
||||
public long ContractingPartyId { get; private set; }
|
||||
|
||||
public WorkshopRegistrationStatus RegistrationStatus { get; private set; }
|
||||
|
||||
public Workshop()
|
||||
{
|
||||
|
||||
@@ -1440,7 +1440,7 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
|
||||
return new RegistrationWorkflowItemsViewModel
|
||||
{
|
||||
Price = x.Price,
|
||||
IsDone = workshop is { RegistrationStatus: WorkshopRegistrationStatus.Registered },
|
||||
IsDone = workshop != null,
|
||||
PersonnelCount = x.PersonnelCount,
|
||||
WorkshopName = x.WorkshopName,
|
||||
Employers = workshop?.WorkshopEmployers.Select(we => we.Employer).Select(we =>
|
||||
|
||||
Reference in New Issue
Block a user