mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
Expose workorders/{id}/uplifts list/create/cancel/revoke for the SH-196 dialog, aggregate upliftSummary on board rows, and add service/controller regression tests.
32 lines
966 B
C#
32 lines
966 B
C#
namespace SeaHaven.Services.DTOs
|
|
{
|
|
public class WorkOrderUpliftDto
|
|
{
|
|
public int Id { get; set; }
|
|
public string Status { get; set; } = "pending";
|
|
public decimal Amount { get; set; }
|
|
public string Notes { get; set; } = "";
|
|
public DateTime? RequestedAt { get; set; }
|
|
public string? RequestedById { get; set; }
|
|
public string RequestedByName { get; set; } = "";
|
|
public DateTime? DecidedAt { get; set; }
|
|
public string DecidedByName { get; set; } = "";
|
|
public string DecisionNote { get; set; } = "";
|
|
}
|
|
|
|
public class WorkOrderUpliftListDto
|
|
{
|
|
public List<WorkOrderUpliftDto> Items { get; set; } = new();
|
|
}
|
|
|
|
public class CreateWorkOrderUpliftRequestDto
|
|
{
|
|
public decimal Amount { get; set; }
|
|
public string? Notes { get; set; }
|
|
}
|
|
|
|
public class RevokeWorkOrderUpliftRequestDto
|
|
{
|
|
public string? Reason { get; set; }
|
|
}
|
|
}
|