< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.OneCDocumentViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/OneCDocumentViewModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
Total lines: 41
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_RefKey()100%210%
get_DocTypeLabel()100%210%
get_Number()100%210%
get_Date()100%210%
get_Posted()100%210%
get_DeletionMark()100%210%
get_Counterparty()100%210%
get_Contract()100%210%
get_Organization()100%210%
get_Warehouse()100%210%
get_WarehouseRecipient()100%210%
get_OperationKind()100%210%
get_Comment()100%210%
get_TotalAmount()100%210%
get_VatAmount()100%210%
get_Lines()100%210%
get_ErrorMessage()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/OneCDocumentViewModel.cs

#LineLine coverage
 1namespace OzonOrdersWeb.Areas.Studio2.ViewModels;
 2
 3public class OneCDocumentViewModel
 4{
 05    public string RefKey { get; set; } = string.Empty;
 06    public string DocTypeLabel { get; set; } = string.Empty;
 07    public string Number { get; set; } = string.Empty;
 08    public DateTime? Date { get; set; }
 09    public bool Posted { get; set; }
 010    public bool DeletionMark { get; set; }
 11
 012    public string Counterparty { get; set; } = string.Empty;
 013    public string Contract { get; set; } = string.Empty;
 014    public string Organization { get; set; } = string.Empty;
 015    public string Warehouse { get; set; } = string.Empty;
 016    public string WarehouseRecipient { get; set; } = string.Empty;
 017    public string OperationKind { get; set; } = string.Empty;
 018    public string? Comment { get; set; }
 19
 020    public decimal TotalAmount { get; set; }
 021    public decimal VatAmount { get; set; }
 22
 023    public List<OneCDocumentLineViewModel> Lines { get; set; } = new();
 24
 025    public string? ErrorMessage { get; set; }
 26}
 27
 28public class OneCDocumentLineViewModel
 29{
 30    public int LineNumber { get; set; }
 31    public string Nomenclature { get; set; } = string.Empty;
 32    public string Article { get; set; } = string.Empty;
 33    public string Characteristic { get; set; } = string.Empty;
 34    public string Batch { get; set; } = string.Empty;
 35    public string Warehouse { get; set; } = string.Empty;
 36    public decimal Quantity { get; set; }
 37    public decimal Price { get; set; }
 38    public decimal Amount { get; set; }
 39    public decimal VatAmount { get; set; }
 40    public string VatRate { get; set; } = string.Empty;
 41}