< Summary

Information
Class: Services.ApiServices._1CApi.Models.MovementMapResult
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/Models/MovementMapModels.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 42
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_Article()100%11100%
get_NomenclatureName()100%11100%
get_CurrentBalance()100%11100%
get_CurrentReserve()100%11100%
get_CurrentReserveLines()100%11100%
get_TotalReceiptQty()100%11100%
get_TotalReceiptDocs()100%11100%
get_TotalExpenseQty()100%11100%
get_TotalExpenseDocs()100%11100%
get_TotalTransferQty()100%11100%
get_TotalTransferDocs()100%11100%
get_Movements()100%11100%

File(s)

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

#LineLine coverage
 1namespace Services.ApiServices._1CApi.Models;
 2
 3public enum MovementKind { Receipt, Expense, Transfer }
 4
 5public record MovementItem(
 6    DateTime Date,
 7    MovementKind Kind,
 8    string DocType,
 9    string DocNumber,
 10    Guid RefKey,
 11    decimal Quantity,
 12    decimal Price,
 13    string? WarehouseFrom,
 14    string? WarehouseTo,
 15    bool IsDeleted,
 16    bool IsPosted
 17);
 18
 19public class MovementMapResult
 20{
 321    public string? Article { get; set; } = string.Empty;
 322    public string? NomenclatureName { get; set; } = string.Empty;
 23
 324    public List<OneCStockLine>? CurrentBalance { get; set; } = new();
 25
 26    /// <summary>Текущий резерв по складам из проведённых документов резервирования 1С.</summary>
 227    public List<OneCStockLine>? CurrentReserve { get; set; } = new();
 28
 29    /// <summary>Строки резерва для контролируемого редактирования администратором.</summary>
 230    public List<OneCReserveLine>? CurrentReserveLines { get; set; } = new();
 31
 132    public int TotalReceiptQty { get; set; }
 133    public int TotalReceiptDocs { get; set; }
 134    public int TotalExpenseQty { get; set; }
 135    public int TotalExpenseDocs { get; set; }
 136    public int TotalTransferQty { get; set; }
 137    public int TotalTransferDocs { get; set; }
 38
 339    public List<MovementItem>? Movements { get; set; } = new();
 40}
 41
 42public record OneCReserveLine(Guid DocumentRefKey, int LineNumber, string Warehouse, decimal Quantity);