mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-02 09:43:22 +00:00
- Add DispatchNumber and CompletedDate to Dispatch model - Add DispatchId to Comments for per-dispatch vendor threads - GetDispatchById endpoint with vendor communication thread - UpdateDispatch endpoint for status, NTE, dates, description - AddDispatchComment endpoint — saves comment + sends email to vendor with sender name - BackfillDispatchNumbers endpoint for existing dispatches - SyncVendorReplies endpoint — pulls from DynamoDB VendorReplies table - Fix reply-to address to include dispatch number - Include sender name in dispatch and comment emails
27 lines
981 B
C#
27 lines
981 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class Dispatch : FullAuditEntity
|
|
{
|
|
public int WorkOrderId { get; set; }
|
|
[ForeignKey(nameof(WorkOrderId))]
|
|
public virtual WorkOrder? WorkOrder { get; set; }
|
|
|
|
public int VendorId { get; set; }
|
|
[ForeignKey(nameof(VendorId))]
|
|
public virtual Vendor? Vendor { get; set; }
|
|
|
|
public string? DispatchNumber { get; set; }
|
|
public string? PONumber { get; set; }
|
|
public decimal? NTEAmount { get; set; }
|
|
public string? Description { get; set; }
|
|
public string? Status { get; set; }
|
|
public DateTime? ScheduledDate { get; set; }
|
|
public DateTime? CompletedDate { get; set; }
|
|
public DateTime? DispatchedAt { get; set; }
|
|
public bool EmailSent { get; set; }
|
|
public string? ReplyToAddress { get; set; }
|
|
public ICollection<Comments>? Comments { get; set; }
|
|
}
|
|
}
|