Added budget update
Added portfolio and programme value calculator endpoints
This commit is contained in:
@@ -30,6 +30,9 @@ public sealed class BudgetConfiguration : IEntityTypeConfiguration<Budget>
|
||||
builder.Property(f => f.UpdatedAt).IsRequired(false);
|
||||
builder.Property(f => f.Name).IsRequired().HasMaxLength(LabelLength);
|
||||
builder.Property(f => f.Amount).IsRequired().HasPrecision(18, 2);
|
||||
builder.Property(f => f.Status).IsRequired().HasConversion<int>().HasDefaultValueSql("1")
|
||||
.HasSentinel(ApprovalStatus.Pending);
|
||||
builder.Property(f => f.Amount).IsRequired().HasPrecision(18, 2);
|
||||
|
||||
builder.HasOne(f => f.Tenant)
|
||||
.WithMany()
|
||||
|
||||
@@ -107,7 +107,8 @@ public static class Mappers
|
||||
CreatedBy = entity.CreatedBy,
|
||||
Name = entity.Name,
|
||||
ProjectId = entity.ProjectId,
|
||||
UpdatedAt = entity.UpdatedAt
|
||||
UpdatedAt = entity.UpdatedAt,
|
||||
Status = entity.Status
|
||||
};
|
||||
|
||||
public static ChangeRequest Map(this Entities.ChangeRequest entity) => new()
|
||||
|
||||
@@ -19,4 +19,6 @@ public class Budget
|
||||
public string? Name { get; set; }
|
||||
|
||||
public decimal Amount { get; set; }
|
||||
|
||||
public ApprovalStatus Status { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user