using CsvHelper.Configuration.Attributes; namespace PowderCoating.Application.DTOs.Import; /// /// DTO for importing purchase order headers from CSV. Column names match the native /// ExportPurchaseOrdersCsv output for round-trip compatibility. Upsert key is PoNumber. /// public class PurchaseOrderImportDto { [Name("PoNumber")] public string? PoNumber { get; set; } /// Vendor company name — must match an existing vendor record. [Name("Vendor")] public string? Vendor { get; set; } /// /// Valid values: Draft, Submitted, PartiallyReceived, Received, Cancelled /// [Name("Status")] public string Status { get; set; } = "Draft"; [Name("OrderDate")] public DateTime OrderDate { get; set; } [Name("ExpectedDeliveryDate")] public DateTime? ExpectedDeliveryDate { get; set; } [Name("ReceivedDate")] public DateTime? ReceivedDate { get; set; } [Name("SubTotal")] public decimal SubTotal { get; set; } [Name("ShippingCost")] public decimal ShippingCost { get; set; } [Name("TotalAmount")] public decimal TotalAmount { get; set; } [Name("Notes")] public string? Notes { get; set; } }