< Summary

Information
Class: Services.ApiServices._1CApi.OData.Models.ODataTransferDocumentLine
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/OData/Models/ODataExpenseDocument.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 65
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_LineNumber()100%210%
get_NomenclatureKey()100%210%
get_CharacteristicKey()100%210%
get_BatchKey()100%210%
get_WarehouseKey()100%210%
get_Quantity()100%210%
get_Price()100%210%
get_Amount()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/OData/Models/ODataExpenseDocument.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices._1CApi.OData.Models;
 4
 5public class ODataExpenseDocument
 6{
 7    [JsonProperty("Ref_Key")] public Guid RefKey { get; set; }
 8    [JsonProperty("Number")] public string? Number { get; set; } = string.Empty;
 9    [JsonProperty("Date")] public string? Date { get; set; } = string.Empty;
 10    [JsonProperty("Posted")] public bool Posted { get; set; }
 11    [JsonProperty("DeletionMark")] public bool DeletionMark { get; set; }
 12    [JsonProperty("Контрагент_Key")] public Guid CounterpartyKey { get; set; }
 13    [JsonProperty("Договор_Key")] public Guid ContractKey { get; set; }
 14    [JsonProperty("Организация_Key")] public Guid OrganizationKey { get; set; }
 15    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 16    [JsonProperty("ВидОперации")] public string? OperationKind { get; set; } = string.Empty;
 17    [JsonProperty("СуммаДокумента")] public decimal TotalAmount { get; set; }
 18    [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; }
 19    [JsonProperty("Комментарий")] public string? Comment { get; set; }
 20    [JsonProperty("ЗаказКлиента_Key")] public Guid? CustomerOrderKey { get; set; }
 21}
 22
 23public 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
 38public class ODataTransferDocumentLine
 39{
 040    [JsonProperty("LineNumber")] public int LineNumber { get; set; }
 041    [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; }
 042    [JsonProperty("Характеристика_Key")] public Guid? CharacteristicKey { get; set; }
 043    [JsonProperty("Партия_Key")] public Guid? BatchKey { get; set; }
 044    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 045    [JsonProperty("Количество")] public decimal Quantity { get; set; }
 046    [JsonProperty("Цена")] public decimal Price { get; set; }
 047    [JsonProperty("Сумма")] public decimal Amount { get; set; }
 48}
 49
 50public 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}