using Bp.Sync.Domain.Elastics.BaseEntities;

namespace Bp.Sync.Domain.Elastics.DailyTasks
{
    public class InventoryDiaryElastic : ElasticBaseEntityWithKey<long>
    {
        /// <summary>
        /// id branch
        /// </summary>
        public long BranchId { get; set; }

        public string BranchName { get; set; }
        public long NumberOfProduct { get; set; } = 0;
        public decimal BaseUnitQuantity { get; set; } = 0;
        public decimal CostAmount { get; set; } = 0;
        public decimal CostWholesaleAmount { get; set; } = 0;
        public decimal CostRetailAmount => CostAmount - CostWholesaleAmount;
        public decimal PriceAmount { get; set; } = 0;
    }
}