| | | 1 | | using System; |
| | | 2 | | using WinSolutions.Sveta.Server.Data.DataModel.Entities; |
| | | 3 | | |
| | | 4 | | namespace SVETA.Api.Data.DTO.Movements |
| | | 5 | | { |
| | | 6 | | public class SliceMovementItem |
| | | 7 | | { |
| | 34 | 8 | | public Good Good { get; set; } |
| | 20 | 9 | | public decimal Price { get; set; } |
| | 20 | 10 | | public decimal Quantity { get; set; } |
| | 20 | 11 | | public string Comment { get; set; } |
| | 14 | 12 | | public decimal Sum { get; set; } |
| | 20 | 13 | | public DateTime CreationDateTime { get; set; } |
| | 22 | 14 | | public long Id { get; set; } |
| | 20 | 15 | | public RecordsState RecState { get; set; } |
| | | 16 | | |
| | | 17 | | public static implicit operator MovementItem(SliceMovementItem item) |
| | 10 | 18 | | { |
| | 10 | 19 | | return new MovementItem |
| | 10 | 20 | | { |
| | 10 | 21 | | Id = item.Id, |
| | 10 | 22 | | Good = item.Good, |
| | 10 | 23 | | Price = item.Price, |
| | 10 | 24 | | Comment = item.Comment, |
| | 10 | 25 | | CreationDateTime = item.CreationDateTime, |
| | 10 | 26 | | RecState = item.RecState, |
| | 10 | 27 | | Quantity = item.Quantity |
| | 10 | 28 | | }; |
| | 10 | 29 | | } |
| | | 30 | | } |
| | | 31 | | } |