< Summary

Information
Class: Services.ApiServices._1CApi.OData.Models.ODataReceiptRequest
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/OData/Models/ODataReceiptRequest.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
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_Date()100%11100%
get_IncomingDocNumber()100%11100%
get_IncomingDocDate()100%11100%
get_OrganizationKey()100%11100%
get_CounterpartyKey()100%11100%
get_ContractKey()100%11100%
get_WarehouseKey()100%11100%
get_OperationType()100%11100%
get_AmountIncludesVat()100%11100%
get_Comment()100%11100%
get_Lines()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{
 27    [JsonProperty("Date")] public string? Date { get; set; } = string.Empty;
 28    [JsonProperty("НомерВходящегоДокумента")] public string? IncomingDocNumber { get; set; } = string.Empty;
 29    [JsonProperty("ДатаВходящегоДокумента")] public string? IncomingDocDate { get; set; } = string.Empty;
 110    [JsonProperty("Организация_Key")] public Guid OrganizationKey { get; set; }
 111    [JsonProperty("Контрагент_Key")] public Guid CounterpartyKey { get; set; }
 112    [JsonProperty("Договор_Key")] public Guid? ContractKey { get; set; }
 113    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 214    [JsonProperty("ВидОперации")] public string? OperationType { get; set; } = OneCODataConstants.OperationTypeReceipt;
 115    [JsonProperty("СуммаВключаетНДС")] public bool AmountIncludesVat { get; set; } = false;
 116    [JsonProperty("Комментарий")] public string? Comment { get; set; }
 317    [JsonProperty("Запасы")] public List<ODataReceiptLine>? Lines { get; set; } = new();
 18}
 19
 20public class ODataReceiptLine
 21{
 22    [JsonProperty("LineNumber")] public int LineNumber { get; set; }
 23    [JsonProperty("Номенклатура_Key")] public Guid NomenclatureKey { get; set; }
 24    [JsonProperty("ЕдиницаИзмерения")] public string? UnitKey { get; set; } = OneCODataConstants.UnitShtukaGuid;
 25    [JsonProperty("ЕдиницаИзмерения_Type")] public string? UnitType { get; set; } = OneCODataConstants.UnitType;
 26    [JsonProperty("Характеристика_Key")] public string? CharacteristicKey { get; set; } = OneCODataConstants.ZeroGuid;
 27    [JsonProperty("СтранаПроисхождения_Key")] public Guid? CountryOfOriginKey { get; set; }
 28    [JsonProperty("НомерГТД_Key")] public Guid? GtdNumberKey { get; set; }
 29    [JsonProperty("Количество")] public decimal Quantity { get; set; }
 30    [JsonProperty("Цена")] public decimal Price { get; set; }
 31    [JsonProperty("ПроцентСкидкиНаценки")] public decimal DiscountPercent { get; set; } = 0;
 32    [JsonProperty("СуммаСкидкиНаценки")] public decimal DiscountAmount { get; set; } = 0;
 33    [JsonProperty("Сумма")] public decimal Amount { get; set; }
 34    [JsonProperty("СтавкаНДС_Key")] public Guid VatRateKey { get; set; }
 35    [JsonProperty("СуммаНДС")] public decimal VatAmount { get; set; }
 36    [JsonProperty("Всего")] public decimal TotalAmount { get; set; }
 37    [JsonProperty("СтруктурнаяЕдиница_Key")] public Guid WarehouseKey { get; set; }
 38    [JsonProperty("Заказ")] public string? OrderKey { get; set; } = OneCODataConstants.ZeroGuid;
 39    [JsonProperty("Заказ_Type")] public string? OrderType { get; set; } = OneCODataConstants.OrderType;
 40}