mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 08:23:12 +00:00
Introduces DispatchUpliftRequest entity and tier-gated approval flow: vendors request a new NTE from the portal, dispatchers approve or deny in SHOC, and requests above a configurable threshold require a higher role. Adds DispatchController for PO-centric list/detail used by the new Vendor POs page. Seeds Dispatcher and Manager roles.
32 lines
948 B
C#
32 lines
948 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class DispatchUpliftRequest : FullAuditEntity
|
|
{
|
|
public int DispatchId { get; set; }
|
|
[ForeignKey(nameof(DispatchId))]
|
|
public virtual Dispatch? Dispatch { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,2)")]
|
|
public decimal? CurrentNTE { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18,2)")]
|
|
public decimal RequestedNTE { get; set; }
|
|
|
|
public string? VendorReason { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(20)]
|
|
public string Status { get; set; } = "Pending";
|
|
|
|
public int RequiredTier { get; set; }
|
|
|
|
public string? RequestedByVendorName { get; set; }
|
|
|
|
public DateTime? DecidedAt { get; set; }
|
|
public string? DecidedByUserId { get; set; }
|
|
public string? DecisionNote { get; set; }
|
|
}
|
|
}
|