< Summary

Information
Class: OzonOrdersWeb.Areas.OneCFresh.ViewModels.ReceiptRow
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/ViewModels/DocumentViewModels.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 97
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_Doc()100%210%
get_LinkedTransactionId()100%210%
get_LinkedTransactionType()100%210%
get_LinkedOrderId()100%210%
get_LinkedOrderSuccess()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/OneCFresh/ViewModels/DocumentViewModels.cs

#LineLine coverage
 1using Services.ApiServices._1CApi.OData.Models;
 2
 3namespace OzonOrdersWeb.Areas.OneCFresh.ViewModels;
 4
 5public class ReceiptsViewModel
 6{
 7    public List<ReceiptRow> Items { get; set; } = new();
 8    public DateTime? DateFrom { get; set; }
 9    public DateTime? DateTo { get; set; }
 10    public string? Search { get; set; }
 11    public int TotalCount { get; set; }
 12    public int Page { get; set; } = 1;
 13    public int PageSize { get; set; } = 100;
 14    public Dictionary<Guid, string?> CounterpartyNames { get; set; } = new();
 15    public Dictionary<Guid, string?> WarehouseNames { get; set; } = new();
 16}
 17
 18public class ReceiptRow
 19{
 020    public ODataReceiptListItem Doc { get; set; } = new();
 021    public int? LinkedTransactionId { get; set; }
 022    public string? LinkedTransactionType { get; set; }
 023    public int? LinkedOrderId { get; set; }
 024    public bool LinkedOrderSuccess { get; set; }
 25}
 26
 27public class TransfersViewModel
 28{
 29    public List<TransferRow> Items { get; set; } = new();
 30    public DateTime? DateFrom { get; set; }
 31    public DateTime? DateTo { get; set; }
 32    public string? Search { get; set; }
 33    public int TotalCount { get; set; }
 34    public int Page { get; set; } = 1;
 35    public int PageSize { get; set; } = 100;
 36    public Dictionary<Guid, string?> WarehouseNames { get; set; } = new();
 37}
 38
 39public class TransferRow
 40{
 41    public ODataTransferListItem Doc { get; set; } = new();
 42    public int? LinkedTransactionId { get; set; }
 43    public string? LinkedTransactionType { get; set; }
 44    public int? LinkedOrderId { get; set; }
 45    public bool LinkedOrderSuccess { get; set; }
 46}
 47
 48public class PaymentsViewModel
 49{
 50    public List<ODataPaymentListItem> Items { get; set; } = new();
 51    public DateTime? DateFrom { get; set; }
 52    public DateTime? DateTo { get; set; }
 53    public string? Search { get; set; }
 54    public int TotalCount { get; set; }
 55    public int Page { get; set; } = 1;
 56    public int PageSize { get; set; } = 100;
 57    public Dictionary<Guid, string?> CounterpartyNames { get; set; } = new();
 58}
 59
 60public class DocumentLineItem
 61{
 62    public string NomenclatureName { get; set; } = string.Empty;
 63    public string Article { get; set; } = string.Empty;
 64    public decimal Quantity { get; set; }
 65    public decimal Price { get; set; }
 66    public decimal Amount { get; set; }
 67}
 68
 69public class ReceiptDetailViewModel
 70{
 71    public Guid RefKey { get; set; }
 72    public string Number { get; set; } = string.Empty;
 73    public string Date { get; set; } = string.Empty;
 74    public bool Posted { get; set; }
 75    public bool DeletionMark { get; set; }
 76    public string CounterpartyName { get; set; } = string.Empty;
 77    public string WarehouseName { get; set; } = string.Empty;
 78    public string IncomingDocNumber { get; set; } = string.Empty;
 79    public string IncomingDocDate { get; set; } = string.Empty;
 80    public string Comment { get; set; } = string.Empty;
 81    public List<DocumentLineItem> Lines { get; set; } = new();
 82    public string? Error { get; set; }
 83}
 84
 85public class TransferDetailViewModel
 86{
 87    public Guid RefKey { get; set; }
 88    public string Number { get; set; } = string.Empty;
 89    public string Date { get; set; } = string.Empty;
 90    public bool Posted { get; set; }
 91    public bool DeletionMark { get; set; }
 92    public string WarehouseSenderName { get; set; } = string.Empty;
 93    public string WarehouseRecipientName { get; set; } = string.Empty;
 94    public string Comment { get; set; } = string.Empty;
 95    public List<DocumentLineItem> Lines { get; set; } = new();
 96    public string? Error { get; set; }
 97}