| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices._1CApi.OData.Models; |
| | | 4 | | |
| | | 5 | | public class ODataReceiptRequest |
| | | 6 | | { |
| | | 7 | | [JsonProperty("Date")] public string? Date { get; set; } = string.Empty; |
| | | 8 | | [JsonProperty("НомерВходящегоДокумента")] public string? IncomingDocNumber { get; set; } = string.Empty; |
| | | 9 | | [JsonProperty("ДатаВходящегоДокумента")] public string? IncomingDocDate { get; set; } = string.Empty; |
| | | 10 | | [JsonProperty("Организация_Key")] public Guid OrganizationKey { get; set; } |
| | | 11 | | [JsonProperty("Контрагент_Key")] public Guid CounterpartyKey { get; set; } |
| | | 12 | | [JsonProperty("Договор_Key")] public Guid? ContractKey { get; set; } |
| | | 13 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; } |
| | | 14 | | [JsonProperty("ВидОперации")] public string? OperationType { get; set; } = OneCODataConstants.OperationTypeReceipt; |
| | | 15 | | [JsonProperty("СуммаВключаетНДС")] public bool AmountIncludesVat { get; set; } = false; |
| | | 16 | | [JsonProperty("Комментарий")] public string? Comment { get; set; } |
| | | 17 | | [JsonProperty("Запасы")] public List<ODataReceiptLine>? Lines { get; set; } = new(); |
| | | 18 | | } |
| | | 19 | | |
| | | 20 | | public class ODataReceiptLine |
| | | 21 | | { |
| | 1 | 22 | | [JsonProperty("LineNumber")] public int LineNumber { get; set; } |
| | 25 | 23 | | [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; } |
| | 17 | 24 | | [JsonProperty("ЕдиницаИзмерения")] public string? UnitKey { get; set; } = OneCODataConstants.UnitShtukaGuid; |
| | 17 | 25 | | [JsonProperty("ЕдиницаИзмерения_Type")] public string? UnitType { get; set; } = OneCODataConstants.UnitType; |
| | 17 | 26 | | [JsonProperty("Характеристика_Key")] public string? CharacteristicKey { get; set; } = OneCODataConstants.ZeroGuid; |
| | 2 | 27 | | [JsonProperty("СтранаПроисхождения_Key")] public Guid? CountryOfOriginKey { get; set; } |
| | 2 | 28 | | [JsonProperty("НомерГТД_Key")] public Guid? GtdNumberKey { get; set; } |
| | 23 | 29 | | [JsonProperty("Количество")] public decimal Quantity { get; set; } |
| | 1 | 30 | | [JsonProperty("Цена")] public decimal Price { get; set; } |
| | 1 | 31 | | [JsonProperty("ПроцентСкидкиНаценки")] public decimal DiscountPercent { get; set; } = 0; |
| | 1 | 32 | | [JsonProperty("СуммаСкидкиНаценки")] public decimal DiscountAmount { get; set; } = 0; |
| | 1 | 33 | | [JsonProperty("Сумма")] public decimal Amount { get; set; } |
| | 1 | 34 | | [JsonProperty("СтавкаНДС_Key")] public Guid VatRateKey { get; set; } |
| | 1 | 35 | | [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; } |
| | 1 | 36 | | [JsonProperty("Всего")] public decimal TotalAmount { get; set; } |
| | 1 | 37 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; } |
| | 17 | 38 | | [JsonProperty("Заказ")] public string? OrderKey { get; set; } = OneCODataConstants.ZeroGuid; |
| | 17 | 39 | | [JsonProperty("Заказ_Type")] public string? OrderType { get; set; } = OneCODataConstants.OrderType; |
| | | 40 | | } |