| | | 1 | | using Newtonsoft.Json; |
| | | 2 | | |
| | | 3 | | namespace Services.ApiServices._1CApi.OData.Models; |
| | | 4 | | |
| | | 5 | | public class ODataExpenseDocument |
| | | 6 | | { |
| | 0 | 7 | | [JsonProperty("Ref_Key")] public Guid RefKey { get; set; } |
| | 0 | 8 | | [JsonProperty("Number")] public string? Number { get; set; } = string.Empty; |
| | 0 | 9 | | [JsonProperty("Date")] public string? Date { get; set; } = string.Empty; |
| | 0 | 10 | | [JsonProperty("Posted")] public bool Posted { get; set; } |
| | 0 | 11 | | [JsonProperty("DeletionMark")] public bool DeletionMark { get; set; } |
| | 0 | 12 | | [JsonProperty("Контрагент_Key")] public Guid CounterpartyKey { get; set; } |
| | 0 | 13 | | [JsonProperty("Договор_Key")] public Guid ContractKey { get; set; } |
| | 0 | 14 | | [JsonProperty("Организация_Key")] public Guid OrganizationKey { get; set; } |
| | 0 | 15 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; } |
| | 0 | 16 | | [JsonProperty("ВидОперации")] public string? OperationKind { get; set; } = string.Empty; |
| | 0 | 17 | | [JsonProperty("СуммаДокумента")] public decimal TotalAmount { get; set; } |
| | 0 | 18 | | [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; } |
| | 0 | 19 | | [JsonProperty("Комментарий")] public string? Comment { get; set; } |
| | 0 | 20 | | [JsonProperty("ЗаказКлиента_Key")] public Guid? CustomerOrderKey { get; set; } |
| | | 21 | | } |
| | | 22 | | |
| | | 23 | | public class ODataTransferDocument |
| | | 24 | | { |
| | | 25 | | [JsonProperty("Ref_Key")] public Guid RefKey { get; set; } |
| | | 26 | | [JsonProperty("Number")] public string? Number { get; set; } = string.Empty; |
| | | 27 | | [JsonProperty("Date")] public string? Date { get; set; } = string.Empty; |
| | | 28 | | [JsonProperty("Posted")] public bool Posted { get; set; } |
| | | 29 | | [JsonProperty("DeletionMark")] public bool DeletionMark { get; set; } |
| | | 30 | | [JsonProperty("Организация_Key")] public Guid OrganizationKey { get; set; } |
| | | 31 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseSenderKey { get; set; } |
| | | 32 | | [JsonProperty("СтруктурнаяЕдиницаПолучатель_Key")] public Guid WarehouseRecipientKey { get; set; } |
| | | 33 | | [JsonProperty("ВидОперации")] public string? OperationKind { get; set; } = string.Empty; |
| | | 34 | | [JsonProperty("СуммаДокумента")] public decimal TotalAmount { get; set; } |
| | | 35 | | [JsonProperty("Комментарий")] public string? Comment { get; set; } |
| | | 36 | | } |
| | | 37 | | |
| | | 38 | | public class ODataTransferDocumentLine |
| | | 39 | | { |
| | | 40 | | [JsonProperty("LineNumber")] public int LineNumber { get; set; } |
| | | 41 | | [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; } |
| | | 42 | | [JsonProperty("Характеристика_Key")] public Guid? CharacteristicKey { get; set; } |
| | | 43 | | [JsonProperty("Партия_Key")] public Guid? BatchKey { get; set; } |
| | | 44 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; } |
| | | 45 | | [JsonProperty("Количество")] public decimal Quantity { get; set; } |
| | | 46 | | [JsonProperty("Цена")] public decimal Price { get; set; } |
| | | 47 | | [JsonProperty("Сумма")] public decimal Amount { get; set; } |
| | | 48 | | } |
| | | 49 | | |
| | | 50 | | public class ODataExpenseDocumentLine |
| | | 51 | | { |
| | | 52 | | [JsonProperty("LineNumber")] public int LineNumber { get; set; } |
| | | 53 | | [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; } |
| | | 54 | | [JsonProperty("Характеристика_Key")] public Guid? CharacteristicKey { get; set; } |
| | | 55 | | [JsonProperty("Партия_Key")] public Guid? BatchKey { get; set; } |
| | | 56 | | [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; } |
| | | 57 | | [JsonProperty("Количество")] public decimal Quantity { get; set; } |
| | | 58 | | [JsonProperty("КоличествоУпаковок")] public decimal? PackageQuantity { get; set; } |
| | | 59 | | [JsonProperty("Цена")] public decimal Price { get; set; } |
| | | 60 | | [JsonProperty("Сумма")] public decimal Amount { get; set; } |
| | | 61 | | [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; } |
| | | 62 | | [JsonProperty("СтавкаНДС_Key")] public Guid? VatRateKey { get; set; } |
| | | 63 | | [JsonProperty("КоэффициентУпаковки")] public decimal? PackageCoefficient { get; set; } |
| | | 64 | | [JsonProperty("Единица_Key")] public Guid? UnitKey { get; set; } |
| | | 65 | | } |