< Summary

Information
Class: OzonOrdersWeb.Areas.Studio2.ViewModels.OneCDocumentLineViewModel
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Areas/Studio2/ViewModels/OneCDocumentViewModel.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
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_LineNumber()100%210%
get_Nomenclature()100%210%
get_Article()100%210%
get_Characteristic()100%210%
get_Batch()100%210%
get_Warehouse()100%210%
get_Quantity()100%210%
get_Price()100%210%
get_Amount()100%210%
get_VatAmount()100%210%
get_VatRate()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{
 5    public string RefKey { get; set; } = string.Empty;
 6    public string DocTypeLabel { get; set; } = string.Empty;
 7    public string Number { get; set; } = string.Empty;
 8    public DateTime? Date { get; set; }
 9    public bool Posted { get; set; }
 10    public bool DeletionMark { get; set; }
 11
 12    public string Counterparty { get; set; } = string.Empty;
 13    public string Contract { get; set; } = string.Empty;
 14    public string Organization { get; set; } = string.Empty;
 15    public string Warehouse { get; set; } = string.Empty;
 16    public string WarehouseRecipient { get; set; } = string.Empty;
 17    public string OperationKind { get; set; } = string.Empty;
 18    public string? Comment { get; set; }
 19
 20    public decimal TotalAmount { get; set; }
 21    public decimal VatAmount { get; set; }
 22
 23    public List<OneCDocumentLineViewModel> Lines { get; set; } = new();
 24
 25    public string? ErrorMessage { get; set; }
 26}
 27
 28public class OneCDocumentLineViewModel
 29{
 030    public int LineNumber { get; set; }
 031    public string Nomenclature { get; set; } = string.Empty;
 032    public string Article { get; set; } = string.Empty;
 033    public string Characteristic { get; set; } = string.Empty;
 034    public string Batch { get; set; } = string.Empty;
 035    public string Warehouse { get; set; } = string.Empty;
 036    public decimal Quantity { get; set; }
 037    public decimal Price { get; set; }
 038    public decimal Amount { get; set; }
 039    public decimal VatAmount { get; set; }
 040    public string VatRate { get; set; } = string.Empty;
 41}