< Summary

Information
Class: Services.ApiServices._1CApi.OData.Models.ODataExpenseDocumentLine
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/OData/Models/ODataExpenseDocument.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 13
Coverable lines: 13
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_PackageQuantity()100%210%
get_Price()100%210%
get_Amount()100%210%
get_VatAmount()100%210%
get_VatRateKey()100%210%
get_PackageCoefficient()100%210%
get_UnitKey()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{
 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
 50public class ODataExpenseDocumentLine
 51{
 052    [JsonProperty("LineNumber")] public int LineNumber { get; set; }
 053    [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; }
 054    [JsonProperty("Характеристика_Key")] public Guid? CharacteristicKey { get; set; }
 055    [JsonProperty("Партия_Key")] public Guid? BatchKey { get; set; }
 056    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 057    [JsonProperty("Количество")] public decimal Quantity { get; set; }
 058    [JsonProperty("КоличествоУпаковок")] public decimal? PackageQuantity { get; set; }
 059    [JsonProperty("Цена")] public decimal Price { get; set; }
 060    [JsonProperty("Сумма")] public decimal Amount { get; set; }
 061    [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; }
 062    [JsonProperty("СтавкаНДС_Key")] public Guid? VatRateKey { get; set; }
 063    [JsonProperty("КоэффициентУпаковки")] public decimal? PackageCoefficient { get; set; }
 064    [JsonProperty("Единица_Key")] public Guid? UnitKey { get; set; }
 65}