mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-03 19:03:22 +00:00
- 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
21 lines
636 B
C#
21 lines
636 B
C#
namespace Api.SeaHavenIndustries.DTOs
|
|
{
|
|
public class Vendor_DTO
|
|
{
|
|
public string? CompanyName { get; set; }
|
|
public string? ContactName { get; set; }
|
|
public string? Email { get; set; }
|
|
public string? Phone { get; set; }
|
|
public string? Address { get; set; }
|
|
public string? City { get; set; }
|
|
public string? State { get; set; }
|
|
public string? Zip { get; set; }
|
|
public string? TradeSpecialties { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
|
|
public class EditVendor_DTO : Vendor_DTO
|
|
{
|
|
public int Id { get; set; }
|
|
}
|
|
}
|