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
|
|
|
namespace Api.SeaHavenIndustries.DTOs
|
|
|
|
|
{
|
|
|
|
|
public class Dispatch_DTO
|
|
|
|
|
{
|
2026-04-17 15:16:28 -04:00
|
|
|
public List<int> WorkOrderIds { get; set; } = new();
|
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
|
|
|
public List<int> VendorIds { get; set; } = new();
|
|
|
|
|
public decimal? NTEAmount { get; set; }
|
2026-04-17 11:47:00 -04:00
|
|
|
public DateTime? ScheduledDate { get; set; }
|
2026-07-23 19:18:06 -03:00
|
|
|
public DateTime? EstimatedArrivalAt { get; set; }
|
|
|
|
|
public bool EtaManualOverride { get; set; }
|
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
|
|
|
public string? Description { get; set; }
|
2026-04-17 15:28:52 -04:00
|
|
|
public int? TaskListTemplateId { get; set; }
|
|
|
|
|
public List<string>? CustomChecklistItems { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ChecklistItemUpdate_DTO
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public bool IsCompleted { get; set; }
|
|
|
|
|
public string? CompletedBy { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AddChecklistItem_DTO
|
|
|
|
|
{
|
|
|
|
|
public int DispatchId { get; set; }
|
|
|
|
|
public int? WorkOrderId { get; set; }
|
|
|
|
|
public string? ItemText { get; set; }
|
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
|
|
|
}
|
|
|
|
|
}
|