| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | using System.ComponentModel.DataAnnotations.Schema; |
| | | 3 | | using System.Text.Json.Serialization; |
| | | 4 | | |
| | | 5 | | namespace OzonDomains.Models; |
| | | 6 | | |
| | | 7 | | public class OrderPrice |
| | | 8 | | { |
| | 1 | 9 | | public int Id { get; set; } |
| | | 10 | | |
| | | 11 | | [Display(Name = "Авто действие включено")] |
| | 1 | 12 | | public bool AutoActionEnabled { get; set; } |
| | | 13 | | |
| | | 14 | | [MaxLength(10)] |
| | | 15 | | [Display(Name = "Код валюты")] |
| | 2 | 16 | | public string CurrencyCode { get; set; } = "RUB"; |
| | | 17 | | |
| | | 18 | | [Display(Name = "Маркетинговая цена")] |
| | | 19 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 20 | | public decimal MarketingPrice { get; set; } |
| | | 21 | | |
| | | 22 | | [Display(Name = "Маркетинговая цена продавца")] |
| | | 23 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 24 | | public decimal MarketingSellerPrice { get; set; } |
| | | 25 | | |
| | | 26 | | [Display(Name = "Минимальная цена")] |
| | | 27 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 28 | | public decimal MinPrice { get; set; } |
| | | 29 | | |
| | | 30 | | [Display(Name = "Старая цена")] |
| | | 31 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 32 | | public decimal OldPrice { get; set; } |
| | | 33 | | |
| | | 34 | | [Display(Name = "Цена")] |
| | | 35 | | [Column(TypeName = "decimal(18,2)")] |
| | 2 | 36 | | public decimal Price { get; set; } |
| | | 37 | | |
| | | 38 | | [Display(Name = "Розничная цена")] |
| | | 39 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 40 | | public decimal RetailPrice { get; set; } |
| | | 41 | | |
| | | 42 | | [Display(Name = "НДС")] |
| | | 43 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 44 | | public decimal Vat { get; set; } |
| | | 45 | | |
| | | 46 | | [Display(Name = "Авто добавление в действия Ozon")] |
| | 1 | 47 | | public bool AutoAddToOzonActionsListEnabled { get; set; } |
| | | 48 | | |
| | | 49 | | [Display(Name = "Чистая цена")] |
| | | 50 | | [Column(TypeName = "decimal(18,2)")] |
| | 1 | 51 | | public decimal NetPrice { get; set; } |
| | | 52 | | |
| | 1 | 53 | | public int OrderId { get; set; } |
| | | 54 | | |
| | | 55 | | // Связь с PriceIndexes |
| | 2 | 56 | | public virtual PriceIndexes? PriceIndexes { get; set; } |
| | | 57 | | } |