using Lada.Framework.Data.Enums;
using Lada.Framework.DTO;
using Lada.Framework.Infrastructures.Helpers;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.FuelCards;

public class FuelQuotaPaymentItem : BaseItem<int>
{
    public int DriverId { get; set; }
    public string DriverName { get; set; } = string.Empty;
    public string DriverFullName { get; set; } = string.Empty;
    public DateTimeOffset PaymentDate { get; set; }
    public decimal PaidLiters { get; set; }
    public decimal FuelUnitPrice { get; set; }
    public decimal PaidAmount { get; set; }
    public decimal BalanceBeforeLiters { get; set; }
    public decimal BalanceAfterLiters { get; set; }
    public string PaymentMethod { get; set; } = string.Empty;
    public string PaymentReference { get; set; } = string.Empty;
    public string Notes { get; set; } = string.Empty;
    public int? ApprovedByUserId { get; set; }
    public string ApprovedByUserName { get; set; } = string.Empty;
    public DateTimeOffset? ApprovedDate { get; set; }
    public FuelQuotaPaymentStatus Status { get; set; }
    public string StatusStr => Status.GetDescription();
}
