using FruitBank.Common.Enums;
using Nop.Plugin.Misc.FruitBankPlugin.Models.MgBase.OrderModels;
using Nop.Web.Areas.Admin.Models.Orders;

namespace Nop.Plugin.Misc.FruitBankPlugin.Models.Orders
{
    public partial record OrderItemModelExtended : /*MgOrderItemModelExtended*/ OrderItemModel, IOrderItemModelExtended
    {
        public bool IsMeasured { get; set; }
        public bool IsMeasurable { get; set; }
        public MeasuringStatus MeasuringStatus { get; set; }
        public string MeasuringStatusString => MeasuringStatus.ToString();
        public decimal NetWeight { get; set; }
        public int ProductStockQuantity { get; set; }
        public int ProductIncomingQuantity { get; set; }
        public int ProductAvailableQuantity { get; set; }
        public double ProductAverageWeight { get; set; }
        public double AverageWeight { get; set; }
        public bool AverageWeightIsValid { get; set; }
        public double AverageWeightDifference { get; set; }



    }

    public partial record OrderModelExtended : MgOrderModelExtended, IOrderModelExtended
    {
        public bool IsMeasured { get; set; }
        public bool IsMeasurable { get; set; }
        public MeasuringStatus MeasuringStatus { get; set; }
        public string MeasuringStatusString => MeasuringStatus.ToString();
        public DateTime? DateOfReceipt { get; set; }

        public string CustomerCompany { get; set; }

        public string InnvoiceTechId { get; set; }

        public bool IsAllOrderItemAvgWeightValid { get; set; }

        public IList<OrderItemModelExtended> ItemExtendeds { get; set; }
    }
}

