| | | 1 | | namespace OzonOrdersWeb.Areas.Studio2.ViewModels; |
| | | 2 | | |
| | | 3 | | public 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 | | |
| | | 28 | | public class OneCDocumentLineViewModel |
| | | 29 | | { |
| | 0 | 30 | | public int LineNumber { get; set; } |
| | 0 | 31 | | public string Nomenclature { get; set; } = string.Empty; |
| | 0 | 32 | | public string Article { get; set; } = string.Empty; |
| | 0 | 33 | | public string Characteristic { get; set; } = string.Empty; |
| | 0 | 34 | | public string Batch { get; set; } = string.Empty; |
| | 0 | 35 | | public string Warehouse { get; set; } = string.Empty; |
| | 0 | 36 | | public decimal Quantity { get; set; } |
| | 0 | 37 | | public decimal Price { get; set; } |
| | 0 | 38 | | public decimal Amount { get; set; } |
| | 0 | 39 | | public decimal VatAmount { get; set; } |
| | 0 | 40 | | public string VatRate { get; set; } = string.Empty; |
| | | 41 | | } |