using Bp.Sync.Domain.Entities.BaseEntities;
using System.ComponentModel;

namespace Bp.Sync.Domain.Entities.FcBusinesses.UnitExchanges
{
    public class UnitExchange : BaseEntityByLong
    {
        public int BranchId { get; set; }
        public long ProductId { get; set; }
        public bool IsDefault { get; set; }
        public decimal Quantity { get; set; }
        public decimal Price { get; set; }
        public decimal WholesalePrice { get; set; }
        public decimal Cost { get; set; }
        public decimal RetailPrice { get; set; }
        public int ExchangeValue { get; set; }
        public int DisplayOrder { get; set; }
        public int HeadQuarterUnitId { get; set; }
        public int HeadQuarterParentUnitId { get; set; }
        public UnitExchangeType? UnitExchangeType { get; set; }
    }

    public enum UnitExchangeType
    {
        [Description("Inbound")]
        Inbound = 1,
        [Description("Retail")]
        Retail = 2,
        [Description("Outbound")]
        Outbound = 3

    }
}
