< Summary

Information
Class: Services.ApiServices._1CApi.Models.OneCReserveLine
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/1CApi/Models/MovementMapModels.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 42
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_DocumentRefKey()100%210%

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{
 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
 042public record OneCReserveLine(Guid DocumentRefKey, int LineNumber, string Warehouse, decimal Quantity);

Methods/Properties

get_DocumentRefKey()