feat: update registration status handling in InstitutionContract and Workshop models

This commit is contained in:
MahanCh
2025-08-21 09:55:41 +03:30
parent 605fe16ced
commit 6869ccb436
2 changed files with 1 additions and 4 deletions

View File

@@ -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()
{

View File

@@ -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 =>