shoc-backend/Api.SeaHavenIndustries/DTOs/Dispatch_DTO.cs
Adam Moussa d24c4643f5 Add vendor dispatch workflow backend
- Create Vendor model with company info, trade specialties, active flag
- Create Dispatch model (doubles as Vendor PO) with PO number, NTE, status, reply-to address
- VendorController: CRUD, paginated list, dropdown endpoint with trade filtering
- DispatchToVendor endpoint: multi-vendor dispatch, auto-generated PO numbers (VPO-00001),
  HTML email with full WO details via SendGrid, reply-to wo-{number}@int.seahaven.com
- GetDispatches endpoint for listing dispatches by WO
- Include dispatches in GetWorkorderById response
- SendMessage.SendDispatchEmail with reply-to support
- Audit log entry for each dispatch
2026-04-17 11:37:35 -04:00

10 lines
284 B
C#

namespace Api.SeaHavenIndustries.DTOs
{
public class Dispatch_DTO
{
public int WorkOrderId { get; set; }
public List<int> VendorIds { get; set; } = new();
public decimal? NTEAmount { get; set; }
public string? Description { get; set; }
}
}