Estimate UI
Some checks failed
Dotnet build and test / build (pull_request) Failing after 5m20s

This commit is contained in:
Paul Schneider 2026-09-13 18:54:27 +01:00
commit 848f8be42f
Signed by: notazof
GPG key ID: 1DD5D838E5343B06
19 changed files with 1235 additions and 14 deletions

View file

@ -2,6 +2,7 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
namespace Yavsc.Models.Billing
{
@ -20,7 +21,7 @@ namespace Yavsc.Models.Billing
/// it will result in a new estimate template
/// </summary>
/// <returns></returns>
[ForeignKey("CommandId"),JsonIgnore]
[ForeignKey("CommandId"),JsonIgnore,ValidateNever]
public NominativeServiceCommand? Query { get; set; }
public string Description { get; set; }
public string Title { get; set; }
@ -57,14 +58,15 @@ namespace Yavsc.Models.Billing
set { AttachedFiles = value.Split(':').ToList(); }
}
[ValidateNever]
public string OwnerId { get; set; }
[ForeignKey("OwnerId"),JsonIgnore]
[ForeignKey("OwnerId"),JsonIgnore,ValidateNever]
public virtual PerformerProfile Owner { get; set; }
[Required]
public string ClientId { get; set; }
[ForeignKey("ClientId"),JsonIgnore]
[ForeignKey("ClientId"),JsonIgnore,ValidateNever]
public virtual ApplicationUser Client { get; set; }
[Required]