using Lada.Framework.Data.Enums;
using Lada.Framework.DTO;
using Ladaer.BackEnd.Infrastructures.DTO.Items.Finances;

namespace Ladaer.BackEnd.Infrastructures.DTO.Models.Finances
{
    public class PriceListModel : BaseModel<int>
    {
        public PriceListModel()
        {
            PriceList = new List<PriceDetailModel>();
            Routes = new List<RouteItem>();
        }
        public int CustomerId { get; set; }
        public List<PriceDetailModel> PriceList { get; set; }
        public List<RouteItem> Routes { get; set; }
        public PriceType PriceType { get; set; }
    }

    public class PriceDetailModel
    {
        public int Id { get; set; }
        public int RouteId { get; set; }

        public string RouteName { get; set; } = "";
        public string RouteRange { get; set; } = "";

        /// <summary>
        /// Khối lượng nhỏ nhất
        /// </summary>
        public int MinWeight { get; set; }

        /// <summary>
        /// Khối lượng lớn nhất
        /// </summary>
        public int MaxWeight { get; set; }

        /// <summary>
        /// Giá trị
        /// </summary>
        public decimal Value { get; set; }

        public int DisplayOrder { get; set; }

        /// <summary>
        /// Loại giá
        /// </summary>
        public PriceType PriceType { get; set; }
    }

}
