using Lada.Framework.DTO;
using Ladaer.BackEnd.Infrastructures.DTO.Items.Orders;

namespace Ladaer.BackEnd.Infrastructures.DTO.Items.Business.Operations
{
    public class OpsOrderItem : BaseItem<int>
    {
        /// <summary>
        /// Mã vận đơn
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// Ghi chú đơn hàng
        /// </summary>
        public string Note { get; set; }

        #region Sale
        /// <summary>
        /// Đơn hàng của sale nào
        /// </summary>
        public int SaleId { get; set; }
        public string SaleUserName { get; set; }

        public string SalePhone { get; set; }
        #endregion

        /// <summary>
        /// Tuyến
        /// </summary>
        public string RouteName { get; set; }


        public OrderOpsItem OrderOps { get; set; }
        public OrderFinItem OrderFin { get; set; }
        public List<OrderAddressItem> Addresses { get; set; }
        public List<OrderPackageItem> Packages { get; set; }

        public DateTimeOffset? PickupTime { get; set; }
        public DateTimeOffset? DeliveryDate { get; set; }
    }
}
