31 lines
910 B
C#
31 lines
910 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class RideVariance : Template
|
|
{
|
|
public Guid FK_RideId { get; set; }
|
|
[ForeignKey("FK_RideId")]
|
|
public DeliveryRun Ride { get; set; }
|
|
|
|
public Guid? FK_ItemId { get; set; }
|
|
[ForeignKey("FK_ItemId")]
|
|
public Item? Item { get; set; }
|
|
|
|
public bool IsCash { get; set; }
|
|
|
|
public decimal ExpectedQuantity { get; set; }
|
|
public decimal ActualQuantity { get; set; }
|
|
public decimal VarianceQuantity { get; set; }
|
|
|
|
public string? ReasonCode { get; set; }
|
|
public VarianceStatus Status { get; set; } = VarianceStatus.Pending;
|
|
|
|
public Guid? FK_ResolvedByUserId { get; set; }
|
|
[ForeignKey("FK_ResolvedByUserId")]
|
|
public User? ResolvedBy { get; set; }
|
|
|
|
public DateTime? ResolvedAt { get; set; }
|
|
}
|
|
}
|