| | | 1 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 2 | | using OzonOrdersWeb.Areas.Studio2.ViewModels.Bitrix; |
| | | 3 | | using OzonRepositories.Data.Bitrix; |
| | | 4 | | |
| | | 5 | | namespace OzonDomains.Models.BitrixModels; |
| | | 6 | | |
| | | 7 | | public class RemainingStockBitrix |
| | | 8 | | { |
| | 29 | 9 | | public int ProductId { get; set; } |
| | 24 | 10 | | public string? Article { get; set; } |
| | 6 | 11 | | public string? PreviewText { get; set; } |
| | 60 | 12 | | public string Active { get; set; } = "Y"; |
| | 30 | 13 | | public string Available { get; set; } = "Y"; |
| | 6 | 14 | | public string? Supplier { get; set; } |
| | 22 | 15 | | [NotMapped] public string? MarketPrefix { get; set; } |
| | 6 | 16 | | public DateTime TimestampX { get; set; } |
| | 2 | 17 | | public double Quantity { get; set; } |
| | 6 | 18 | | public double? Price { get; set; } |
| | 1 | 19 | | public decimal? C0 { get; set; } |
| | 0 | 20 | | public string ActiveDisplay => Active == "Y" ? "Да" : "Нет"; |
| | 0 | 21 | | public string AvailableDisplay => Available == "Y" ? "Да" : "Нет"; |
| | 5 | 22 | | public string ArticleWithKey => string.IsNullOrWhiteSpace(MarketPrefix) |
| | 5 | 23 | | ? Article?.Trim() ?? string.Empty |
| | 5 | 24 | | : $"{Article}={MarketPrefix}"; |
| | 16 | 25 | | [NotMapped] public PriceHistory? PriceHistory { get; set; } |
| | | 26 | | /// <summary>Размер партии [N] из артикула (напр. 50 для «9018906140=TYT[50]»). 1 = не партийный.</summary> |
| | 29 | 27 | | [NotMapped] public int BatchMultiplier { get; set; } = 1; |
| | | 28 | | /// <summary>Базовый offer_id партии (напр. «9018906140=TYT»). Null = не партийный.</summary> |
| | 0 | 29 | | [NotMapped] public string? BatchBaseOfferId { get; set; } |
| | 87 | 30 | | public List<StockByStore> Stores { get; set; } = new(); |
| | 83 | 31 | | public List<StockByStore> OzonStores { get; set; } = new(); |
| | 36 | 32 | | public List<OzonPriceIndexes> OzonPriceIndexes { get; set; } = new List<OzonPriceIndexes>(); |
| | | 33 | | } |