< Summary

Information
Class: Services.ApiServices._1CApi.Models.MovementItem
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/Models/MovementMapModels.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
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
.ctor(...)100%11100%
get_Date()100%11100%
get_Kind()100%11100%
get_DocType()100%11100%
get_DocNumber()100%11100%
get_RefKey()100%11100%
get_Quantity()100%11100%
get_Price()100%11100%
get_WarehouseFrom()100%11100%
get_WarehouseTo()100%11100%
get_IsDeleted()100%11100%
get_IsPosted()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
 135public record MovementItem(
 216    DateTime Date,
 247    MovementKind Kind,
 28    string DocType,
 139    string DocNumber,
 510    Guid RefKey,
 411    decimal Quantity,
 212    decimal Price,
 213    string? WarehouseFrom,
 2714    string? WarehouseTo,
 1415    bool IsDeleted,
 916    bool IsPosted
 1317);
 18
 19public class MovementMapResult
 20{
 21    public string? Article { get; set; } = string.Empty;
 22    public string? NomenclatureName { get; set; } = string.Empty;
 23
 24    public List<OneCStockLine>? CurrentBalance { get; set; } = new();
 25
 26    /// <summary>Текущий резерв по складам из проведённых документов резервирования 1С.</summary>
 27    public List<OneCStockLine>? CurrentReserve { get; set; } = new();
 28
 29    /// <summary>Строки резерва для контролируемого редактирования администратором.</summary>
 30    public List<OneCReserveLine>? CurrentReserveLines { get; set; } = new();
 31
 32    public int TotalReceiptQty { get; set; }
 33    public int TotalReceiptDocs { get; set; }
 34    public int TotalExpenseQty { get; set; }
 35    public int TotalExpenseDocs { get; set; }
 36    public int TotalTransferQty { get; set; }
 37    public int TotalTransferDocs { get; set; }
 38
 39    public List<MovementItem>? Movements { get; set; } = new();
 40}
 41
 42public record OneCReserveLine(Guid DocumentRefKey, int LineNumber, string Warehouse, decimal Quantity);