< Summary

Information
Class: Services.ApiServices._1CApi.OData.Models.ODataReceiptLine
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/OData/Models/ODataReceiptRequest.cs
Line coverage
100%
Covered lines: 18
Uncovered lines: 0
Coverable lines: 18
Total lines: 40
Line coverage: 100%
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%11100%
get_NomenclatureKey()100%11100%
get_UnitKey()100%11100%
get_UnitType()100%11100%
get_CharacteristicKey()100%11100%
get_CountryOfOriginKey()100%11100%
get_GtdNumberKey()100%11100%
get_Quantity()100%11100%
get_Price()100%11100%
get_DiscountPercent()100%11100%
get_DiscountAmount()100%11100%
get_Amount()100%11100%
get_VatRateKey()100%11100%
get_VatAmount()100%11100%
get_TotalAmount()100%11100%
get_WarehouseKey()100%11100%
get_OrderKey()100%11100%
get_OrderType()100%11100%

File(s)

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

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices._1CApi.OData.Models;
 4
 5public 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
 20public class ODataReceiptLine
 21{
 122    [JsonProperty("LineNumber")] public int LineNumber { get; set; }
 2523    [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; }
 1724    [JsonProperty("ЕдиницаИзмерения")] public string? UnitKey { get; set; } = OneCODataConstants.UnitShtukaGuid;
 1725    [JsonProperty("ЕдиницаИзмерения_Type")] public string? UnitType { get; set; } = OneCODataConstants.UnitType;
 1726    [JsonProperty("Характеристика_Key")] public string? CharacteristicKey { get; set; } = OneCODataConstants.ZeroGuid;
 227    [JsonProperty("СтранаПроисхождения_Key")] public Guid? CountryOfOriginKey { get; set; }
 228    [JsonProperty("НомерГТД_Key")] public Guid? GtdNumberKey { get; set; }
 2329    [JsonProperty("Количество")] public decimal Quantity { get; set; }
 130    [JsonProperty("Цена")] public decimal Price { get; set; }
 131    [JsonProperty("ПроцентСкидкиНаценки")] public decimal DiscountPercent { get; set; } = 0;
 132    [JsonProperty("СуммаСкидкиНаценки")] public decimal DiscountAmount { get; set; } = 0;
 133    [JsonProperty("Сумма")] public decimal Amount { get; set; }
 134    [JsonProperty("СтавкаНДС_Key")] public Guid VatRateKey { get; set; }
 135    [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; }
 136    [JsonProperty("Всего")] public decimal TotalAmount { get; set; }
 137    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 1738    [JsonProperty("Заказ")] public string? OrderKey { get; set; } = OneCODataConstants.ZeroGuid;
 1739    [JsonProperty("Заказ_Type")] public string? OrderType { get; set; } = OneCODataConstants.OrderType;
 40}